@@ -26,7 +26,7 @@ fn detect_conda_root() {
2626 use pet_conda:: Conda ;
2727 use pet_core:: {
2828 manager:: EnvManagerType , os_environment:: EnvironmentApi ,
29- python_environment:: PythonEnvironmentCategory , Locator ,
29+ python_environment:: PythonEnvironmentKind , Locator ,
3030 } ;
3131 use pet_reporter:: test:: create_reporter;
3232
@@ -54,7 +54,7 @@ fn detect_conda_root() {
5454 . unwrap ( ) ;
5555 assert_eq ! ( env. prefix, conda_dir. clone( ) . into( ) ) ;
5656 assert_eq ! ( env. name, Some ( "base" . into( ) ) ) ;
57- assert_eq ! ( env. category , PythonEnvironmentCategory :: Conda ) ;
57+ assert_eq ! ( env. kind , PythonEnvironmentKind :: Conda ) ;
5858 assert_eq ! ( env. executable, Some ( conda_dir. join( "bin" ) . join( "python" ) ) ) ;
5959 assert_eq ! ( env. version, Some ( get_version( & info. python_version) ) ) ;
6060
@@ -69,7 +69,7 @@ fn detect_conda_root_from_path() {
6969 use pet_conda:: Conda ;
7070 use pet_core:: {
7171 manager:: EnvManagerType , os_environment:: EnvironmentApi ,
72- python_environment:: PythonEnvironmentCategory , Locator ,
72+ python_environment:: PythonEnvironmentKind , Locator ,
7373 } ;
7474 use pet_python_utils:: env:: PythonEnv ;
7575 use std:: path:: PathBuf ;
@@ -93,7 +93,7 @@ fn detect_conda_root_from_path() {
9393
9494 assert_eq ! ( env. prefix, conda_dir. clone( ) . into( ) ) ;
9595 assert_eq ! ( env. name, Some ( "base" . into( ) ) ) ;
96- assert_eq ! ( env. category , PythonEnvironmentCategory :: Conda ) ;
96+ assert_eq ! ( env. kind , PythonEnvironmentKind :: Conda ) ;
9797 assert_eq ! ( env. executable, Some ( conda_dir. join( "bin" ) . join( "python" ) ) ) ;
9898 assert_eq ! ( env. version, Some ( get_version( & info. python_version) ) ) ;
9999}
@@ -105,7 +105,7 @@ fn detect_conda_root_from_path() {
105105fn detect_new_conda_env ( ) {
106106 use pet_conda:: Conda ;
107107 use pet_core:: {
108- os_environment:: EnvironmentApi , python_environment:: PythonEnvironmentCategory , Locator ,
108+ os_environment:: EnvironmentApi , python_environment:: PythonEnvironmentKind , Locator ,
109109 } ;
110110 use pet_reporter:: test:: create_reporter;
111111 use std:: path:: PathBuf ;
@@ -144,7 +144,7 @@ fn detect_new_conda_env() {
144144 let prefix = conda_dir. clone ( ) . join ( "envs" ) . join ( env_name) ;
145145 assert_eq ! ( env. prefix, prefix. clone( ) . into( ) ) ;
146146 assert_eq ! ( env. name, Some ( env_name. into( ) ) ) ;
147- assert_eq ! ( env. category , PythonEnvironmentCategory :: Conda ) ;
147+ assert_eq ! ( env. kind , PythonEnvironmentKind :: Conda ) ;
148148 assert_eq ! ( env. executable, prefix. join( "bin" ) . join( "python" ) . into( ) ) ;
149149 assert ! (
150150 env. version. clone( ) . unwrap_or_default( ) . starts_with( "3.10" ) ,
@@ -163,7 +163,7 @@ fn detect_conda_env_from_path() {
163163 use pet_conda:: Conda ;
164164 use pet_core:: {
165165 manager:: EnvManagerType , os_environment:: EnvironmentApi ,
166- python_environment:: PythonEnvironmentCategory , Locator ,
166+ python_environment:: PythonEnvironmentKind , Locator ,
167167 } ;
168168 use pet_python_utils:: env:: PythonEnv ;
169169 use std:: path:: PathBuf ;
@@ -193,7 +193,7 @@ fn detect_conda_env_from_path() {
193193
194194 assert_eq ! ( env. prefix, prefix. clone( ) . into( ) ) ;
195195 assert_eq ! ( env. name, Some ( env_name. into( ) ) ) ;
196- assert_eq ! ( env. category , PythonEnvironmentCategory :: Conda ) ;
196+ assert_eq ! ( env. kind , PythonEnvironmentKind :: Conda ) ;
197197 assert_eq ! ( env. executable, exe. clone( ) . into( ) ) ;
198198 assert ! (
199199 env. version. clone( ) . unwrap_or_default( ) . starts_with( "3.10" ) ,
@@ -209,7 +209,7 @@ fn detect_conda_env_from_path() {
209209fn detect_new_conda_env_without_python ( ) {
210210 use pet_conda:: Conda ;
211211 use pet_core:: {
212- os_environment:: EnvironmentApi , python_environment:: PythonEnvironmentCategory , Locator ,
212+ os_environment:: EnvironmentApi , python_environment:: PythonEnvironmentKind , Locator ,
213213 } ;
214214 use pet_reporter:: test:: create_reporter;
215215 use std:: path:: PathBuf ;
@@ -245,7 +245,7 @@ fn detect_new_conda_env_without_python() {
245245 let prefix = conda_dir. clone ( ) . join ( "envs" ) . join ( env_name) ;
246246 assert_eq ! ( env. prefix, prefix. clone( ) . into( ) ) ;
247247 assert_eq ! ( env. name, Some ( env_name. into( ) ) ) ;
248- assert_eq ! ( env. category , PythonEnvironmentCategory :: Conda ) ;
248+ assert_eq ! ( env. kind , PythonEnvironmentKind :: Conda ) ;
249249 assert_eq ! ( env. executable. is_none( ) , true ) ;
250250 assert_eq ! ( env. version. is_none( ) , true ) ;
251251
@@ -260,7 +260,7 @@ fn detect_new_conda_env_created_with_p_flag_without_python() {
260260 use common:: resolve_test_path;
261261 use pet_conda:: Conda ;
262262 use pet_core:: {
263- os_environment:: EnvironmentApi , python_environment:: PythonEnvironmentCategory , Locator ,
263+ os_environment:: EnvironmentApi , python_environment:: PythonEnvironmentKind , Locator ,
264264 } ;
265265 use pet_reporter:: test:: create_reporter;
266266
@@ -293,7 +293,7 @@ fn detect_new_conda_env_created_with_p_flag_without_python() {
293293
294294 assert_eq ! ( env. prefix, prefix. clone( ) . into( ) ) ;
295295 assert_eq ! ( env. name, None ) ;
296- assert_eq ! ( env. category , PythonEnvironmentCategory :: Conda ) ;
296+ assert_eq ! ( env. kind , PythonEnvironmentKind :: Conda ) ;
297297 assert_eq ! ( env. executable. is_none( ) , true ) ;
298298 assert_eq ! ( env. version. is_none( ) , true ) ;
299299
@@ -308,7 +308,7 @@ fn detect_new_conda_env_created_with_p_flag_with_python() {
308308 use common:: resolve_test_path;
309309 use pet_conda:: Conda ;
310310 use pet_core:: {
311- os_environment:: EnvironmentApi , python_environment:: PythonEnvironmentCategory , Locator ,
311+ os_environment:: EnvironmentApi , python_environment:: PythonEnvironmentKind , Locator ,
312312 } ;
313313 use pet_reporter:: test:: create_reporter;
314314
@@ -345,7 +345,7 @@ fn detect_new_conda_env_created_with_p_flag_with_python() {
345345
346346 assert_eq ! ( env. prefix, prefix. clone( ) . into( ) ) ;
347347 assert_eq ! ( env. name, None ) ;
348- assert_eq ! ( env. category , PythonEnvironmentCategory :: Conda ) ;
348+ assert_eq ! ( env. kind , PythonEnvironmentKind :: Conda ) ;
349349 assert_eq ! ( env. executable, exe. into( ) ) ;
350350 assert ! (
351351 env. version. clone( ) . unwrap_or_default( ) . starts_with( "3.10" ) ,
0 commit comments