orionis 0.413.0__py3-none-any.whl → 0.415.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.
Files changed (90) hide show
  1. orionis/metadata/framework.py +1 -1
  2. orionis/support/entities/base.py +45 -26
  3. orionis/support/facades/console.py +8 -2
  4. orionis/support/facades/dumper.py +8 -2
  5. orionis/support/facades/logger.py +9 -2
  6. orionis/support/facades/path_resolver.py +9 -2
  7. orionis/support/facades/progress_bar.py +9 -2
  8. orionis/support/facades/testing.py +9 -2
  9. orionis/support/facades/workers.py +9 -2
  10. orionis/test/core/unit_test.py +26 -10
  11. orionis/test/output/dumper.py +1 -1
  12. {orionis-0.413.0.dist-info → orionis-0.415.0.dist-info}/METADATA +1 -1
  13. {orionis-0.413.0.dist-info → orionis-0.415.0.dist-info}/RECORD +88 -76
  14. orionis-0.415.0.dist-info/top_level.txt +4 -0
  15. tests/container/entities/test_binding.py +1 -1
  16. tests/container/test_thread_safety.py +0 -1
  17. tests/support/entities/__init__.py +0 -0
  18. tests/support/entities/mock_dataclass.py +34 -0
  19. tests/support/entities/test_base.py +72 -0
  20. tests/testing/cases/__init__.py +0 -0
  21. tests/testing/cases/test_testing_asynchronous.py +63 -0
  22. tests/testing/cases/test_testing_synchronous.py +59 -0
  23. tests/testing/entities/__init__.py +0 -0
  24. tests/testing/entities/test_testing_result.py +185 -0
  25. tests/testing/enums/__init__.py +0 -0
  26. tests/testing/enums/test_testing_status.py +68 -0
  27. tests/testing/output/__init__.py +0 -0
  28. tests/testing/output/test_testing_dumper.py +32 -0
  29. tests/testing/output/test_testing_printer.py +42 -0
  30. tests/testing/test_testing_unit.py +110 -209
  31. orionis-0.413.0.dist-info/top_level.txt +0 -2
  32. tests/testing/test_testing_result.py +0 -131
  33. {tests/foundation → environment}/__init__.py +0 -0
  34. {tests/services/environment → environment}/test_services_environment.py +0 -0
  35. {tests/foundation/config → foundation}/__init__.py +0 -0
  36. {tests/foundation/config/app → foundation/config}/__init__.py +0 -0
  37. {tests/foundation/config/auth → foundation/config/app}/__init__.py +0 -0
  38. {tests/foundation → foundation}/config/app/test_foundation_config_app.py +0 -0
  39. {tests/foundation/config/cache → foundation/config/auth}/__init__.py +0 -0
  40. {tests/foundation → foundation}/config/auth/test_foundation_config_auth.py +0 -0
  41. {tests/foundation/config/cors → foundation/config/cache}/__init__.py +0 -0
  42. {tests/foundation → foundation}/config/cache/test_foundation_config_cache.py +0 -0
  43. {tests/foundation → foundation}/config/cache/test_foundation_config_cache_file.py +0 -0
  44. {tests/foundation → foundation}/config/cache/test_foundation_config_cache_stores.py +0 -0
  45. {tests/foundation/config/database → foundation/config/cors}/__init__.py +0 -0
  46. {tests/foundation → foundation}/config/cors/test_foundation_config_cors.py +0 -0
  47. {tests/foundation/config/filesystems → foundation/config/database}/__init__.py +0 -0
  48. {tests/foundation → foundation}/config/database/test_foundation_config_database.py +0 -0
  49. {tests/foundation → foundation}/config/database/test_foundation_config_database_connections.py +0 -0
  50. {tests/foundation → foundation}/config/database/test_foundation_config_database_mysql.py +0 -0
  51. {tests/foundation → foundation}/config/database/test_foundation_config_database_oracle.py +0 -0
  52. {tests/foundation → foundation}/config/database/test_foundation_config_database_pgsql.py +0 -0
  53. {tests/foundation → foundation}/config/database/test_foundation_config_database_sqlite.py +0 -0
  54. {tests/foundation/config/logging → foundation/config/filesystems}/__init__.py +0 -0
  55. {tests/foundation → foundation}/config/filesystems/test_foundation_config_filesystems.py +0 -0
  56. {tests/foundation → foundation}/config/filesystems/test_foundation_config_filesystems_aws.py +0 -0
  57. {tests/foundation → foundation}/config/filesystems/test_foundation_config_filesystems_disks.py +0 -0
  58. {tests/foundation → foundation}/config/filesystems/test_foundation_config_filesystems_local.py +0 -0
  59. {tests/foundation → foundation}/config/filesystems/test_foundation_config_filesystems_public.py +0 -0
  60. {tests/foundation/config/mail → foundation/config/logging}/__init__.py +0 -0
  61. {tests/foundation → foundation}/config/logging/test_foundation_config_logging.py +0 -0
  62. {tests/foundation → foundation}/config/logging/test_foundation_config_logging_channels.py +0 -0
  63. {tests/foundation → foundation}/config/logging/test_foundation_config_logging_chunked.py +0 -0
  64. {tests/foundation → foundation}/config/logging/test_foundation_config_logging_daily.py +0 -0
  65. {tests/foundation → foundation}/config/logging/test_foundation_config_logging_hourly.py +0 -0
  66. {tests/foundation → foundation}/config/logging/test_foundation_config_logging_monthly.py +0 -0
  67. {tests/foundation → foundation}/config/logging/test_foundation_config_logging_stack.py +0 -0
  68. {tests/foundation → foundation}/config/logging/test_foundation_config_logging_weekly.py +0 -0
  69. {tests/foundation/config/queue → foundation/config/mail}/__init__.py +0 -0
  70. {tests/foundation → foundation}/config/mail/test_foundation_config_mail.py +0 -0
  71. {tests/foundation → foundation}/config/mail/test_foundation_config_mail_file.py +0 -0
  72. {tests/foundation → foundation}/config/mail/test_foundation_config_mail_mailers.py +0 -0
  73. {tests/foundation → foundation}/config/mail/test_foundation_config_mail_smtp.py +0 -0
  74. {tests/foundation/config/root → foundation/config/queue}/__init__.py +0 -0
  75. {tests/foundation → foundation}/config/queue/test_foundation_config_queue.py +0 -0
  76. {tests/foundation → foundation}/config/queue/test_foundation_config_queue_brokers.py +0 -0
  77. {tests/foundation → foundation}/config/queue/test_foundation_config_queue_database.py +0 -0
  78. {tests/foundation/config/session → foundation/config/root}/__init__.py +0 -0
  79. {tests/foundation → foundation}/config/root/test_foundation_config_root_paths.py +0 -0
  80. {tests/foundation/config/startup → foundation/config/session}/__init__.py +0 -0
  81. {tests/foundation → foundation}/config/session/test_foundation_config_session.py +0 -0
  82. {tests/foundation/config/testing → foundation/config/startup}/__init__.py +0 -0
  83. {tests/foundation → foundation}/config/startup/test_foundation_config_startup.py +0 -0
  84. {tests/foundation/exceptions → foundation/config/testing}/__init__.py +0 -0
  85. {tests/foundation → foundation}/config/testing/test_foundation_config_testing.py +0 -0
  86. {tests/services/environment → foundation/exceptions}/__init__.py +0 -0
  87. {tests/foundation → foundation}/exceptions/test_foundation_config_exceptions.py +0 -0
  88. {orionis-0.413.0.dist-info → orionis-0.415.0.dist-info}/WHEEL +0 -0
  89. {orionis-0.413.0.dist-info → orionis-0.415.0.dist-info}/licenses/LICENCE +0 -0
  90. {orionis-0.413.0.dist-info → orionis-0.415.0.dist-info}/zip-safe +0 -0
