orionis 0.423.0__py3-none-any.whl → 0.425.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.
@@ -63,10 +63,10 @@ class Testing(BaseEntity):
63
63
  )
64
64
 
65
65
  max_workers: int = field(
66
- default_factory = lambda : Workers().calculate(),
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": lambda : Workers().calculate()
69
+ "default": 4
70
70
  }
71
71
  )
72
72
 
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.423.0"
8
+ VERSION = "0.425.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -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
- # Return a Path object constructed from the normalized path string
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().resolve()
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)}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.423.0
3
+ Version: 0.425.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -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=01plqCbS9cqly8I3Vw5oRBxPYT0o53xe8rCOwfZY-os,13755
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=4ObKf3_80JdUtm-5cIFr9tho1b7Xi1akA-66eblfV6g,4960
188
+ orionis/metadata/framework.py,sha256=OKDKX3abk93sp-04_ZTKZjVguRs6NsuHlVGNGXdRDU8,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=8j1yVcOhdS3WTTgzc19CzmxZFWyY6vRVGT__76mU5JI,35040
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.423.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
356
+ orionis-0.425.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=Xf61PQJHgZSmDuASwWZBuoVnB353cibClyo9_EC3X0k,9567
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
@@ -439,7 +439,7 @@ tests/foundation/config/session/test_foundation_config_session.py,sha256=Zvjzzy8
439
439
  tests/foundation/config/startup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
440
440
  tests/foundation/config/startup/test_foundation_config_startup.py,sha256=9ZFwbWxQ9Fyskcpo5qrQtofjVMkBdA6mep9s-PIIx-c,7129
441
441
  tests/foundation/config/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
442
- tests/foundation/config/testing/test_foundation_config_testing.py,sha256=BQsQVGmGBiIyRPag6d-meBxip4tW9rWXbKR-V-YDIfU,8237
442
+ tests/foundation/config/testing/test_foundation_config_testing.py,sha256=YsXTVxq-S1KVlLK5fe2qL0CpQrulaLmy6sMSm3oPhbA,8237
443
443
  tests/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
444
444
  tests/metadata/test_metadata_framework.py,sha256=1tCNciuPVgZPK-V8PzENJCXN-1bTktWPN9u03N4Eelw,5499
445
445
  tests/metadata/test_metadata_package.py,sha256=gXIX-N9toEHJsmFkdhAvJRnz2T5e6pbgK37I1eFYTGM,4770
@@ -481,7 +481,7 @@ tests/support/standard/test_services_std.py,sha256=U0hNF50YE4aLE3Z9yWB2awl9owFQR
481
481
  tests/support/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
482
482
  tests/support/wrapper/test_services_wrapper_docdict.py,sha256=Q_qyqZodLiTQ6Pv9zILfIoZj6l-WPzNWuIoRf1GTGY0,7535
483
483
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
484
- tests/testing/test_testing_unit.py,sha256=Y7CBIs8n7GO_Grd9XLNz0BDT5ULSEbKK1zOUWkp3Vio,10207
484
+ tests/testing/test_testing_unit.py,sha256=IeYvCpImjXFO0J8OeF0YxRHYIRrywqIrAhuEx0Zn75Q,10207
485
485
  tests/testing/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
486
486
  tests/testing/cases/test_testing_asynchronous.py,sha256=gBcUyx1gmhulC-51BLtJOCwQOK6EMBaUws8eG8nxYOs,2218
487
487
  tests/testing/cases/test_testing_synchronous.py,sha256=n7btUA-2cXPx-HLRfyI7YtVuJvcSuYVC-z843SktPCk,2427
@@ -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.423.0.dist-info/METADATA,sha256=sCWDt2p6GoLQ8lvYWZvDwnfDE6ipPB1GC2Ae9L2t7wE,4772
502
- orionis-0.423.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
503
- orionis-0.423.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
504
- orionis-0.423.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
505
- orionis-0.423.0.dist-info/RECORD,,
501
+ orionis-0.425.0.dist-info/METADATA,sha256=gsi3ILvn7GmsZxMPlrbjYbq1BKuEF3zpvWoS9l9_j6A,4772
502
+ orionis-0.425.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
503
+ orionis-0.425.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
504
+ orionis-0.425.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
505
+ orionis-0.425.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.assertEqual(env.get("CAST_EXAMPLE_PATH"), Path(Path.cwd(), 'tests'))
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)
@@ -45,7 +45,7 @@ class TestFoundationConfigTesting(AsyncTestCase):
45
45
  t = Testing(
46
46
  verbosity=1,
47
47
  execution_mode=ExecutionMode.PARALLEL,
48
- max_workers=8,
48
+ max_workers=4,
49
49
  fail_fast=True,
50
50
  print_result=False,
51
51
  throw_exception=True,
@@ -57,7 +57,7 @@ class TestFoundationConfigTesting(AsyncTestCase):
57
57
  )
58
58
  self.assertEqual(t.verbosity, 1)
59
59
  self.assertEqual(t.execution_mode, ExecutionMode.PARALLEL.value)
60
- self.assertEqual(t.max_workers, 8)
60
+ self.assertEqual(t.max_workers, 4)
61
61
  self.assertTrue(t.fail_fast)
62
62
  self.assertFalse(t.print_result)
63
63
  self.assertTrue(t.throw_exception)
@@ -57,7 +57,7 @@ class TestTestingUnit(AsyncTestCase):
57
57
  configured = unit_test.configure(
58
58
  verbosity=1,
59
59
  execution_mode=ExecutionMode.PARALLEL,
60
- max_workers=8,
60
+ max_workers=4,
61
61
  fail_fast=True,
62
62
  print_result=False,
63
63
  throw_exception=True,
@@ -68,7 +68,7 @@ class TestTestingUnit(AsyncTestCase):
68
68
  # Assert that each internal attribute matches the configured value
69
69
  self.assertEqual(unit_test._UnitTest__verbosity, 1)
70
70
  self.assertEqual(unit_test._UnitTest__execution_mode, ExecutionMode.PARALLEL.value)
71
- self.assertEqual(unit_test._UnitTest__max_workers, 8)
71
+ self.assertEqual(unit_test._UnitTest__max_workers, 4)
72
72
  self.assertTrue(unit_test._UnitTest__fail_fast)
73
73
  self.assertTrue(unit_test._UnitTest__throw_exception)
74
74
  self.assertFalse(unit_test._UnitTest__persistent)