orionis 0.423.0__py3-none-any.whl → 0.424.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orionis/foundation/config/testing/entities/testing.py +2 -2
- orionis/metadata/framework.py +1 -1
- orionis/services/environment/dynamic/caster.py +7 -3
- {orionis-0.423.0.dist-info → orionis-0.424.0.dist-info}/METADATA +1 -1
- {orionis-0.423.0.dist-info → orionis-0.424.0.dist-info}/RECORD +10 -10
- tests/environment/test_services_environment.py +1 -1
- {orionis-0.423.0.dist-info → orionis-0.424.0.dist-info}/WHEEL +0 -0
- {orionis-0.423.0.dist-info → orionis-0.424.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.423.0.dist-info → orionis-0.424.0.dist-info}/top_level.txt +0 -0
- {orionis-0.423.0.dist-info → orionis-0.424.0.dist-info}/zip-safe +0 -0
|
@@ -63,10 +63,10 @@ class Testing(BaseEntity):
|
|
|
63
63
|
)
|
|
64
64
|
|
|
65
65
|
max_workers: int = field(
|
|
66
|
-
|
|
66
|
+
default = 4,
|
|
67
67
|
metadata = {
|
|
68
68
|
"description": "The maximum number of worker threads/processes to use when running tests in parallel.",
|
|
69
|
-
"default":
|
|
69
|
+
"default": 4
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
|
orionis/metadata/framework.py
CHANGED
|
@@ -305,11 +305,15 @@ class EnvironmentCaster(IEnvironmentCaster):
|
|
|
305
305
|
"""
|
|
306
306
|
from pathlib import Path
|
|
307
307
|
|
|
308
|
+
# If the value is already a Path object, return it directly
|
|
309
|
+
if isinstance(self.__value_raw, Path):
|
|
310
|
+
return self.__value_raw.as_posix()
|
|
311
|
+
|
|
308
312
|
# Normalize the path by replacing backslashes with forward slashes
|
|
309
313
|
normalized_path = str(self.__value_raw).replace('\\', '/')
|
|
310
314
|
|
|
311
|
-
#
|
|
312
|
-
return Path(normalized_path)
|
|
315
|
+
# Avoid redundant wrapping: if normalized_path is already absolute, just return Path(normalized_path)
|
|
316
|
+
return Path(normalized_path).as_posix()
|
|
313
317
|
|
|
314
318
|
def __toPath(self) -> str:
|
|
315
319
|
"""
|
|
@@ -347,7 +351,7 @@ class EnvironmentCaster(IEnvironmentCaster):
|
|
|
347
351
|
path_obj = Path(Path.cwd()) / raw_path_no_leading
|
|
348
352
|
|
|
349
353
|
# Resolve the path to get the absolute path
|
|
350
|
-
abs_path = path_obj.expanduser().
|
|
354
|
+
abs_path = path_obj.expanduser().as_posix()
|
|
351
355
|
|
|
352
356
|
# Return the absolute path as a string with the type hint
|
|
353
357
|
return f"{self.__type_hint}:{str(abs_path)}"
|
|
@@ -163,7 +163,7 @@ orionis/foundation/config/session/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-
|
|
|
163
163
|
orionis/foundation/config/session/helpers/secret_key.py,sha256=yafjzQ9KVQdXzCQCMthpgizlNCo5F5UTLtAnInipUMk,447
|
|
164
164
|
orionis/foundation/config/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
165
165
|
orionis/foundation/config/testing/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
166
|
-
orionis/foundation/config/testing/entities/testing.py,sha256=
|
|
166
|
+
orionis/foundation/config/testing/entities/testing.py,sha256=Dj2_BG3C7_7-JwoYfX1cgHMu8Rd_eQnTSNjbAQHJg6M,13689
|
|
167
167
|
orionis/foundation/config/testing/enums/__init__.py,sha256=aFh5kBxlh5kqHK-9W7qgdykF5-qou5SVRzorRBazqYw,196
|
|
168
168
|
orionis/foundation/config/testing/enums/drivers.py,sha256=mwv47FcKDXEOxydQXAGtkdIY9S6qCAW1cD22oCFy3xw,355
|
|
169
169
|
orionis/foundation/config/testing/enums/mode.py,sha256=IbFpauu7J-iSAfmC8jDbmTEYl8eZr-AexL-lyOh8_74,337
|
|
@@ -185,7 +185,7 @@ orionis/foundation/providers/progress_bar_provider.py,sha256=WW3grNgH-yV2meSSTeO
|
|
|
185
185
|
orionis/foundation/providers/testing_provider.py,sha256=iJSN2RIChbYIL-1ue6vmPmDMCSrvERDkti4Er9MPiLA,1102
|
|
186
186
|
orionis/foundation/providers/workers_provider.py,sha256=kiQjQRyUEyiBX2zcbF_KmqRgvc7Bvxsvg5oMtIvYniM,1075
|
|
187
187
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
188
|
-
orionis/metadata/framework.py,sha256=
|
|
188
|
+
orionis/metadata/framework.py,sha256=jUClS0E0wf3sqNBRZYxC_o2RKHV1XOmRf5Gm8T6P040,4960
|
|
189
189
|
orionis/metadata/package.py,sha256=tqLfBRo-w1j_GN4xvzUNFyweWYFS-qhSgAEc-AmCH1M,5452
|
|
190
190
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
191
191
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -202,7 +202,7 @@ orionis/services/environment/contracts/env.py,sha256=7lezGxABAG63pEEvzAmHXgr9izB
|
|
|
202
202
|
orionis/services/environment/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
203
203
|
orionis/services/environment/core/dot_env.py,sha256=1371GV5mxkBH4iPFHccBz9V-6JoZZfy_hSukqJWQjdE,14278
|
|
204
204
|
orionis/services/environment/dynamic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
205
|
-
orionis/services/environment/dynamic/caster.py,sha256
|
|
205
|
+
orionis/services/environment/dynamic/caster.py,sha256=-0d38D9h3hnk2Odw3u4X1AYIFfSscPUha0umxeGsIqc,35254
|
|
206
206
|
orionis/services/environment/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
207
207
|
orionis/services/environment/enums/value_type.py,sha256=C-JQGGz1GtdoggKG-rBykUm9lUTS2JmU232D8lWTB2Q,1302
|
|
208
208
|
orionis/services/environment/exceptions/__init__.py,sha256=YwLc8GsB0swlwu9T9Qt2vevaCoq5V2vmPUSlEUAqg2Q,199
|
|
@@ -353,7 +353,7 @@ orionis/test/validators/web_report.py,sha256=-h3Fe9jY93_kzUhd2NBIqEfCcBpu-8Ei9x3
|
|
|
353
353
|
orionis/test/validators/workers.py,sha256=LGffDKtK6SKixFKzIYPQpI5aFeQPAGXpv_LUtmEu6g4,1102
|
|
354
354
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
355
355
|
orionis/test/view/render.py,sha256=3ICz68l-WF3BtnYqH5m-ktN9UD00MELMbmMnyJDV74A,4768
|
|
356
|
-
orionis-0.
|
|
356
|
+
orionis-0.424.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
|
357
357
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
358
358
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
359
359
|
tests/container/test_container.py,sha256=asv8TkkupVoex6SWod74NBl4dSs7wb9mLmu_glNdNy8,14815
|
|
@@ -386,7 +386,7 @@ tests/container/validators/test_is_subclass.py,sha256=0Uc8uIR69ZX7G5Nrex0LMQXrue
|
|
|
386
386
|
tests/container/validators/test_is_valid_alias.py,sha256=egVf6IfSXurIdu8hKo03rwsM1P-bxGOFd1_9JjDHJIk,5657
|
|
387
387
|
tests/container/validators/test_lifetime.py,sha256=5PequjXAcIcp0Q4TIki7THSU31XftGpI0u1mVGqHmpU,4692
|
|
388
388
|
tests/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
389
|
-
tests/environment/test_services_environment.py,sha256=
|
|
389
|
+
tests/environment/test_services_environment.py,sha256=DOsNjEYo3SxiCxFtRobcLAp4dBAXAII7oJVdZkrisyw,9558
|
|
390
390
|
tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
391
391
|
tests/example/test_example.py,sha256=XJEcsro3vCO5m4zvMiWUGphvd0C7oIkBtUfQgTDsdUU,25568
|
|
392
392
|
tests/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -498,8 +498,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
498
498
|
tests/testing/validators/test_testing_validators.py,sha256=QdcF0Vhnnl_kD-PzceHJbUYOqwPTB1Td7YaTv8LTr30,19612
|
|
499
499
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
500
500
|
tests/testing/view/test_render.py,sha256=-ghGG8rimyb2b2wtvMuSPPH7Zac5_NlVCiUcHRA5SNg,1172
|
|
501
|
-
orionis-0.
|
|
502
|
-
orionis-0.
|
|
503
|
-
orionis-0.
|
|
504
|
-
orionis-0.
|
|
505
|
-
orionis-0.
|
|
501
|
+
orionis-0.424.0.dist-info/METADATA,sha256=zTszfWPKQiPQdWfh5xkoEtEnY9GRlVybpKL6ZfXiMzM,4772
|
|
502
|
+
orionis-0.424.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
503
|
+
orionis-0.424.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
504
|
+
orionis-0.424.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
505
|
+
orionis-0.424.0.dist-info/RECORD,,
|
|
@@ -119,7 +119,7 @@ class TestServicesEnvironment(AsyncTestCase):
|
|
|
119
119
|
|
|
120
120
|
# Set and assert a PATH value with explicit type
|
|
121
121
|
env.set("CAST_EXAMPLE_PATH", '/tests', EnvironmentValueType.PATH)
|
|
122
|
-
self.
|
|
122
|
+
self.assertTrue(env.get("CAST_EXAMPLE_PATH").endswith('/tests'))
|
|
123
123
|
|
|
124
124
|
# Set and assert a string value with explicit type
|
|
125
125
|
env.set("CAST_EXAMPLE_STR", 'hello', EnvironmentValueType.STR)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|