@@ -1,3 +1,58 @@
1
+ environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ environment/test_services_environment.py,sha256=6UH3g2Z2DQYtGnyySCRnT35VCENlL-PQWHIdH6zA9rw,3767
3
+ foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ foundation/config/app/test_foundation_config_app.py,sha256=3ol-IOoYs5wbxEY7rPsiR1LnFTbcaeqcKUy0x1KTVH0,5580
7
+ foundation/config/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ foundation/config/auth/test_foundation_config_auth.py,sha256=iDK3VuJ3TtuEYE5dR8xaByQ8mZLbrsFdCqaFrfCFlgY,1048
9
+ foundation/config/cache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ foundation/config/cache/test_foundation_config_cache.py,sha256=fDtw_0NPB2h18nrR13zD6WXL7lK6QyQKjpj6R61LMuw,4653
11
+ foundation/config/cache/test_foundation_config_cache_file.py,sha256=X_kb3D5LkZOq1VPqemgP1XRTsD_FLk8CG0MZWl1Wp1Y,3674
12
+ foundation/config/cache/test_foundation_config_cache_stores.py,sha256=yRVB5aBEGfL6sjJvLQAP0SFOXyiB7UjDgv01d5mPtjo,4584
13
+ foundation/config/cors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ foundation/config/cors/test_foundation_config_cors.py,sha256=0B19I4g5TRp9vQu79vcteeIsjbBpiIoE6Mxslx5d9os,6721
15
+ foundation/config/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ foundation/config/database/test_foundation_config_database.py,sha256=OiO42vc940RVCcHTj7XoMO-xpKFQ5l-5JpSYR4jwR24,4846
17
+ foundation/config/database/test_foundation_config_database_connections.py,sha256=sQ5b2rwmhdMk44oZOx4Hb6EGW_3DW3dnDUtTKu0QSWA,6977
18
+ foundation/config/database/test_foundation_config_database_mysql.py,sha256=200U6fL9XysUJ7tynSCKcWdRPEd7Fh4TP-lfSE2wMzY,12432
19
+ foundation/config/database/test_foundation_config_database_oracle.py,sha256=zhWuAFPKW5EQtTmfIunqo8mKjcdqbLy-nnSiy4x6lS4,10413
20
+ foundation/config/database/test_foundation_config_database_pgsql.py,sha256=Vl9AcYw-lTGUbyH8r6wtO27pd1B0ndRYwaJLiaivIRI,8531
21
+ foundation/config/database/test_foundation_config_database_sqlite.py,sha256=oxb0kyENsRHNiw5NwqYicB-URM43j0jTlL5leiPBm8Y,7362
22
+ foundation/config/filesystems/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ foundation/config/filesystems/test_foundation_config_filesystems.py,sha256=_XYpbESjUwX-LmLv2Ik4dPc-32KEiaa7_Iz753dXz-E,5278
24
+ foundation/config/filesystems/test_foundation_config_filesystems_aws.py,sha256=IqYDNTmYAtFLFsa0jLzbYZSApqo_YHxysaD74ytezrc,5897
25
+ foundation/config/filesystems/test_foundation_config_filesystems_disks.py,sha256=lG4bvb0kAcGQbwwtDzKPnW0jZG7Aniw52A4m-3vaL4Q,6474
26
+ foundation/config/filesystems/test_foundation_config_filesystems_local.py,sha256=X10AQjmlNB2sty34hXOkTDcMcZDraF-x1Kw6X7NxcBc,4296
27
+ foundation/config/filesystems/test_foundation_config_filesystems_public.py,sha256=W94Fb5CZ81HMaDI9Z_YetdY0ma77qINad-2AWBcyRlI,5900
28
+ foundation/config/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
+ foundation/config/logging/test_foundation_config_logging.py,sha256=vCYAp8qe6SOo1VJQcb1_R5JMQe00HCl78D4E-43Dxm8,3183
30
+ foundation/config/logging/test_foundation_config_logging_channels.py,sha256=c4OT2o_ml48uqwsCChXffRxFMjqpS3yTplZyvIqsEhA,8990
31
+ foundation/config/logging/test_foundation_config_logging_chunked.py,sha256=TL-pLde4LAvHTcj01RT_Sa_OkwbQHzKrAH-9UGKVaMY,7021
32
+ foundation/config/logging/test_foundation_config_logging_daily.py,sha256=Sf5vG6WL558N41dukprA5iiT1LoBXi1ak19QGSZpAsI,7076
33
+ foundation/config/logging/test_foundation_config_logging_hourly.py,sha256=zjDDXykck_gH9TLPcoESwgjUd-6qZJDjjFwD_Xz2Yak,6765
34
+ foundation/config/logging/test_foundation_config_logging_monthly.py,sha256=59AKYce42PqVVNGu_FjsQtR2EtXePUvYwgF4MkA01WM,6370
35
+ foundation/config/logging/test_foundation_config_logging_stack.py,sha256=BYTtZmbJlGeW_7qXo7AlyQZOluvZDzMgBTM68hbq2nc,5302
36
+ foundation/config/logging/test_foundation_config_logging_weekly.py,sha256=g-x3VCN_L1jrrSrsW1UkBWYpKeuK5ASAAzhlKQJDkvQ,7697
37
+ foundation/config/mail/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
+ foundation/config/mail/test_foundation_config_mail.py,sha256=xR3HY218J7vecdM1h0TaAfX4DGl90PUgmktlylT_4S8,4209
39
+ foundation/config/mail/test_foundation_config_mail_file.py,sha256=9apGs381QxaO9gwwDTAtObF61AMFTd61c1Sfx1nZeYM,3023
40
+ foundation/config/mail/test_foundation_config_mail_mailers.py,sha256=tcQ2EAcF2EOQ_QB2a765bexU_RImz8P7zBndi_tAFUk,3427
41
+ foundation/config/mail/test_foundation_config_mail_smtp.py,sha256=cf2gRJ0-IcqN38MhXIP_pfVjsRsRlCDOHPNB11B7daE,4883
42
+ foundation/config/queue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
+ foundation/config/queue/test_foundation_config_queue.py,sha256=xeeEmfgObuAnry7qB530vXWyNmCNl76vHyWXH0Eb-Qg,3416
44
+ foundation/config/queue/test_foundation_config_queue_brokers.py,sha256=COjFZ25AzA7clRCkjt6MseaiuxYOulLEsZxGfY2Lo5c,3051
45
+ foundation/config/queue/test_foundation_config_queue_database.py,sha256=qLYXjG8YVIp_NWYcZA9A2GmOdjFyt3snq9X1cdIok8M,4830
46
+ foundation/config/root/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
+ foundation/config/root/test_foundation_config_root_paths.py,sha256=HqxBdLI-mdsinSEjRKKKvbV2QzmXNfs4b__RzRoftiE,7102
48
+ foundation/config/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
+ foundation/config/session/test_foundation_config_session.py,sha256=Zvjzzy8ApRTogRbr3RaIe4EhvWoLKsX9udb2DSokCMI,6392
50
+ foundation/config/startup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
+ foundation/config/startup/test_foundation_config_startup.py,sha256=_7pi_uaI3OJcQu4hSh_k0iE_wWZDU6kWUOS5Y9yp17c,6807
52
+ foundation/config/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
+ foundation/config/testing/test_foundation_config_testing.py,sha256=BQsQVGmGBiIyRPag6d-meBxip4tW9rWXbKR-V-YDIfU,8237
54
+ foundation/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
+ foundation/exceptions/test_foundation_config_exceptions.py,sha256=tiXKxGSP8majXpLPyoGR0WGvDE1LoLXQK6NpcQNqz_A,4091
1
56
  orionis/__init__.py,sha256=4AGBG1xD3NjsqkmQ-fD3pde7tiO26iwOpdvJoNvP0kI,201
