orionis 0.437.0__py3-none-any.whl → 0.439.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/container/context/scope.py +1 -1
- orionis/metadata/framework.py +1 -1
- {orionis-0.437.0.dist-info → orionis-0.439.0.dist-info}/METADATA +1 -1
- {orionis-0.437.0.dist-info → orionis-0.439.0.dist-info}/RECORD +36 -35
- tests/container/context/test_manager.py +1 -0
- tests/container/context/test_scope.py +1 -0
- tests/container/core/__init__.py +0 -0
- tests/container/{test_container.py → core/test_container.py} +45 -1
- tests/container/{test_singleton.py → core/test_singleton.py} +5 -0
- tests/container/{test_thread_safety.py → core/test_thread_safety.py} +2 -0
- tests/container/mocks/mock_complex_classes.py +502 -192
- tests/container/mocks/mock_simple_classes.py +72 -6
- tests/container/validators/test_is_not_subclass.py +0 -1
- tests/container/validators/test_is_valid_alias.py +1 -1
- tests/foundation/config/database/test_foundation_config_database.py +54 -28
- tests/foundation/config/filesystems/test_foundation_config_filesystems_aws.py +40 -22
- tests/foundation/config/filesystems/test_foundation_config_filesystems_public.py +75 -48
- tests/foundation/config/logging/test_foundation_config_logging_channels.py +49 -37
- tests/foundation/config/logging/test_foundation_config_logging_monthly.py +80 -42
- tests/foundation/config/logging/test_foundation_config_logging_stack.py +46 -22
- tests/foundation/config/queue/test_foundation_config_queue_brokers.py +1 -0
- tests/foundation/config/root/test_foundation_config_root_paths.py +37 -44
- tests/foundation/config/session/test_foundation_config_session.py +65 -20
- tests/foundation/config/startup/test_foundation_config_startup.py +37 -34
- tests/services/environment/test_services_environment.py +5 -4
- tests/services/introspection/dependencies/test_reflect_dependencies.py +77 -25
- tests/services/introspection/reflection/mock/fake_reflect_instance.py +750 -267
- tests/services/introspection/reflection/test_reflection_abstract.py +514 -83
- tests/services/introspection/reflection/test_reflection_callable.py +85 -35
- tests/services/introspection/reflection/test_reflection_concrete.py +345 -226
- tests/services/introspection/reflection/test_reflection_instance.py +627 -273
- tests/services/introspection/reflection/test_reflection_module.py +346 -175
- {orionis-0.437.0.dist-info → orionis-0.439.0.dist-info}/WHEEL +0 -0
- {orionis-0.437.0.dist-info → orionis-0.439.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.437.0.dist-info → orionis-0.439.0.dist-info}/top_level.txt +0 -0
- {orionis-0.437.0.dist-info → orionis-0.439.0.dist-info}/zip-safe +0 -0
orionis/metadata/framework.py
CHANGED
|
@@ -32,7 +32,7 @@ orionis/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
32
32
|
orionis/container/container.py,sha256=ICKSeaXA_IL15jV6Ofe1wIb1QyX-F-8oaGuk7hj955I,22773
|
|
33
33
|
orionis/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
orionis/container/context/manager.py,sha256=I08K_jKXSKmrq18Pv33qYyMKIlAovVOwIgmfiVm-J7c,2971
|
|
35
|
-
orionis/container/context/scope.py,sha256=
|
|
35
|
+
orionis/container/context/scope.py,sha256=_qwGMLV_zPVEvxESY18PCY8FS7AsSg_NlflwWGyOYOw,1143
|
|
36
36
|
orionis/container/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
37
|
orionis/container/contracts/container.py,sha256=QV_seo8mKrZJG2Ytr2u0RSiRaTaSPw6zUxgJ_tq6oP4,8301
|
|
38
38
|
orionis/container/contracts/resolver.py,sha256=cbzzLvUuv5FD8DHnjs8VGCjDnCHXPWezRPHS_qr93xs,3193
|
|
@@ -173,7 +173,7 @@ orionis/foundation/providers/progress_bar_provider.py,sha256=P__zpCyC29WCwErYGbh
|
|
|
173
173
|
orionis/foundation/providers/testing_provider.py,sha256=o47qiK8Xoz4hfsxw4jMnMxEbSseJFIdJT-WqxGurqGc,1426
|
|
174
174
|
orionis/foundation/providers/workers_provider.py,sha256=YMRLdq_YQnR1unnoYvDpYQZbLli04f0CckuR6Q--wKg,1379
|
|
175
175
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
176
|
-
orionis/metadata/framework.py,sha256=
|
|
176
|
+
orionis/metadata/framework.py,sha256=FNoJkM48YOODPNJmfzEHgP1ux9IcYWGQ6A-nz9dYJHY,4088
|
|
177
177
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
178
178
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
179
179
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -341,15 +341,16 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
341
341
|
orionis/test/validators/workers.py,sha256=HcZ3cnrk6u7cvM1xZpn_lsglHAq69_jx9RcTSvLrdb0,1204
|
|
342
342
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
343
343
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
344
|
-
orionis-0.
|
|
344
|
+
orionis-0.439.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
|
345
345
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
346
346
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
347
|
-
tests/container/test_container.py,sha256=asv8TkkupVoex6SWod74NBl4dSs7wb9mLmu_glNdNy8,14815
|
|
348
|
-
tests/container/test_singleton.py,sha256=GkwFaLtRvOQCNMpaCXfQiPu6tJWRm3gkDaJ0vzQn1ko,4689
|
|
349
|
-
tests/container/test_thread_safety.py,sha256=CxEMZRDHapJSX73oDrZBu2gxGJhFiBTo56pl0FzQbzA,3722
|
|
350
347
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
351
|
-
tests/container/context/test_manager.py,sha256=
|
|
352
|
-
tests/container/context/test_scope.py,sha256=
|
|
348
|
+
tests/container/context/test_manager.py,sha256=wOwXpl9rHNfTTexa9GBKYMwK0_-KSQPbI-AEyGNkmAE,1356
|
|
349
|
+
tests/container/context/test_scope.py,sha256=1YGfOHwOjLiQ1GPewbJGrUaTyH0SjrQux7LBVn_l2q4,1223
|
|
350
|
+
tests/container/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
351
|
+
tests/container/core/test_container.py,sha256=6F4y5t-dR2E6eVKRI_hvKty0LhvTkXqiLGjaGVwsSb4,15775
|
|
352
|
+
tests/container/core/test_singleton.py,sha256=CfOB-YkIh16Pu5rNbOp5dD9cvMfWXHQESADDYSBcsQg,4801
|
|
353
|
+
tests/container/core/test_thread_safety.py,sha256=-GiscMxZJXr8vRiir_i7_6YtYqG9zDGo52druYk6qKo,3785
|
|
353
354
|
tests/container/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
354
355
|
tests/container/entities/test_binding.py,sha256=CFiBGlOeQKK4ielkj1JqxOWJSqrsi2VFIE7nE5R6ykU,9709
|
|
355
356
|
tests/container/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -357,8 +358,8 @@ tests/container/enums/test_lifetimes.py,sha256=JFb4q1rgo10C5ibQ6LS-776NevxCMNLSq
|
|
|
357
358
|
tests/container/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
358
359
|
tests/container/facades/test_facade.py,sha256=aCy0S6YaaiswGoodJEAhNkqJrMaEQL-CcWh2AgXMvvQ,2938
|
|
359
360
|
tests/container/mocks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
360
|
-
tests/container/mocks/mock_complex_classes.py,sha256=
|
|
361
|
-
tests/container/mocks/mock_simple_classes.py,sha256=
|
|
361
|
+
tests/container/mocks/mock_complex_classes.py,sha256=YkC8tgDHU0YVEkIeUPd39gp3zkGLpFObQKzjuxatqro,20307
|
|
362
|
+
tests/container/mocks/mock_simple_classes.py,sha256=bzKbmwOD-RBTT8GVN_W53ufGEWpjppe4g5mX6CI5Yk0,2317
|
|
362
363
|
tests/container/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
363
364
|
tests/container/providers/test_providers.py,sha256=qGh2vtrLYp_S7u3U64I22Fzr86NsDZw0tXtJioSDdms,2149
|
|
364
365
|
tests/container/resolver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -369,9 +370,9 @@ tests/container/validators/test_is_abstract_class.py,sha256=_xW8NrnrmG5tKocaGs83
|
|
|
369
370
|
tests/container/validators/test_is_callable.py,sha256=VbQNKZ4sVQeWnqAIZ7R2E-6uFnT78Gcdaxf7Gq-qWlw,3767
|
|
370
371
|
tests/container/validators/test_is_concrete_class.py,sha256=bD8F_fbeWLf61I-7sCeapugvXl1-oSx8iVawuYF4tY4,6362
|
|
371
372
|
tests/container/validators/test_is_instance.py,sha256=skRLexi-31IxJrW0nSYwTW84iqXvi0IVqxHm0X-YfC0,5255
|
|
372
|
-
tests/container/validators/test_is_not_subclass.py,sha256=
|
|
373
|
+
tests/container/validators/test_is_not_subclass.py,sha256=8wemBngCqRC3WtXq0YwnEqLmllzYoKLCMd4pWg59350,1905
|
|
373
374
|
tests/container/validators/test_is_subclass.py,sha256=0Uc8uIR69ZX7G5Nrex0LMQXrueTdncdDxfQoila3h3U,5834
|
|
374
|
-
tests/container/validators/test_is_valid_alias.py,sha256=
|
|
375
|
+
tests/container/validators/test_is_valid_alias.py,sha256=NA9QbIEh7n2_0GeVTMCppZG4_3ya4QrcvGI_lw1iJA8,5658
|
|
375
376
|
tests/container/validators/test_lifetime.py,sha256=5PequjXAcIcp0Q4TIki7THSU31XftGpI0u1mVGqHmpU,4692
|
|
376
377
|
tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
377
378
|
tests/example/test_example.py,sha256=XJEcsro3vCO5m4zvMiWUGphvd0C7oIkBtUfQgTDsdUU,25568
|
|
@@ -388,7 +389,7 @@ tests/foundation/config/cache/test_foundation_config_cache_stores.py,sha256=ToDx
|
|
|
388
389
|
tests/foundation/config/cors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
389
390
|
tests/foundation/config/cors/test_foundation_config_cors.py,sha256=0B19I4g5TRp9vQu79vcteeIsjbBpiIoE6Mxslx5d9os,6721
|
|
390
391
|
tests/foundation/config/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
391
|
-
tests/foundation/config/database/test_foundation_config_database.py,sha256=
|
|
392
|
+
tests/foundation/config/database/test_foundation_config_database.py,sha256=QK4wFR0igx84v8SQ6B4pIMTDqfi7ax0DNYZHPvSQDCA,5391
|
|
392
393
|
tests/foundation/config/database/test_foundation_config_database_connections.py,sha256=sQ5b2rwmhdMk44oZOx4Hb6EGW_3DW3dnDUtTKu0QSWA,6977
|
|
393
394
|
tests/foundation/config/database/test_foundation_config_database_mysql.py,sha256=200U6fL9XysUJ7tynSCKcWdRPEd7Fh4TP-lfSE2wMzY,12432
|
|
394
395
|
tests/foundation/config/database/test_foundation_config_database_oracle.py,sha256=zhWuAFPKW5EQtTmfIunqo8mKjcdqbLy-nnSiy4x6lS4,10413
|
|
@@ -396,18 +397,18 @@ tests/foundation/config/database/test_foundation_config_database_pgsql.py,sha256
|
|
|
396
397
|
tests/foundation/config/database/test_foundation_config_database_sqlite.py,sha256=oxb0kyENsRHNiw5NwqYicB-URM43j0jTlL5leiPBm8Y,7362
|
|
397
398
|
tests/foundation/config/filesystems/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
398
399
|
tests/foundation/config/filesystems/test_foundation_config_filesystems.py,sha256=_XYpbESjUwX-LmLv2Ik4dPc-32KEiaa7_Iz753dXz-E,5278
|
|
399
|
-
tests/foundation/config/filesystems/test_foundation_config_filesystems_aws.py,sha256=
|
|
400
|
+
tests/foundation/config/filesystems/test_foundation_config_filesystems_aws.py,sha256=eYi9cm1-v11nZwtLOf1KuSWg5M4LwuSiJ84ZklT9O_M,6528
|
|
400
401
|
tests/foundation/config/filesystems/test_foundation_config_filesystems_disks.py,sha256=lG4bvb0kAcGQbwwtDzKPnW0jZG7Aniw52A4m-3vaL4Q,6474
|
|
401
402
|
tests/foundation/config/filesystems/test_foundation_config_filesystems_local.py,sha256=X10AQjmlNB2sty34hXOkTDcMcZDraF-x1Kw6X7NxcBc,4296
|
|
402
|
-
tests/foundation/config/filesystems/test_foundation_config_filesystems_public.py,sha256=
|
|
403
|
+
tests/foundation/config/filesystems/test_foundation_config_filesystems_public.py,sha256=9lScPcJUq9P9zMl0h2jvuMF3lCMfhNeW-bTeaW5Suas,5662
|
|
403
404
|
tests/foundation/config/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
404
405
|
tests/foundation/config/logging/test_foundation_config_logging.py,sha256=vCYAp8qe6SOo1VJQcb1_R5JMQe00HCl78D4E-43Dxm8,3183
|
|
405
|
-
tests/foundation/config/logging/test_foundation_config_logging_channels.py,sha256=
|
|
406
|
+
tests/foundation/config/logging/test_foundation_config_logging_channels.py,sha256=rLK7YFNr07ZGNoLgDWEM1trFJw7xUB8z0ezpzshKwm0,9625
|
|
406
407
|
tests/foundation/config/logging/test_foundation_config_logging_chunked.py,sha256=TL-pLde4LAvHTcj01RT_Sa_OkwbQHzKrAH-9UGKVaMY,7021
|
|
407
408
|
tests/foundation/config/logging/test_foundation_config_logging_daily.py,sha256=Sf5vG6WL558N41dukprA5iiT1LoBXi1ak19QGSZpAsI,7076
|
|
408
409
|
tests/foundation/config/logging/test_foundation_config_logging_hourly.py,sha256=zjDDXykck_gH9TLPcoESwgjUd-6qZJDjjFwD_Xz2Yak,6765
|
|
409
|
-
tests/foundation/config/logging/test_foundation_config_logging_monthly.py,sha256=
|
|
410
|
-
tests/foundation/config/logging/test_foundation_config_logging_stack.py,sha256=
|
|
410
|
+
tests/foundation/config/logging/test_foundation_config_logging_monthly.py,sha256=ih7SOufbUwMqhr7XI2PKcBSWF0b6TEGezXQB_1bya4g,7143
|
|
411
|
+
tests/foundation/config/logging/test_foundation_config_logging_stack.py,sha256=lRp-k7MuYiphfRJPDSJW8OXABmeblEufNgObJ_qDhEk,6045
|
|
411
412
|
tests/foundation/config/logging/test_foundation_config_logging_weekly.py,sha256=g-x3VCN_L1jrrSrsW1UkBWYpKeuK5ASAAzhlKQJDkvQ,7697
|
|
412
413
|
tests/foundation/config/mail/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
413
414
|
tests/foundation/config/mail/test_foundation_config_mail.py,sha256=xR3HY218J7vecdM1h0TaAfX4DGl90PUgmktlylT_4S8,4209
|
|
@@ -416,14 +417,14 @@ tests/foundation/config/mail/test_foundation_config_mail_mailers.py,sha256=tcQ2E
|
|
|
416
417
|
tests/foundation/config/mail/test_foundation_config_mail_smtp.py,sha256=cf2gRJ0-IcqN38MhXIP_pfVjsRsRlCDOHPNB11B7daE,4883
|
|
417
418
|
tests/foundation/config/queue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
418
419
|
tests/foundation/config/queue/test_foundation_config_queue.py,sha256=1qeov00ibVDnH2C_M_T9yylMFL7pyhxxIqL852YXS54,2807
|
|
419
|
-
tests/foundation/config/queue/test_foundation_config_queue_brokers.py,sha256=
|
|
420
|
+
tests/foundation/config/queue/test_foundation_config_queue_brokers.py,sha256=pgdOtasyAkKOBscdb8T4GP5JeYRSBtGfpQIB4li0It8,2594
|
|
420
421
|
tests/foundation/config/queue/test_foundation_config_queue_database.py,sha256=qLYXjG8YVIp_NWYcZA9A2GmOdjFyt3snq9X1cdIok8M,4830
|
|
421
422
|
tests/foundation/config/root/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
422
|
-
tests/foundation/config/root/test_foundation_config_root_paths.py,sha256=
|
|
423
|
+
tests/foundation/config/root/test_foundation_config_root_paths.py,sha256=_0jH-vuDH_4IEvGK1WSlZFTRpA6TIGbeofXjl9Kjz5U,3944
|
|
423
424
|
tests/foundation/config/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
424
|
-
tests/foundation/config/session/test_foundation_config_session.py,sha256=
|
|
425
|
+
tests/foundation/config/session/test_foundation_config_session.py,sha256=itTV_OxTsUUsS4AVvcrNntkuEmMPmEO6YZLjVLRwP50,7380
|
|
425
426
|
tests/foundation/config/startup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
426
|
-
tests/foundation/config/startup/test_foundation_config_startup.py,sha256=
|
|
427
|
+
tests/foundation/config/startup/test_foundation_config_startup.py,sha256=zI3tngsVSPLQ7Kjq5RUNuBZYPTCU-7w04c8rpSeQOUo,8022
|
|
427
428
|
tests/foundation/config/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
428
429
|
tests/foundation/config/testing/test_foundation_config_testing.py,sha256=YsXTVxq-S1KVlLK5fe2qL0CpQrulaLmy6sMSm3oPhbA,8237
|
|
429
430
|
tests/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -433,23 +434,23 @@ tests/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
433
434
|
tests/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
434
435
|
tests/services/asynchrony/test_services_asynchrony_coroutine.py,sha256=34Y0D6w2bVo_dm3oj0wzedMIJuSYieUG9Y2J1EQmZeo,3439
|
|
435
436
|
tests/services/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
436
|
-
tests/services/environment/test_services_environment.py,sha256=
|
|
437
|
+
tests/services/environment/test_services_environment.py,sha256=8gbF2vK238lracBipHCHgiYxThRnfLtN9pj--rFald0,9570
|
|
437
438
|
tests/services/introspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
438
439
|
tests/services/introspection/test_reflection.py,sha256=AaBi0zi7GphOqnagV8N48GZHUuoT7743Pw3oc6_As6I,13700
|
|
439
440
|
tests/services/introspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
440
|
-
tests/services/introspection/dependencies/test_reflect_dependencies.py,sha256=
|
|
441
|
+
tests/services/introspection/dependencies/test_reflect_dependencies.py,sha256=xqkIdghxplDN8_XWlUsAiGtFNYaMDTLHn_N_HUygHDw,8408
|
|
441
442
|
tests/services/introspection/dependencies/mocks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
442
443
|
tests/services/introspection/dependencies/mocks/mock_user.py,sha256=RxATxe0-Vm4HfX5jKz9Tny42E2fmrdtEN6ZEntbqRL8,912
|
|
443
444
|
tests/services/introspection/dependencies/mocks/mock_user_controller.py,sha256=Hu4Xys5HENpKaLqsEAjtp_C-M9y6ozmJ_-qmj3ZvK6c,1214
|
|
444
445
|
tests/services/introspection/dependencies/mocks/mock_users_permissions.py,sha256=oENXbS2qmQUudYSmnhB8fgHBqXZdbplplB-Y2nbx4hw,1388
|
|
445
446
|
tests/services/introspection/reflection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
446
|
-
tests/services/introspection/reflection/test_reflection_abstract.py,sha256=
|
|
447
|
-
tests/services/introspection/reflection/test_reflection_callable.py,sha256=
|
|
448
|
-
tests/services/introspection/reflection/test_reflection_concrete.py,sha256=
|
|
449
|
-
tests/services/introspection/reflection/test_reflection_instance.py,sha256=
|
|
450
|
-
tests/services/introspection/reflection/test_reflection_module.py,sha256=
|
|
447
|
+
tests/services/introspection/reflection/test_reflection_abstract.py,sha256=mP5kCwmc5fau6ZUN-h19urZSZGIKk7fAuokniF5vD_Q,42319
|
|
448
|
+
tests/services/introspection/reflection/test_reflection_callable.py,sha256=4FaMBFfFh3T-MVvBmHCY6Z-xo5i3gVKZwP-_kTxHaCQ,6828
|
|
449
|
+
tests/services/introspection/reflection/test_reflection_concrete.py,sha256=H3wrXf2oW6NMj50RlYngIyoGECTXJeOy_FXWIJfKxzY,39064
|
|
450
|
+
tests/services/introspection/reflection/test_reflection_instance.py,sha256=CUNNId0B13sfHhN6bFW2Z4xKNJO5GN3K9l_VfX1LO4c,58019
|
|
451
|
+
tests/services/introspection/reflection/test_reflection_module.py,sha256=a4sjSHeKADHUO5FvSDg1wPYNGfO385JZxSCoIqjfuZE,24608
|
|
451
452
|
tests/services/introspection/reflection/mock/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
452
|
-
tests/services/introspection/reflection/mock/fake_reflect_instance.py,sha256=
|
|
453
|
+
tests/services/introspection/reflection/mock/fake_reflect_instance.py,sha256=iMf_yKgk0Y91XUHhRcl2qw7Z83QeNspvLi_tl4Dp-rI,28032
|
|
453
454
|
tests/services/log/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
454
455
|
tests/services/log/test_log.py,sha256=fCI2gX9-YN1z-xPMwIlggUFHeBlqfUajQoyQu4dmao0,2868
|
|
455
456
|
tests/services/path/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -486,8 +487,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
486
487
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
487
488
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
488
489
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
489
|
-
orionis-0.
|
|
490
|
-
orionis-0.
|
|
491
|
-
orionis-0.
|
|
492
|
-
orionis-0.
|
|
493
|
-
orionis-0.
|
|
490
|
+
orionis-0.439.0.dist-info/METADATA,sha256=fYNFIu7-QX1wwnyjXbMHE92LUOgek0F6T2PQ32oqx9o,4772
|
|
491
|
+
orionis-0.439.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
492
|
+
orionis-0.439.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
493
|
+
orionis-0.439.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
494
|
+
orionis-0.439.0.dist-info/RECORD,,
|
|
@@ -18,6 +18,7 @@ class TestScopeManagerMethods(AsyncTestCase):
|
|
|
18
18
|
This method does not return any value. It asserts the existence of methods
|
|
19
19
|
and fails the test if any are missing.
|
|
20
20
|
"""
|
|
21
|
+
|
|
21
22
|
# List of expected method names in ScopeManager
|
|
22
23
|
expected_methods = [
|
|
23
24
|
"__init__",
|
|
@@ -16,6 +16,7 @@ class TestScopedContextMethods(AsyncTestCase):
|
|
|
16
16
|
None
|
|
17
17
|
This method does not return anything. It asserts the existence of methods and fails the test if any are missing.
|
|
18
18
|
"""
|
|
19
|
+
|
|
19
20
|
# List of method names expected to be present in ScopedContext
|
|
20
21
|
expected_methods = [
|
|
21
22
|
"getCurrentScope",
|
|
File without changes
|
|
@@ -29,9 +29,13 @@ class TestContainer(AsyncTestCase):
|
|
|
29
29
|
-----
|
|
30
30
|
After the test, the registration for `ICar` is dropped from the container to clean up.
|
|
31
31
|
"""
|
|
32
|
+
|
|
33
|
+
# Create a new container instance
|
|
32
34
|
container = Container()
|
|
35
|
+
|
|
33
36
|
# Register ICar as a transient binding to Car
|
|
34
37
|
container.transient(ICar, Car)
|
|
38
|
+
|
|
35
39
|
# Resolve two instances of ICar (should be different objects)
|
|
36
40
|
instance1 = container.make(ICar)
|
|
37
41
|
instance2 = container.make(ICar)
|
|
@@ -39,6 +43,7 @@ class TestContainer(AsyncTestCase):
|
|
|
39
43
|
# Assert both instances are of type Car
|
|
40
44
|
self.assertIsInstance(instance1, Car)
|
|
41
45
|
self.assertIsInstance(instance2, Car)
|
|
46
|
+
|
|
42
47
|
# Assert that the instances are not the same object (transient behavior)
|
|
43
48
|
self.assertIsNot(instance1, instance2)
|
|
44
49
|
|
|
@@ -68,9 +73,13 @@ class TestContainer(AsyncTestCase):
|
|
|
68
73
|
-----
|
|
69
74
|
The registration for `ICar` is dropped after the test.
|
|
70
75
|
"""
|
|
76
|
+
|
|
77
|
+
# Create a new container instance
|
|
71
78
|
container = Container()
|
|
79
|
+
|
|
72
80
|
# Register ICar as a singleton binding to Car
|
|
73
81
|
container.singleton(ICar, Car)
|
|
82
|
+
|
|
74
83
|
# Resolve two instances of ICar (should be the same object)
|
|
75
84
|
instance1 = container.make(ICar)
|
|
76
85
|
instance2 = container.make(ICar)
|
|
@@ -78,6 +87,7 @@ class TestContainer(AsyncTestCase):
|
|
|
78
87
|
# Assert both instances are of type Car
|
|
79
88
|
self.assertIsInstance(instance1, Car)
|
|
80
89
|
self.assertIsInstance(instance2, Car)
|
|
90
|
+
|
|
81
91
|
# Assert that both instances are the same object (singleton behavior)
|
|
82
92
|
self.assertIs(instance1, instance2)
|
|
83
93
|
|
|
@@ -106,7 +116,10 @@ class TestContainer(AsyncTestCase):
|
|
|
106
116
|
-----
|
|
107
117
|
The registration for `ICar` is dropped after the test.
|
|
108
118
|
"""
|
|
119
|
+
|
|
120
|
+
# Create a new container instance
|
|
109
121
|
container = Container()
|
|
122
|
+
|
|
110
123
|
# First context: instances should be the same
|
|
111
124
|
with container.createContext():
|
|
112
125
|
container.scoped(ICar, Car)
|
|
@@ -147,13 +160,16 @@ class TestContainer(AsyncTestCase):
|
|
|
147
160
|
-----
|
|
148
161
|
The registration for `ICar` is dropped after the test.
|
|
149
162
|
"""
|
|
163
|
+
|
|
164
|
+
# Create a specific instance of Car
|
|
150
165
|
car_instance = Car()
|
|
151
166
|
container = Container()
|
|
167
|
+
|
|
152
168
|
# Register a specific instance of Car to ICar
|
|
153
169
|
container.instance(ICar, car_instance)
|
|
170
|
+
|
|
154
171
|
# Resolve ICar and check that it returns the same instance
|
|
155
172
|
resolved = container.make(ICar)
|
|
156
|
-
|
|
157
173
|
self.assertIs(resolved, car_instance)
|
|
158
174
|
|
|
159
175
|
# Clean up registration
|
|
@@ -182,13 +198,19 @@ class TestContainer(AsyncTestCase):
|
|
|
182
198
|
-----
|
|
183
199
|
The registrations for 'add' and 'multiply' are dropped after the test.
|
|
184
200
|
"""
|
|
201
|
+
|
|
202
|
+
# Define some simple functions to register
|
|
185
203
|
def add(a: int, b: int) -> int:
|
|
186
204
|
return a + b
|
|
187
205
|
|
|
206
|
+
|
|
207
|
+
# Define another function to register
|
|
188
208
|
def multiply(a: int, b: int) -> int:
|
|
189
209
|
return a * b
|
|
190
210
|
|
|
211
|
+
# Create a new container instance
|
|
191
212
|
container = Container()
|
|
213
|
+
|
|
192
214
|
# Register callables
|
|
193
215
|
container.callable('add', add)
|
|
194
216
|
container.callable('multiply', multiply)
|
|
@@ -225,10 +247,14 @@ class TestContainer(AsyncTestCase):
|
|
|
225
247
|
-----
|
|
226
248
|
The registration for `ICar` is dropped after the test.
|
|
227
249
|
"""
|
|
250
|
+
|
|
251
|
+
# Create a new container instance
|
|
228
252
|
container = Application()
|
|
253
|
+
|
|
229
254
|
# Register ICar as a transient binding to Car
|
|
230
255
|
container.transient(ICar, Car)
|
|
231
256
|
|
|
257
|
+
# Define a Facade class to access the ICar binding
|
|
232
258
|
class CarFacade(Facade):
|
|
233
259
|
@classmethod
|
|
234
260
|
def getFacadeAccessor(cls):
|
|
@@ -269,10 +295,14 @@ class TestContainer(AsyncTestCase):
|
|
|
269
295
|
-----
|
|
270
296
|
The registration for `ICar` is dropped after the test.
|
|
271
297
|
"""
|
|
298
|
+
|
|
299
|
+
# Create a new container instance
|
|
272
300
|
container = Application()
|
|
301
|
+
|
|
273
302
|
# Register ICar as a singleton binding to Car
|
|
274
303
|
container.singleton(ICar, Car)
|
|
275
304
|
|
|
305
|
+
# Define a Facade class to access the ICar binding
|
|
276
306
|
class CarFacade(Facade):
|
|
277
307
|
@classmethod
|
|
278
308
|
def getFacadeAccessor(cls):
|
|
@@ -282,6 +312,7 @@ class TestContainer(AsyncTestCase):
|
|
|
282
312
|
instance1 = CarFacade.resolve()
|
|
283
313
|
instance2 = CarFacade.resolve()
|
|
284
314
|
|
|
315
|
+
# Assert both instances are of type Car and are the same object
|
|
285
316
|
self.assertIsInstance(instance1, Car)
|
|
286
317
|
self.assertIsInstance(instance2, Car)
|
|
287
318
|
self.assertIs(instance1, instance2)
|
|
@@ -312,12 +343,17 @@ class TestContainer(AsyncTestCase):
|
|
|
312
343
|
-----
|
|
313
344
|
The registration for `ICar` is dropped after the test.
|
|
314
345
|
"""
|
|
346
|
+
|
|
347
|
+
# Create a new container instance
|
|
315
348
|
container = Application()
|
|
349
|
+
|
|
316
350
|
# Create a new scope/context
|
|
317
351
|
with container.createContext():
|
|
352
|
+
|
|
318
353
|
# Register ICar as a scoped binding to Car
|
|
319
354
|
container.scoped(ICar, Car)
|
|
320
355
|
|
|
356
|
+
# Define a Facade class to access the ICar binding
|
|
321
357
|
class CarFacade(Facade):
|
|
322
358
|
@classmethod
|
|
323
359
|
def getFacadeAccessor(cls):
|
|
@@ -327,6 +363,7 @@ class TestContainer(AsyncTestCase):
|
|
|
327
363
|
instance1 = CarFacade.resolve()
|
|
328
364
|
instance2 = CarFacade.resolve()
|
|
329
365
|
|
|
366
|
+
# Assert both instances are of type Car and are the same object
|
|
330
367
|
self.assertIsInstance(instance1, Car)
|
|
331
368
|
self.assertIsInstance(instance2, Car)
|
|
332
369
|
self.assertIs(instance1, instance2)
|
|
@@ -357,7 +394,10 @@ class TestContainer(AsyncTestCase):
|
|
|
357
394
|
Exception
|
|
358
395
|
Raised when attempting to resolve an unregistered type.
|
|
359
396
|
"""
|
|
397
|
+
|
|
398
|
+
# Create a new container instance
|
|
360
399
|
container = Container()
|
|
400
|
+
|
|
361
401
|
# Attempt to resolve an unregistered type; should raise Exception
|
|
362
402
|
with self.assertRaises(Exception):
|
|
363
403
|
container.make('ICar')
|
|
@@ -386,13 +426,17 @@ class TestContainer(AsyncTestCase):
|
|
|
386
426
|
-----
|
|
387
427
|
The registration for `ICar` is dropped after the test.
|
|
388
428
|
"""
|
|
429
|
+
|
|
430
|
+
# Create a new container instance
|
|
389
431
|
class SportsCar(Car):
|
|
390
432
|
def start(self):
|
|
391
433
|
return f"{self.brand} {self.model} is starting."
|
|
392
434
|
def stop(self):
|
|
393
435
|
return f"{self.brand} {self.model} is stopping."
|
|
394
436
|
|
|
437
|
+
# Create a new container instance
|
|
395
438
|
container = Container()
|
|
439
|
+
|
|
396
440
|
# Register ICar as a singleton binding to Car
|
|
397
441
|
container.singleton(ICar, Car)
|
|
398
442
|
first = container.make(ICar)
|
|
@@ -20,6 +20,7 @@ class TestSingleton(AsyncTestCase):
|
|
|
20
20
|
None
|
|
21
21
|
This method does not return any value. Assertions are used to validate singleton behavior.
|
|
22
22
|
"""
|
|
23
|
+
|
|
23
24
|
# Create multiple instances of Container and Orionis
|
|
24
25
|
container1 = Container()
|
|
25
26
|
container2 = Container()
|
|
@@ -49,6 +50,8 @@ class TestSingleton(AsyncTestCase):
|
|
|
49
50
|
None
|
|
50
51
|
This method does not return any value. Assertions are used to validate thread-safe singleton behavior.
|
|
51
52
|
"""
|
|
53
|
+
|
|
54
|
+
# List to hold instances created in threads
|
|
52
55
|
container_instances = []
|
|
53
56
|
orionis_instances = []
|
|
54
57
|
|
|
@@ -101,6 +104,8 @@ class TestSingleton(AsyncTestCase):
|
|
|
101
104
|
None
|
|
102
105
|
This method does not return any value. Assertions are used to validate singleton separation.
|
|
103
106
|
"""
|
|
107
|
+
|
|
108
|
+
# Create instances of Container and Orionis
|
|
104
109
|
container = Container()
|
|
105
110
|
orionis = Orionis()
|
|
106
111
|
|
|
@@ -32,6 +32,8 @@ class TestThreadSafety(AsyncTestCase):
|
|
|
32
32
|
- ThreadPoolExecutor is used to simulate high concurrency.
|
|
33
33
|
- The test ensures that singleton integrity is maintained even under heavy load.
|
|
34
34
|
"""
|
|
35
|
+
|
|
36
|
+
# Create lists to hold instances created in threads
|
|
35
37
|
container_instances = []
|
|
36
38
|
orionis_instances = []
|
|
37
39
|
|