2
57
  orionis/_console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
58
  orionis/_console/command_filter.py,sha256=bn0fcWfQg13DrQBaV4NopNxdP-6up0G54Qmhg7r_BKA,1211
@@ -258,7 +313,7 @@ orionis/foundation/providers/progress_bar_provider.py,sha256=WW3grNgH-yV2meSSTeO
258
313
  orionis/foundation/providers/testing_provider.py,sha256=iJSN2RIChbYIL-1ue6vmPmDMCSrvERDkti4Er9MPiLA,1102
259
314
  orionis/foundation/providers/workers_provider.py,sha256=kiQjQRyUEyiBX2zcbF_KmqRgvc7Bvxsvg5oMtIvYniM,1075
260
315
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
261
- orionis/metadata/framework.py,sha256=jqDMZrSdfmPEJySPYTgu3zVGmQxZLzJKHYcCjiIq5TQ,4960
316
+ orionis/metadata/framework.py,sha256=PBPhkOuTumFXjj2FcS-EUvGdP6UNUR8seyMhX5M4YOw,4960
262
317
  orionis/metadata/package.py,sha256=tqLfBRo-w1j_GN4xvzUNFyweWYFS-qhSgAEc-AmCH1M,5452
263
318
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
264
319
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -354,15 +409,15 @@ orionis/services/system/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
354
409
  orionis/services/system/runtime/imports.py,sha256=iIwIx8RjBHaiveCdj_WPiMMbWsKGbIs02qpAzL_L3Z0,3158
355
410
  orionis/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
356
411
  orionis/support/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
357
- orionis/support/entities/base.py,sha256=4WuAzrk_sfWp8Wv5Yl9IUF6kTctlAXlSxHGh5mdu3MQ,3982
412
+ orionis/support/entities/base.py,sha256=UKDEpScz7ZeckCqD9TNxAhk0ZN9UPgrRQOpUUHVtfqg,4845
358
413
  orionis/support/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
359
- orionis/support/facades/console.py,sha256=Hx_VGZazpdPDkg1LgcCTzgASq7blzazGHXVNp2uN5w8,372
360
- orionis/support/facades/dumper.py,sha256=JD0xT11ReLlzTH1O5wdIG1-r9sg1nriJnhtqkLsavW8,370
361
- orionis/support/facades/logger.py,sha256=TWJP2OKiGIECnPqbCbxxNpgbhSFeqVaQkYOIVclYPdk,367
362
- orionis/support/facades/path_resolver.py,sha256=-ro3-yxmjKHngf6aOy2dzyeNulsiSJuxu__vJWsRuUA,376
363
- orionis/support/facades/progress_bar.py,sha256=ZmU7hojRP88PM39BX1fN0_2pTCUhOXdIqyKaQwPoQ-A,374
364
- orionis/support/facades/testing.py,sha256=sDnW_jzM_uU1Cyrg-6tFnpb45k_OiSy3_QNdlF2WOck,369
365
- orionis/support/facades/workers.py,sha256=XbDYSh_LCRzQI1jNEtBrB82Q6_iRg7i8lEzuyF5Om9E,365
414
+ orionis/support/facades/console.py,sha256=YAVAdP0TjLjKoBVU18mVl1MtMGWjbKJoYxZRlm1ZwUI,792
415
+ orionis/support/facades/dumper.py,sha256=Yxn_6sU3ijo8dXGZRDLi_S2lNJoeJtCeLX5GI4Jn0u4,803
416
+ orionis/support/facades/logger.py,sha256=VpDp7iXfAnkHxCQvwhcIT1XdJAWOfLsEkY-u_mGIuN8,796
417
+ orionis/support/facades/path_resolver.py,sha256=V_Mxf5-REBp9boeTR4FGM4M_QwGlIeRQIEoX-kb164g,845
418
+ orionis/support/facades/progress_bar.py,sha256=JB3CvXrlnBLONdQ0lygOYs1FAzYnXQLtih8C3R7xP8g,824
419
+ orionis/support/facades/testing.py,sha256=ZGRe0zhcgybKb8yx-Ysskg2c7FlTdss52uBYdGV8EeU,796
420
+ orionis/support/facades/workers.py,sha256=jJNFE_yjy-3uaqG8ynPTagnwOFLSGC50PsveDG4t4uE,763
366
421
  orionis/support/formatter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
367
422
  orionis/support/formatter/serializer.py,sha256=g816osgwYzAzCnduDh2IyHvXx-fEhnVmw8EPZkDT5Ak,522
368
423
  orionis/support/formatter/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -394,7 +449,7 @@ orionis/test/contracts/render.py,sha256=0o6NjrKx2ewBf1JvAf8BaAtJQPb64yq1FJCeKb3i
394
449
  orionis/test/contracts/test_result.py,sha256=vTNdVbWlzp0rsZ7KFPpFi6YjQMhUeurkRPLjBBcHRvc,3371
395
450
  orionis/test/contracts/unit_test.py,sha256=ZfgcB3JGBCcIOQ17uM6x355bHlGRHAR1uPBR4K-zCuc,5497
396
451
  orionis/test/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
397
- orionis/test/core/unit_test.py,sha256=PYfZZ5vdaPyfHYk_U240grRRTjt41Lu4bIGAF6ENqF4,66589
452
+ orionis/test/core/unit_test.py,sha256=QJa_xleHdMEQUdfxzv8OuNWFeiXMsjJSGju4885GZnA,67381
398
453
  orionis/test/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
399
454
  orionis/test/entities/result.py,sha256=eO9YWZ-I3ABNzlJ6jk09BUqnXjaHQ8mqeur2-pRGK9s,4041
400
455
  orionis/test/enums/__init__.py,sha256=M3imAgMvKFTKg55FbtVoY3zxj7QRY9AfaUWxiSZVvn4,66
@@ -406,7 +461,7 @@ orionis/test/exceptions/persistence.py,sha256=GbNwpUfrtZ-VstX_Amflg8OwQ3WEWOnDmn
406
461
  orionis/test/exceptions/runtime.py,sha256=yLLBtDR61k53OIAwi5wVLxap79Agh2khXrhRb4bTe9k,778
407
462
  orionis/test/exceptions/value.py,sha256=P9SD64EWATKneV-QP-yhfJ2GxyypKxqgmk5MqiguxV0,1001
408
463
  orionis/test/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
409
- orionis/test/output/dumper.py,sha256=vagHHjTaRdffCBO7pjylsYqSSoh11MnavZcCmr8RLPs,7148
464
+ orionis/test/output/dumper.py,sha256=7NRrFCFcMmI5T_1oHT90ymJOfhtfBRg0LXo5Io_dgzY,7147
410
465
  orionis/test/output/printer.py,sha256=cpElVLaK94JtQeHpgN-HTSuE8dJhPhZMt51L7Lramz8,29080
411
466
  orionis/test/records/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
412
467
  orionis/test/records/logs.py,sha256=WhOmRJhQck76vx8l_c_7M-H8_RS9p3yB_jJ39Rnx-Lc,19050
@@ -428,17 +483,17 @@ orionis/test/validators/web_report.py,sha256=-h3Fe9jY93_kzUhd2NBIqEfCcBpu-8Ei9x3
428
483
  orionis/test/validators/workers.py,sha256=LGffDKtK6SKixFKzIYPQpI5aFeQPAGXpv_LUtmEu6g4,1102
429
484
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
430
485
  orionis/test/view/render.py,sha256=3ICz68l-WF3BtnYqH5m-ktN9UD00MELMbmMnyJDV74A,4768
431
- orionis-0.413.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
486
+ orionis-0.415.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
432
487
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
433
488
  tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
434
489
  tests/container/test_container.py,sha256=asv8TkkupVoex6SWod74NBl4dSs7wb9mLmu_glNdNy8,14815
435
490
  tests/container/test_singleton.py,sha256=GkwFaLtRvOQCNMpaCXfQiPu6tJWRm3gkDaJ0vzQn1ko,4689
436
- tests/container/test_thread_safety.py,sha256=0gn6kawiSMSMP1iTGWZP-4cQcO2RWXo9Ay4skcihKEM,3740
491
+ tests/container/test_thread_safety.py,sha256=CxEMZRDHapJSX73oDrZBu2gxGJhFiBTo56pl0FzQbzA,3722
437
492
  tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
438
493
  tests/container/context/test_manager.py,sha256=QfzhzkK5LFmtI7AEE-dzceBROTo7VNnQfL3EGgYqK64,1354
439
494
  tests/container/context/test_scope.py,sha256=2ykGAmey5xu3cXASseIiOHosJ4QwABbQqRU3_WahO8c,1221
440
495
  tests/container/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
441
- tests/container/entities/test_binding.py,sha256=AZ5jUF0MMwTXueevZnYbLpF73g7qrAcvx51jlKMfqkg,9708
496
+ tests/container/entities/test_binding.py,sha256=CFiBGlOeQKK4ielkj1JqxOWJSqrsi2VFIE7nE5R6ykU,9709
442
497
  tests/container/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
443
498
  tests/container/enums/test_lifetimes.py,sha256=JFb4q1rgo10C5ibQ6LS-776NevxCMNLSq_cd7D1O8Ps,3511
444
499
  tests/container/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -462,67 +517,12 @@ tests/container/validators/test_is_valid_alias.py,sha256=egVf6IfSXurIdu8hKo03rws
462
517
  tests/container/validators/test_lifetime.py,sha256=5PequjXAcIcp0Q4TIki7THSU31XftGpI0u1mVGqHmpU,4692
463
518
  tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
464
519
  tests/example/test_example.py,sha256=XJEcsro3vCO5m4zvMiWUGphvd0C7oIkBtUfQgTDsdUU,25568
465
- tests/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
466
- tests/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
467
- tests/foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
468
- tests/foundation/config/app/test_foundation_config_app.py,sha256=3ol-IOoYs5wbxEY7rPsiR1LnFTbcaeqcKUy0x1KTVH0,5580
469
- tests/foundation/config/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
470
- tests/foundation/config/auth/test_foundation_config_auth.py,sha256=iDK3VuJ3TtuEYE5dR8xaByQ8mZLbrsFdCqaFrfCFlgY,1048
471
- tests/foundation/config/cache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
472
- tests/foundation/config/cache/test_foundation_config_cache.py,sha256=fDtw_0NPB2h18nrR13zD6WXL7lK6QyQKjpj6R61LMuw,4653
473
- tests/foundation/config/cache/test_foundation_config_cache_file.py,sha256=X_kb3D5LkZOq1VPqemgP1XRTsD_FLk8CG0MZWl1Wp1Y,3674
474
- tests/foundation/config/cache/test_foundation_config_cache_stores.py,sha256=yRVB5aBEGfL6sjJvLQAP0SFOXyiB7UjDgv01d5mPtjo,4584
475
- tests/foundation/config/cors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
476
- tests/foundation/config/cors/test_foundation_config_cors.py,sha256=0B19I4g5TRp9vQu79vcteeIsjbBpiIoE6Mxslx5d9os,6721
477
- tests/foundation/config/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
478
- tests/foundation/config/database/test_foundation_config_database.py,sha256=OiO42vc940RVCcHTj7XoMO-xpKFQ5l-5JpSYR4jwR24,4846
479
- tests/foundation/config/database/test_foundation_config_database_connections.py,sha256=sQ5b2rwmhdMk44oZOx4Hb6EGW_3DW3dnDUtTKu0QSWA,6977
480
- tests/foundation/config/database/test_foundation_config_database_mysql.py,sha256=200U6fL9XysUJ7tynSCKcWdRPEd7Fh4TP-lfSE2wMzY,12432
481
- tests/foundation/config/database/test_foundation_config_database_oracle.py,sha256=zhWuAFPKW5EQtTmfIunqo8mKjcdqbLy-nnSiy4x6lS4,10413
482
- tests/foundation/config/database/test_foundation_config_database_pgsql.py,sha256=Vl9AcYw-lTGUbyH8r6wtO27pd1B0ndRYwaJLiaivIRI,8531
483
- tests/foundation/config/database/test_foundation_config_database_sqlite.py,sha256=oxb0kyENsRHNiw5NwqYicB-URM43j0jTlL5leiPBm8Y,7362
484
- tests/foundation/config/filesystems/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
485
- tests/foundation/config/filesystems/test_foundation_config_filesystems.py,sha256=_XYpbESjUwX-LmLv2Ik4dPc-32KEiaa7_Iz753dXz-E,5278
486
- tests/foundation/config/filesystems/test_foundation_config_filesystems_aws.py,sha256=IqYDNTmYAtFLFsa0jLzbYZSApqo_YHxysaD74ytezrc,5897
487
- tests/foundation/config/filesystems/test_foundation_config_filesystems_disks.py,sha256=lG4bvb0kAcGQbwwtDzKPnW0jZG7Aniw52A4m-3vaL4Q,6474
488
- tests/foundation/config/filesystems/test_foundation_config_filesystems_local.py,sha256=X10AQjmlNB2sty34hXOkTDcMcZDraF-x1Kw6X7NxcBc,4296
489
- tests/foundation/config/filesystems/test_foundation_config_filesystems_public.py,sha256=W94Fb5CZ81HMaDI9Z_YetdY0ma77qINad-2AWBcyRlI,5900
490
- tests/foundation/config/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
491
- tests/foundation/config/logging/test_foundation_config_logging.py,sha256=vCYAp8qe6SOo1VJQcb1_R5JMQe00HCl78D4E-43Dxm8,3183
492
- tests/foundation/config/logging/test_foundation_config_logging_channels.py,sha256=c4OT2o_ml48uqwsCChXffRxFMjqpS3yTplZyvIqsEhA,8990
493
- tests/foundation/config/logging/test_foundation_config_logging_chunked.py,sha256=TL-pLde4LAvHTcj01RT_Sa_OkwbQHzKrAH-9UGKVaMY,7021
494
- tests/foundation/config/logging/test_foundation_config_logging_daily.py,sha256=Sf5vG6WL558N41dukprA5iiT1LoBXi1ak19QGSZpAsI,7076
495
- tests/foundation/config/logging/test_foundation_config_logging_hourly.py,sha256=zjDDXykck_gH9TLPcoESwgjUd-6qZJDjjFwD_Xz2Yak,6765
496
- tests/foundation/config/logging/test_foundation_config_logging_monthly.py,sha256=59AKYce42PqVVNGu_FjsQtR2EtXePUvYwgF4MkA01WM,6370
497
- tests/foundation/config/logging/test_foundation_config_logging_stack.py,sha256=BYTtZmbJlGeW_7qXo7AlyQZOluvZDzMgBTM68hbq2nc,5302
498
- tests/foundation/config/logging/test_foundation_config_logging_weekly.py,sha256=g-x3VCN_L1jrrSrsW1UkBWYpKeuK5ASAAzhlKQJDkvQ,7697
499
- tests/foundation/config/mail/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
500
- tests/foundation/config/mail/test_foundation_config_mail.py,sha256=xR3HY218J7vecdM1h0TaAfX4DGl90PUgmktlylT_4S8,4209
501
- tests/foundation/config/mail/test_foundation_config_mail_file.py,sha256=9apGs381QxaO9gwwDTAtObF61AMFTd61c1Sfx1nZeYM,3023
502
- tests/foundation/config/mail/test_foundation_config_mail_mailers.py,sha256=tcQ2EAcF2EOQ_QB2a765bexU_RImz8P7zBndi_tAFUk,3427
503
- tests/foundation/config/mail/test_foundation_config_mail_smtp.py,sha256=cf2gRJ0-IcqN38MhXIP_pfVjsRsRlCDOHPNB11B7daE,4883
504
- tests/foundation/config/queue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
505
- tests/foundation/config/queue/test_foundation_config_queue.py,sha256=xeeEmfgObuAnry7qB530vXWyNmCNl76vHyWXH0Eb-Qg,3416
506
- tests/foundation/config/queue/test_foundation_config_queue_brokers.py,sha256=COjFZ25AzA7clRCkjt6MseaiuxYOulLEsZxGfY2Lo5c,3051
507
- tests/foundation/config/queue/test_foundation_config_queue_database.py,sha256=qLYXjG8YVIp_NWYcZA9A2GmOdjFyt3snq9X1cdIok8M,4830
508
- tests/foundation/config/root/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
509
- tests/foundation/config/root/test_foundation_config_root_paths.py,sha256=HqxBdLI-mdsinSEjRKKKvbV2QzmXNfs4b__RzRoftiE,7102
510
- tests/foundation/config/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
511
- tests/foundation/config/session/test_foundation_config_session.py,sha256=Zvjzzy8ApRTogRbr3RaIe4EhvWoLKsX9udb2DSokCMI,6392
512
- tests/foundation/config/startup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
513
- tests/foundation/config/startup/test_foundation_config_startup.py,sha256=_7pi_uaI3OJcQu4hSh_k0iE_wWZDU6kWUOS5Y9yp17c,6807
514
- tests/foundation/config/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
515
- tests/foundation/config/testing/test_foundation_config_testing.py,sha256=BQsQVGmGBiIyRPag6d-meBxip4tW9rWXbKR-V-YDIfU,8237
516
- tests/foundation/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
517
- tests/foundation/exceptions/test_foundation_config_exceptions.py,sha256=tiXKxGSP8majXpLPyoGR0WGvDE1LoLXQK6NpcQNqz_A,4091
518
520
  tests/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
519
521
  tests/metadata/test_metadata_framework.py,sha256=1tCNciuPVgZPK-V8PzENJCXN-1bTktWPN9u03N4Eelw,5499
520
522
  tests/metadata/test_metadata_package.py,sha256=gXIX-N9toEHJsmFkdhAvJRnz2T5e6pbgK37I1eFYTGM,4770
521
523
  tests/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
522
524
  tests/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
523
525
  tests/services/asynchrony/test_services_asynchrony_coroutine.py,sha256=34Y0D6w2bVo_dm3oj0wzedMIJuSYieUG9Y2J1EQmZeo,3439
524
- tests/services/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
525
- tests/services/environment/test_services_environment.py,sha256=6UH3g2Z2DQYtGnyySCRnT35VCENlL-PQWHIdH6zA9rw,3767
526
526
  tests/services/introspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
527
527
  tests/services/introspection/test_reflection.py,sha256=AaBi0zi7GphOqnagV8N48GZHUuoT7743Pw3oc6_As6I,13700
528
528
  tests/services/introspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -547,6 +547,9 @@ tests/services/system/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
547
547
  tests/services/system/test_services_system_imports.py,sha256=jbtIQkw_4DI6x2E-4Lg3evnLAgCgDIBWE63LdJTLkxc,7507
548
548
  tests/services/system/test_services_system_workers.py,sha256=wITbpJHKW_OXqTaFeteNRFuw5Q3_7d9lWNJnFE2r6to,5052
549
549
  tests/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
550
+ tests/support/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
551
+ tests/support/entities/mock_dataclass.py,sha256=TZk4D1SdKqqz1kNaqLoMPlsl8s7dWOHIkSK5FsbyPRI,990
552
+ tests/support/entities/test_base.py,sha256=z9lpDm8iY-gP-jv2VsLD-60NT-peBoTpB5jUsLt6V-A,2441
550
553
  tests/support/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
551
554
  tests/support/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
552
555
  tests/support/patterns/singleton/test_patterns_singleton.py,sha256=L7Q2QEBwSdG_JGfSB4s4AKqxsV4cXeKR1d8V7MbyzFY,1461
@@ -555,10 +558,19 @@ tests/support/standard/test_services_std.py,sha256=U0hNF50YE4aLE3Z9yWB2awl9owFQR
555
558
  tests/support/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
556
559
  tests/support/wrapper/test_services_wrapper_docdict.py,sha256=Q_qyqZodLiTQ6Pv9zILfIoZj6l-WPzNWuIoRf1GTGY0,7535
557
560
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
558
- tests/testing/test_testing_result.py,sha256=aWOOJiHji_U7gcJHbDukgMmfBEEQCLQdyqpXJD5q4BE,4643
559
- tests/testing/test_testing_unit.py,sha256=Krz0Bw1toI9qvLtKtYe_slNvi7fYmZbHK1i4DRPMfUM,7952
560
- orionis-0.413.0.dist-info/METADATA,sha256=8xX9dll3RRMvC3_CLaMeRkUz59AoQUgxpEceM0lRF9w,4772
561
- orionis-0.413.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
562
- orionis-0.413.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
563
- orionis-0.413.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
564
- orionis-0.413.0.dist-info/RECORD,,
561
+ tests/testing/test_testing_unit.py,sha256=ZZM6RKxxg4TjANG3_Dy7aQpV60atQbCcSTlOdJZiDIs,4704
562
+ tests/testing/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
563
+ tests/testing/cases/test_testing_asynchronous.py,sha256=gBcUyx1gmhulC-51BLtJOCwQOK6EMBaUws8eG8nxYOs,2218
564
+ tests/testing/cases/test_testing_synchronous.py,sha256=n7btUA-2cXPx-HLRfyI7YtVuJvcSuYVC-z843SktPCk,2427
565
+ tests/testing/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
566
+ tests/testing/entities/test_testing_result.py,sha256=WtuoZarANSgcLeYSIU3heO-K8YORZkEgsQmHYPj1qPo,6734
567
+ tests/testing/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
568
+ tests/testing/enums/test_testing_status.py,sha256=Jld1j4nn1IvK_Cok4k-BIRUg3DiB55LZVVxXEnHsTdo,2479
569
+ tests/testing/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
570
+ tests/testing/output/test_testing_dumper.py,sha256=QWuHEN-ImwiqNszqnsYUOJNwgZB1WM8ussw_DqFkfEY,1063
571
+ tests/testing/output/test_testing_printer.py,sha256=ov4u0FLHtdWt3onXDQr4-uaMMKE3QYZ4Z-K9LGOuUiM,1366
572
+ orionis-0.415.0.dist-info/METADATA,sha256=Vo3D_EQQFEbqYWWc-nexGpjncl_9bLjVGsWk_QH4YFE,4772
573
+ orionis-0.415.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
574
+ orionis-0.415.0.dist-info/top_level.txt,sha256=nkPWzvqkAzAmwPMPo3_iiUgzWMFOGfz6hVwdASslEGE,37
575
+ orionis-0.415.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
576
+ orionis-0.415.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ environment
2
+ foundation
3
+ orionis
4
+ tests
@@ -3,7 +3,7 @@ from orionis.container.enums.lifetimes import Lifetime
3
3
  from orionis.container.exceptions.type import OrionisContainerTypeError
4
4
  from orionis.test.cases.asynchronous import AsyncTestCase
5
5
 
6
- class TestBinding(AsyncTestCase):
6
+ class TestEntities(AsyncTestCase):
7
7
 
8
8
  async def testBindingInitialization(self):
9
9
  """
@@ -1,4 +1,3 @@
1
- import threading
2
1
  import time
3
2
  import random
4
3
  from concurrent.futures import ThreadPoolExecutor, as_completed
File without changes
@@ -0,0 +1,34 @@
1
+ from dataclasses import dataclass, field
2
+ from enum import Enum
3
+ from orionis.support.entities.base import BaseEntity
4
+
5
+ class Color(Enum):
6
+ """Enumeration for available colors."""
7
+ RED = 1
8
+ GREEN = 2
9
+
10
+ @dataclass
11
+ class ExampleEntity(BaseEntity):
12
+ """
13
+ Example entity representing a data structure with id, name, color, and tags.
14
+
15
+ Attributes
16
+ ----------
17
+ id : int
18
+ Unique identifier for the entity.
19
+ name : str
20
+ Name of the entity.
21
+ color : Color
22
+ Color associated with the entity.
23
+ tags : list
24
+ List of tags associated with the entity.
25
+
26
+ Returns
27
+ -------
28
+ ExampleEntity
29
+ An instance of ExampleEntity with specified attributes.
30
+ """
31
+ id: int = 0 # Default id is 0
32
+ name: str = "default" # Default name is 'default'
33
+ color: Color = Color.RED # Default color is RED
34
+ tags: list = field(default_factory=list, metadata={"default": ["tag1", "tag2"]}) # Default tags list
@@ -0,0 +1,72 @@
1
+ from orionis.test.cases.asynchronous import AsyncTestCase
2
+ from tests.support.entities.mock_dataclass import Color, ExampleEntity
3
+
4
+ class TestBaseEntity(AsyncTestCase):
5
+
6
+ async def asyncSetUp(self):
7
+ """
8
+ Set up the test case asynchronously by initializing an ExampleEntity instance.
9
+
10
+ This method is called before each test coroutine to prepare the test environment.
11
+ It creates an ExampleEntity with predefined attributes.
12
+
13
+ Returns
14
+ -------
15
+ None
16
+ This method does not return any value.
17
+ """
18
+ # Create an ExampleEntity instance for use in tests
19
+ self.entity = ExampleEntity(id=42, name="test", color=Color.GREEN, tags=["a", "b"])
20
+
21
+ async def testToDict(self):
22
+ """
23
+ Test the toDict method of ExampleEntity.
24
+
25
+ Verifies that the toDict method returns a dictionary representation of the entity
26
+ with correct field values.
27
+
28
+ Returns
29
+ -------
30
+ None
31
+ This method does not return any value.
32
+ """
33
+
34
+ # Convert entity to dictionary
35
+ result = self.entity.toDict()
36
+ self.assertIsInstance(result, dict)
37
+
38
+ # Check individual field values
39
+ self.assertEqual(result["id"], 42)
40
+ self.assertEqual(result["name"], "test")
41
+ self.assertEqual(result["color"], Color.GREEN)
42
+ self.assertEqual(result["tags"], ["a", "b"])
43
+
44
+ async def testGetFields(self):
45
+ """
46
+ Test the getFields method of ExampleEntity.
47
+
48
+ Ensures that getFields returns a list of field information dictionaries,
49
+ each containing field name, types, default value, and metadata.
50
+
51
+ Returns
52
+ -------
53
+ None
54
+ This method does not return any value.
55
+ """
56
+
57
+ # Retrieve field information from entity
58
+ fields_info = self.entity.getFields()
59
+ self.assertIsInstance(fields_info, list)
60
+
61
+ # Extract field names for verification
62
+ names = [f["name"] for f in fields_info]
63
+ self.assertIn("id", names)
64
+ self.assertIn("name", names)
65
+ self.assertIn("color", names)
66
+ self.assertIn("tags", names)
67
+
68
+ # Check that each field info contains required keys
69
+ for f in fields_info:
70
+ self.assertIn("types", f)
71
+ self.assertIn("default", f)
72
+ self.assertIn("metadata", f)
File without changes
@@ -0,0 +1,63 @@
1
+ from orionis.test.cases.asynchronous import AsyncTestCase
2
+ import inspect
3
+
4
+ class TestAsyncTestCase(AsyncTestCase):
5
+
6
+ async def testMethodsExist(self):
7
+ """
8
+ Checks if the AsyncTestCase class defines the required asynchronous lifecycle methods.
9
+
10
+ Parameters
11
+ ----------
12
+ self : TestAsyncTestCase
13
+ The test case instance.
14
+
15
+ Returns
16
+ -------
17
+ None
18
+ This method does not return anything. It asserts the existence of required methods.
19
+
20
+ Notes
21
+ -----
22
+ This test ensures that the AsyncTestCase class contains all necessary asynchronous lifecycle methods
23
+ for proper setup and teardown in asynchronous test scenarios.
24
+ """
25
+ required_methods = [
26
+ "asyncSetUp",
27
+ "asyncTearDown",
28
+ "onAsyncSetup",
29
+ "onAsyncTeardown"
30
+ ]
31
+ # Assert that each required method exists in AsyncTestCase
32
+ for method_name in required_methods:
33
+ self.assertTrue(hasattr(AsyncTestCase, method_name), f"{method_name} does not exist")
34
+
35
+ async def testMethodsAreCoroutines(self):
36
+ """
37
+ Checks that all required asynchronous lifecycle methods in AsyncTestCase are coroutine functions.
38
+
39
+ Parameters
40
+ ----------
41
+ self : TestAsyncTestCase
42
+ The test case instance.
43
+
44
+ Returns
45
+ -------
46
+ None
47
+ This method does not return anything. It asserts that required methods are coroutine functions.
48
+
49
+ Notes
50
+ -----
51
+ This test verifies that the lifecycle methods are implemented as coroutine functions,
52
+ which is necessary for asynchronous execution in test cases.
53
+ """
54
+ required_methods = [
55
+ "asyncSetUp",
56
+ "asyncTearDown",
57
+ "onAsyncSetup",
58
+ "onAsyncTeardown"
59
+ ]
60
+ # Assert that each required method is a coroutine function
61
+ for method_name in required_methods:
62
+ method = getattr(AsyncTestCase, method_name)
63
+ self.assertTrue(inspect.iscoroutinefunction(method), f"{method_name} is not a coroutine function")
@@ -0,0 +1,59 @@
1
+ from orionis.test.cases.asynchronous import AsyncTestCase
2
+ from orionis.test.cases.synchronous import SyncTestCase
3
+ import inspect
4
+
5
+ class TestSyncTestCase(AsyncTestCase):
6
+
7
+ async def testHasMethods(self):
8
+ """
9
+ Checks whether the SyncTestCase class defines the required synchronous lifecycle methods.
10
+
11
+ This test verifies the existence of the following methods in SyncTestCase:
12
+ - setUp: Prepares the test environment before each test.
13
+ - tearDown: Cleans up the test environment after each test.
14
+ - onSetup: Additional setup logic for tests.
15
+ - onTeardown: Additional teardown logic for tests.
16
+
17
+ Returns
18
+ -------
19
+ None
20
+ This method does not return any value. It performs assertions to validate the presence of required methods.
21
+ """
22
+ # Assert that SyncTestCase has a setUp method
23
+ self.assertTrue(hasattr(SyncTestCase, "setUp"))
24
+
25
+ # Assert that SyncTestCase has a tearDown method
26
+ self.assertTrue(hasattr(SyncTestCase, "tearDown"))
27
+
28
+ # Assert that SyncTestCase has an onSetup method
29
+ self.assertTrue(hasattr(SyncTestCase, "onSetup"))
30
+
31
+ # Assert that SyncTestCase has an onTeardown method
32
+ self.assertTrue(hasattr(SyncTestCase, "onTeardown"))
33
+
34
+ async def testMethodsAreNotCoroutines(self):
35
+ """
36
+ Checks that the lifecycle methods of SyncTestCase are regular functions and not coroutine functions.
37
+
38
+ This test ensures that the following methods are synchronous:
39
+ - setUp
40
+ - tearDown
41
+ - onSetup
42
+ - onTeardown
43
+
44
+ Returns
45
+ -------
46
+ None
47
+ This method does not return any value. It performs assertions to confirm that the methods are not coroutine functions.
48
+ """
49
+ # Assert that setUp is not a coroutine function
50
+ self.assertFalse(inspect.iscoroutinefunction(SyncTestCase.setUp))
51
+
52
+ # Assert that tearDown is not a coroutine function
53
+ self.assertFalse(inspect.iscoroutinefunction(SyncTestCase.tearDown))
54
+
55
+ # Assert that onSetup is not a coroutine function
56
+ self.assertFalse(inspect.iscoroutinefunction(SyncTestCase.onSetup))
57
+
58
+ # Assert that onTeardown is not a coroutine function
59
+ self.assertFalse(inspect.iscoroutinefunction(SyncTestCase.onTeardown))
File without changes