orionis 0.199.0__py3-none-any.whl → 0.202.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 (48) hide show
  1. orionis/framework.py +1 -1
  2. orionis/luminate/console/base/command.py +88 -80
  3. orionis/luminate/console/command_filter.py +0 -1
  4. orionis/luminate/console/commands/cache_clear.py +19 -11
  5. orionis/luminate/console/commands/help.py +19 -10
  6. orionis/luminate/console/commands/schedule_work.py +1 -4
  7. orionis/luminate/console/commands/version.py +1 -3
  8. orionis/luminate/console/exceptions/cli-orionis-value-error.py +41 -0
  9. orionis/luminate/console/exceptions/cli_exception.py +1 -127
  10. orionis/luminate/console/exceptions/cli_runtime_error.py +41 -0
  11. orionis/luminate/console/exceptions/cli_schedule_exception.py +41 -0
  12. orionis/luminate/console/output/console.py +160 -68
  13. orionis/luminate/console/output/executor.py +1 -1
  14. orionis/luminate/console/output/styles.py +12 -4
  15. orionis/luminate/console/parser.py +1 -1
  16. orionis/luminate/container/container_integrity.py +56 -1
  17. orionis/luminate/contracts/console/base/command.py +65 -75
  18. orionis/luminate/contracts/console/output/console.py +160 -60
  19. orionis/luminate/contracts/support/{exception_to_dict.py → exception_parse.py} +2 -2
  20. orionis/luminate/facades/tests/tests_facade.py +1 -1
  21. orionis/luminate/services/commands/scheduler_service.py +1 -1
  22. orionis/luminate/support/{exception_to_dict.py → exception_parse.py} +11 -16
  23. orionis/luminate/support/inspection/container_integrity.py +292 -0
  24. orionis/luminate/support/inspection/functions.py +235 -0
  25. orionis/luminate/support/inspection/reflection.py +649 -0
  26. orionis/luminate/support/inspection/reflexion_abstract.py +23 -0
  27. orionis/luminate/support/inspection/reflexion_concrete.py +24 -0
  28. orionis/luminate/support/inspection/reflexion_concrete_with_abstract.py +31 -0
  29. orionis/luminate/support/inspection/reflexion_instance.py +364 -0
  30. orionis/luminate/support/inspection/reflexion_instance_with_abstract.py +309 -0
  31. orionis/luminate/support/inspection/reflexion_module.py +19 -0
  32. orionis/luminate/support/inspection/reflexion_module_with_classname.py +22 -0
  33. orionis/luminate/test/{exception.py → test_exception.py} +1 -2
  34. orionis/luminate/test/test_result.py +30 -0
  35. orionis/luminate/test/test_status.py +22 -0
  36. orionis/luminate/test/tests.py +67 -0
  37. orionis/luminate/test/unit_test.py +276 -56
  38. {orionis-0.199.0.dist-info → orionis-0.202.0.dist-info}/METADATA +1 -1
  39. {orionis-0.199.0.dist-info → orionis-0.202.0.dist-info}/RECORD +45 -31
  40. tests/main.py +0 -0
  41. orionis/luminate/console/commands/tests.py +0 -34
  42. tests/tools/class_example.py +0 -50
  43. tests/tools/test_reflection.py +0 -128
  44. {tests/tools → orionis/luminate/support/inspection}/__init__.py +0 -0
  45. {orionis-0.199.0.dist-info → orionis-0.202.0.dist-info}/LICENCE +0 -0
  46. {orionis-0.199.0.dist-info → orionis-0.202.0.dist-info}/WHEEL +0 -0
  47. {orionis-0.199.0.dist-info → orionis-0.202.0.dist-info}/entry_points.txt +0 -0
  48. {orionis-0.199.0.dist-info → orionis-0.202.0.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  orionis/console.py,sha256=4gYWxf0fWYgJ4RKwARvnTPh06FL3GJ6SAZ7R2NzOICw,1342
3
- orionis/framework.py,sha256=BAnlpo7g1gISfmflc0pRttKYURNxvSlkqTsfX4Ph7jg,1469
3
+ orionis/framework.py,sha256=18MaKCn57mg1rxIum1RP9LmF_HV9qnuuhyrYS6ENti0,1469
4
4
  orionis/installer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  orionis/installer/manager.py,sha256=Li4TVziRXWfum02xNG4JHwbnLk-u8xzHjdqKz-D894k,2755
6
6
  orionis/installer/output.py,sha256=7O9qa2xtXMB_4ZvVi-Klneom9YazwygAd_4uYAoxhbU,8548
@@ -23,27 +23,29 @@ orionis/luminate/config/mail.py,sha256=i7von352c0hujaIATEvlNBHlpWRZYNAeT3lbwA59d
23
23
  orionis/luminate/config/queue.py,sha256=4ww3OA4V0nCO93llKW3J3aeV29JSsWoi5lqA_sFLUUY,1653
24
24
  orionis/luminate/config/session.py,sha256=xppot_rPAajfGR9o-wfMDwRyWMDSnI2Q7PDyutyEVcI,1809
25
25
  orionis/luminate/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- orionis/luminate/console/command_filter.py,sha256=fmqjQZFwhsEMKWuTtt4dIQF-souVSJk1ksO3UqV7sis,1274
26
+ orionis/luminate/console/command_filter.py,sha256=y13ZMEvUqSXOUtT6jXvKlzfMXZt3_UJOwLrAFhxz3yM,1219
27
27
  orionis/luminate/console/kernel.py,sha256=knzOpbsHJJpAbCSrnFXgRHK9Uk4OisEW_jiylaR-PLA,891
28
- orionis/luminate/console/parser.py,sha256=jQPDYHvGt-h2qnmDUObaxF9CmuX9YK_8XTYnQwKCSXE,5586
28
+ orionis/luminate/console/parser.py,sha256=kcPyYRkJzBCLibahfl0RtO4pOhrvCffkGB_mCbj7cHQ,5586
29
29
  orionis/luminate/console/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- orionis/luminate/console/base/command.py,sha256=Z5Pk2VhZEv7_0dP4f9Ay4DLX6DV4N78nraX4ty0pQ5g,12579
30
+ orionis/luminate/console/base/command.py,sha256=1LGpgwjo0hdyTXs1mRZ-7L4jnuBvzbogw3Q1eyKzasE,12344
31
31
  orionis/luminate/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
- orionis/luminate/console/commands/cache_clear.py,sha256=UV2VFFK-LsUNDrqKb_Q8HWnwlwvIuTWTsbQ5x5rWHGk,2859
33
- orionis/luminate/console/commands/help.py,sha256=ifo_5KfwI5mokWIvIAqjys2zSGSbudVACITlsSdbOVU,2281
34
- orionis/luminate/console/commands/schedule_work.py,sha256=eYF94qgNjjAGLoN4JWA0e0zeNWc3fptj2NY2O7KGGGU,2174
35
- orionis/luminate/console/commands/tests.py,sha256=Z7e6aM5Vu8C7R8iC8sJgUYVN9aJgtVMkqjUEFxPq91o,1281
36
- orionis/luminate/console/commands/version.py,sha256=llVPK6ELtf8dIdPvLbybrtipWwZkzV0EXc9ShL-C-GY,1140
32
+ orionis/luminate/console/commands/cache_clear.py,sha256=rHQugB7dmBgaLTW3r3XzPysnijb2MmA3_9pWUOj6VDk,2908
33
+ orionis/luminate/console/commands/help.py,sha256=uzWK20xzheWPDFp4Ct040RXl6GbXoB2PuvYEnv1314U,2562
34
+ orionis/luminate/console/commands/schedule_work.py,sha256=cVhZDswp73bZLgOi49HLaTe_AknSeaxcl3bB-QqHZwk,2074
35
+ orionis/luminate/console/commands/version.py,sha256=W1DikoBXSZmU-SxvL1LDZbj3GnkmlptlJRyu1lJV3to,1058
37
36
  orionis/luminate/console/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- orionis/luminate/console/exceptions/cli_exception.py,sha256=T5rFjBEXWQf3RbpMb7KDoYayylm5DLPUPLC5OzkZ2-I,4623
37
+ orionis/luminate/console/exceptions/cli-orionis-value-error.py,sha256=RQP0HRwxDG8hxFOT1kUoZ1Ab1CZ1KLoSIl5yqlmgG4M,1147
38
+ orionis/luminate/console/exceptions/cli_exception.py,sha256=HsZ_vSeNiJWQ0gznVFNcIdhM0Bj_vkSRVBJs0wMjEKY,1141
39
+ orionis/luminate/console/exceptions/cli_runtime_error.py,sha256=DaCDGu6mXBk1LIzc7cwRROw1mePAigPNASjNZHhUSBE,1154
40
+ orionis/luminate/console/exceptions/cli_schedule_exception.py,sha256=IBbXb_5zi02pyo1laHdjGn6FYZK7WWRp4j2fkZOCT6I,1161
39
41
  orionis/luminate/console/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
- orionis/luminate/console/output/console.py,sha256=U4Hh1yf6ss9i1uzmMZ3kbOwxyBn4uBr9aem7bnpmB0E,16355
41
- orionis/luminate/console/output/executor.py,sha256=91722rNiAsKpuq5QYiI7Aqw_7ccmn0DS9KYQrZt0TOs,3369
42
+ orionis/luminate/console/output/console.py,sha256=Qcv54W6YOLXP81C4YzatA2casmSQ1BQhUFHsbxJUjjs,18196
43
+ orionis/luminate/console/output/executor.py,sha256=-efhCbWOS4ZqmRsO0s3j5NEbw4I9hVROF8Q3Atx77zs,3369
42
44
  orionis/luminate/console/output/progress_bar.py,sha256=ZiPGcUaN3EINeLRKgLGtS1GAb1XWlCDx7wFQ7Ff0hqY,3096
43
- orionis/luminate/console/output/styles.py,sha256=2e1_FJdNpKaVqmdlCx-udzTleH_6uEFE9_TjH7T1ZUk,3696
45
+ orionis/luminate/console/output/styles.py,sha256=6a4oQCOBOKMh2ARdeq5GlIskJ3wjiylYmh66tUKKmpQ,4053
44
46
  orionis/luminate/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
47
  orionis/luminate/container/container.py,sha256=9xdODX1h4YK6V-THrfgm5XN95imobExzrb4bllizrWQ,18321
46
- orionis/luminate/container/container_integrity.py,sha256=lFQ41IN_3Z0SbtJzZ_9jewoaUI4xlsBEFXPfn-p82uI,7976
48
+ orionis/luminate/container/container_integrity.py,sha256=6d9FsGk-Rm1AXgqBS3Nww49dR7n1ptXTTNyGUuBHgNY,10111
47
49
  orionis/luminate/container/exception.py,sha256=ap1SqYEjQEEHXJJTNmL7V1jrmRjgT5_7geZ95MYkhMA,1691
48
50
  orionis/luminate/container/lifetimes.py,sha256=2lbdiV7R2WlJf1cLD6eBxLnJud_lZvX1IhQH2Djy3Ww,375
49
51
  orionis/luminate/container/resolve.py,sha256=Vg0VI3DGzZO6-D3AHX1BpEoiyC5hPDTR-NuiWkl7U_c,2306
@@ -57,9 +59,9 @@ orionis/luminate/contracts/console/kernel.py,sha256=GtiGlWe7EQ9aeChHpQ-GlIJlJ5tE
57
59
  orionis/luminate/contracts/console/parser.py,sha256=2iu8mHscZmb2BcX6-6Fy_NVvqN5Zj1YEk2fWOf30XT8,2080
58
60
  orionis/luminate/contracts/console/task_manager.py,sha256=SfSEAebGZIt7ajBU-jdWklvYHjUffA5pertVVLw-E4E,1207
59
61
  orionis/luminate/contracts/console/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
- orionis/luminate/contracts/console/base/command.py,sha256=godE5t2r5Vrc5jYu_bsJnlSj8DjFWqtZYe14S7sKxwE,12239
62
+ orionis/luminate/contracts/console/base/command.py,sha256=5EktdRI7EkU2gkBxpK5s-c65jOQ83KXV5OUT2RcK4_I,10860
61
63
  orionis/luminate/contracts/console/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
- orionis/luminate/contracts/console/output/console.py,sha256=bkYTT5oIK3NP-p7XONgi1z_SO50ZvJu31Nv7cjs4t7s,8902
64
+ orionis/luminate/contracts/console/output/console.py,sha256=jISa955ZVOUuJUdm7UCo_r_Ft1j9vG7Tg5j5aDw3Bvc,10552
63
65
  orionis/luminate/contracts/console/output/executor.py,sha256=MGMTTPSwF8dgCjHD3A4CKtYDaCcD-KU28dorC61Q04k,1411
64
66
  orionis/luminate/contracts/console/output/progress_bar.py,sha256=sOkQzQsliFemqZHMyzs4fWhNJfXDTk5KH3aExReetSE,1760
65
67
  orionis/luminate/contracts/container/container.py,sha256=rLOS1eYir1e1e06OVNTGESbR24rFOIU1CVni_8AbHgs,8802
@@ -103,7 +105,7 @@ orionis/luminate/contracts/services/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-
103
105
  orionis/luminate/contracts/services/files/path_resolver_service.py,sha256=B53Qzei4o_jzehIF0zJVHXzI4S-h0XeQ5vMslxT8okM,837
104
106
  orionis/luminate/contracts/services/log/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
105
107
  orionis/luminate/contracts/services/log/log_service.py,sha256=1RD3u-a5ZDMbg7AYE8y2SW8QNRybAU3De0mEA0dAeNo,2167
106
- orionis/luminate/contracts/support/exception_to_dict.py,sha256=LZpbCNDYQJs3j2mIM-NRFl0IfA8I0GFHExgRSO6K2FQ,780
108
+ orionis/luminate/contracts/support/exception_parse.py,sha256=P7yh5Q3KIcRPAZeg6190XbOSvu5XBK-VVt6zHxaiexw,779
107
109
  orionis/luminate/contracts/support/reflection.py,sha256=Ht5_FsFbCb-APRXX3HdsfKl3cDZU8DyXGXPWKTn05uQ,8429
108
110
  orionis/luminate/contracts/support/std.py,sha256=IihREHnJ_D2LqsrwtnGsIRYr0UsJsQezYPSPO6UaBQ4,992
109
111
  orionis/luminate/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -120,7 +122,7 @@ orionis/luminate/facades/files/path_facade.py,sha256=z6DLW7IiBc6nonEwcIbylgpbrM9
120
122
  orionis/luminate/facades/log/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
121
123
  orionis/luminate/facades/log/log_facade.py,sha256=8WTLtCvfSdF9ve3lrc3GV0hXxNtolah8WJWfkMUQ_JI,699
122
124
  orionis/luminate/facades/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
123
- orionis/luminate/facades/tests/tests_facade.py,sha256=hvNMU8idxxfvz4x-1_jeloff2Gee0k61VfUhxDrR6eg,1667
125
+ orionis/luminate/facades/tests/tests_facade.py,sha256=TxtxYGLqT3Z199Kox8RL9hGbA4guZie855SJZ6DgfYQ,1662
124
126
  orionis/luminate/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
125
127
  orionis/luminate/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
126
128
  orionis/luminate/foundation/config/config_bootstrapper.py,sha256=Zdk3C-asIc0zizRI6r_V-e3mQQ1yuh39B8DHdspOxw0,7508
@@ -151,7 +153,7 @@ orionis/luminate/providers/log/log_service_provider.py,sha256=c4pTAbeBtLll6LzPPp
151
153
  orionis/luminate/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
152
154
  orionis/luminate/services/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
153
155
  orionis/luminate/services/commands/reactor_commands_service.py,sha256=oca_xPEQ_dyJKsYfUgsNK3WpMR-f0JabNE8C5pD8hoc,6250
154
- orionis/luminate/services/commands/scheduler_service.py,sha256=bOovnY83aZPfDz7XhGv4mQXVV116l_9UeaCstA89i_8,22474
156
+ orionis/luminate/services/commands/scheduler_service.py,sha256=mKy5I293GtpH98U4rOGXvcpqYwPVvp1cfceXdk53dsQ,22483
155
157
  orionis/luminate/services/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
156
158
  orionis/luminate/services/config/config_service.py,sha256=RKZ194_0RAEkRFSm3OPoDDdme0_wyBZNLaEQhIVdbYk,2114
157
159
  orionis/luminate/services/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -162,12 +164,26 @@ orionis/luminate/services/log/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
162
164
  orionis/luminate/services/log/log_service.py,sha256=jrCrKz7Uj6n_ri-v5A4YOILQGUQ9MAmrlSizbbOvKhI,8303
163
165
  orionis/luminate/support/asyn_run.py,sha256=MTwVGNEnKRqD582oZRpUDQ141-hXoO5wc4NSdC7ct0E,1114
164
166
  orionis/luminate/support/dot_dict.py,sha256=FVHfBuAGTTVMjNG01Fix645fRNKKUMmNx61pYkxPL5c,1253
165
- orionis/luminate/support/exception_to_dict.py,sha256=OV3vWZ6Dlh3EnFurR_7zhR3mfXDZg-UFbMsfs4tNnLA,2105
167
+ orionis/luminate/support/exception_parse.py,sha256=S4KU0s-MCEbulPrf0N9tLZZIN3Sjn-tOKYtQCP0Xe0k,1655
166
168
  orionis/luminate/support/reflection.py,sha256=TbWZ_cer0PXrPlwCYFbUJRymlzYxXT0E4C5XCsSc3mw,11951
167
169
  orionis/luminate/support/std.py,sha256=TqrgMxF_i5ubYGT5LOvHCH7HOHNmI8CE1kG9pNoSniY,1390
170
+ orionis/luminate/support/inspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
171
+ orionis/luminate/support/inspection/container_integrity.py,sha256=6d9FsGk-Rm1AXgqBS3Nww49dR7n1ptXTTNyGUuBHgNY,10111
172
+ orionis/luminate/support/inspection/functions.py,sha256=XVDLdygONcfDNlH7CZ6muNdtYHLgNp5RybqC3smL4Y4,6400
173
+ orionis/luminate/support/inspection/reflection.py,sha256=x_UHBY9pBSKgct13-u1WbhoONqLoGG60OpgoCsKE0AI,20368
174
+ orionis/luminate/support/inspection/reflexion_abstract.py,sha256=T3Zsi2KT2cS2-Upu0NDcW5FTrcytTLxlmBfZ_KAYA3Y,554
175
+ orionis/luminate/support/inspection/reflexion_concrete.py,sha256=0WOlLeTWLwMeAUReoaJetqlnT1_TxW_jMnbk_yXRR0g,549
176
+ orionis/luminate/support/inspection/reflexion_concrete_with_abstract.py,sha256=ZuAFoSPkgbOFMIbVR0hvlkKsm1dIpY1_bsXxZxvXcmU,801
177
+ orionis/luminate/support/inspection/reflexion_instance.py,sha256=ROmZ-hxYdnrCsYdzjZyH4KhDZxKEWkDM5ZTPg4BmGmc,9079
178
+ orionis/luminate/support/inspection/reflexion_instance_with_abstract.py,sha256=dag6QdVp1CydREWdpQvzAyOPX3q-lSb0_XzB0u3odQE,9629
179
+ orionis/luminate/support/inspection/reflexion_module.py,sha256=OgBXpqNJHkmq-gX4rqFStv-WVNe9R38RsgUgfHpak8k,405
180
+ orionis/luminate/support/inspection/reflexion_module_with_classname.py,sha256=YZHZI0XUZkSWnq9wrGxrIXtI64nY9yVSZoMe7PZXq8Y,620
168
181
  orionis/luminate/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
169
- orionis/luminate/test/exception.py,sha256=VJaZ7VMZfdKW1ov_GwKp2HAz_NYobujJxDt5RaPHuVQ,1395
170
- orionis/luminate/test/unit_test.py,sha256=7pZWRYRtLRz5_EZBWuXHZShRm7y5ICtl-52FTrsUqso,3652
182
+ orionis/luminate/test/test_exception.py,sha256=21PILTXnMuL5-wT3HGKjIklt8VeIYDcQDN346i-BbJw,1336
183
+ orionis/luminate/test/test_result.py,sha256=Px2_M70r_y7BntRITk_h0IPTbSTW5XhDyklMKHm3JJI,999
184
+ orionis/luminate/test/test_status.py,sha256=vNKRmp1lud_ZGTayf3A8wO_0vEYdFABy_oMw-RcEc1c,673
185
+ orionis/luminate/test/tests.py,sha256=KZRFHB6C8S2DN6JHqJ2sIuSNAUMh9JW1Yn-XGjXjjTw,2218
186
+ orionis/luminate/test/unit_test.py,sha256=HtPDWzFXpgFwWYej8z2BArU4k5lItH57K_E-l21MBWo,12070
171
187
  orionis/static/ascii/icon.ascii,sha256=IgrlVjcYxcCrr0cJuJkOnEz0aEdAQBTyLzO5ainKsWc,398
172
188
  orionis/static/ascii/info.ascii,sha256=HF_o2eXaiw5iqcOhHfnPByn5GJ_O2eBwSK3IpTfYOwY,457
173
189
  orionis/static/bg/galaxy.jpg,sha256=_FuPghOe9LBrIWv1eKZ9fiZR72sEz5obvXGDnD7MzTc,172244
@@ -178,12 +194,10 @@ orionis/static/logos/OrionisFramework.psd,sha256=QFMRe_HENaIgQi9VWMvNV3OHKOFofFG
178
194
  orionis/static/logos/OrionisFramework2.png,sha256=Z_-yBHNSo33QeSTyi-8GfiFozdRqUomIZ28bGx6Py5c,256425
179
195
  orionis/static/logos/OrionisFramework3.png,sha256=BPG9ZB58vDALavI9OMmr8Ym0DQa44s5NL_3M4M6dIYs,193734
180
196
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
181
- tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
182
- tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
183
- tests/tools/test_reflection.py,sha256=bhLQ7VGVod4B8sv-rW9AjnOumvaBVsoxieA3sdoM2yM,5244
184
- orionis-0.199.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
185
- orionis-0.199.0.dist-info/METADATA,sha256=cht6x2f35drPQK6eR9h798rnVN0v9KULguOi8jHL3jg,3003
186
- orionis-0.199.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
187
- orionis-0.199.0.dist-info/entry_points.txt,sha256=a_e0faeSqyUCVZd0MqljQ2oaHHdlsz6g9sU_bMqi5zQ,49
188
- orionis-0.199.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
189
- orionis-0.199.0.dist-info/RECORD,,
197
+ tests/main.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
198
+ orionis-0.202.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
199
+ orionis-0.202.0.dist-info/METADATA,sha256=kiVvQVX5rkTnqeLGvor85Qu4hFAhiCJopnuaX0u1j4E,3003
200
+ orionis-0.202.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
201
+ orionis-0.202.0.dist-info/entry_points.txt,sha256=a_e0faeSqyUCVZd0MqljQ2oaHHdlsz6g9sU_bMqi5zQ,49
202
+ orionis-0.202.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
203
+ orionis-0.202.0.dist-info/RECORD,,
tests/main.py ADDED
File without changes
@@ -1,34 +0,0 @@
1
- from orionis.luminate.console.exceptions.cli_exception import CLIOrionisRuntimeError
2
- from orionis.luminate.console.base.command import BaseCommand
3
- from orionis.luminate.facades.tests.tests_facade import UnitTests
4
-
5
- class TestsCommand(BaseCommand):
6
- """
7
- Command class to display the list of available commands in the Orionis application.
8
-
9
- This command fetches all registered commands from the cache and presents them in a table format.
10
- """
11
-
12
- # Command signature used for execution.
13
- signature = "tests:run"
14
-
15
- # Brief description of the command.
16
- description = "Prints the list of available commands along with their descriptions."
17
-
18
- def handle(self) -> None:
19
- """
20
- Execute the help command.
21
-
22
- This method retrieves all available commands from the cache, sorts them alphabetically,
23
- and displays them in a structured table format.
24
-
25
- Raises
26
- ------
27
- ValueError
28
- If an unexpected error occurs during execution, a ValueError is raised
29
- with the original exception message.
30
- """
31
- try:
32
- return UnitTests.execute()
33
- except Exception as e:
34
- raise CLIOrionisRuntimeError(f"An unexpected error occurred: {e}") from e
@@ -1,50 +0,0 @@
1
- from enum import Enum
2
-
3
- class BaseTestClass:
4
- """
5
- This is a sample base class for testing reflection.
6
- It includes methods, properties, and a constant.
7
- """
8
-
9
- CONSTANT = "This is a constant"
10
-
11
- def __init__(self, value: int):
12
- self.value = value
13
-
14
- @property
15
- def squared(self):
16
- return self.value ** 2
17
-
18
- def method(self):
19
- return "This is a method"
20
-
21
- @classmethod
22
- def class_method(cls):
23
- return "This is a class method"
24
-
25
- class TestClass(BaseTestClass):
26
- """
27
- This is a sample class for testing reflection.
28
- It includes methods, properties, and a constant.
29
- """
30
-
31
- CONSTANT = "This is a constant"
32
-
33
- def __init__(self, value: int):
34
- self.value = value
35
-
36
- @property
37
- def squared(self):
38
- return self.value ** 2
39
-
40
- def method(self):
41
- return "This is a method"
42
-
43
- @classmethod
44
- def class_method(cls):
45
- return "This is a class method"
46
-
47
- class TestEnum(Enum):
48
- RED = 1
49
- GREEN = 2
50
- BLUE = 3
@@ -1,128 +0,0 @@
1
- import os
2
- import unittest
3
- from orionis.luminate.support.reflection import Reflection
4
- from tests.tools.class_example import BaseTestClass, TestClass, TestEnum
5
-
6
- class TestReflection(unittest.TestCase):
7
-
8
- def setUp(self):
9
- """Set up the test case."""
10
- self.reflection = Reflection(TestClass)
11
-
12
- def test_get_file(self):
13
- """Test if the file path is correctly retrieved."""
14
- path = self.reflection.getFile().split(os.sep)
15
- self.assertEqual(path[-1], "class_example.py")
16
-
17
- def test_has_class(self):
18
- """Test if the class is loaded."""
19
- self.assertTrue(self.reflection.hasClass())
20
-
21
- def test_has_method(self):
22
- """Test if the class has specific methods."""
23
- self.assertTrue(self.reflection.hasMethod("method"))
24
- self.assertFalse(self.reflection.hasMethod("non_existent_method"))
25
-
26
- def test_has_property(self):
27
- """Test if the class has specific properties."""
28
- self.assertTrue(self.reflection.hasProperty("squared"))
29
- self.assertFalse(self.reflection.hasProperty("non_existent_property"))
30
-
31
- def test_has_constant(self):
32
- """Test if the class has specific constants."""
33
- self.assertTrue(self.reflection.hasConstant("CONSTANT"))
34
- self.assertFalse(self.reflection.hasConstant("NON_EXISTENT_CONSTANT"))
35
-
36
- def test_get_attributes(self):
37
- """Test if the class attributes (methods, properties) are retrieved."""
38
- attributes = self.reflection.getAttributes()
39
- self.assertIn("method", attributes)
40
- self.assertIn("squared", attributes)
41
-
42
- def test_get_constructor(self):
43
- """Test if the constructor is correctly retrieved."""
44
- constructor = self.reflection.getConstructor()
45
- self.assertEqual(constructor.__name__, "__init__")
46
-
47
- def test_get_docstring(self):
48
- """Test if the docstring is correctly retrieved."""
49
- doc = self.reflection.getDocComment()
50
- self.assertIn("sample class for testing reflection", doc)
51
-
52
- def test_get_file_name(self):
53
- """Test if the file name where the class is defined is retrieved."""
54
- file_name = self.reflection.getFileName(remove_extension=True)
55
- self.assertEqual(file_name, "class_example")
56
-
57
- def test_get_method(self):
58
- """Test if a specific method is correctly retrieved."""
59
- method = self.reflection.getMethod("method")
60
- self.assertIsNotNone(method)
61
-
62
- def test_get_methods(self):
63
- """Test if all methods are correctly retrieved."""
64
- methods = self.reflection.getMethods()
65
- self.assertGreater(len(methods), 0)
66
-
67
- def test_get_name(self):
68
- """Test if the class name is correctly retrieved."""
69
- name = self.reflection.getName()
70
- self.assertEqual(name, "TestClass")
71
-
72
- def test_get_parent_class(self):
73
- """Test if the parent classes are correctly retrieved."""
74
- parent = self.reflection.getParentClass()
75
- self.assertTrue(self.reflection.isSubclassOf(BaseTestClass))
76
-
77
- def test_get_properties(self):
78
- """Test if the class properties are correctly retrieved."""
79
- properties = self.reflection.getProperties()
80
- self.assertIn("squared", properties)
81
-
82
- def test_get_property(self):
83
- """Test if a specific property is correctly retrieved."""
84
- property_value = self.reflection.getProperty("squared")
85
- self.assertIsNotNone(property_value)
86
-
87
- def test_is_abstract(self):
88
- """Test if the class is abstract."""
89
- self.assertFalse(self.reflection.isAbstract())
90
-
91
- def test_is_enum(self):
92
- """Test if the class is an enum."""
93
- enum_reflection = Reflection(TestEnum)
94
- self.assertTrue(enum_reflection.isEnum())
95
-
96
- def test_is_subclass_of(self):
97
- """Test if the class is a subclass of the specified parent."""
98
- self.assertTrue(self.reflection.isSubclassOf(BaseTestClass))
99
-
100
- def test_is_instance_of(self):
101
- """Test if the class is an instance of the specified class."""
102
- instance = TestClass(5)
103
- self.assertTrue(self.reflection.isInstanceOf(instance))
104
-
105
- def test_is_iterable(self):
106
- """Test if the class is iterable."""
107
- self.assertFalse(self.reflection.isIterable())
108
-
109
- def test_is_instantiable(self):
110
- """Test if the class is instantiable."""
111
- self.assertTrue(self.reflection.isInstantiable())
112
-
113
- def test_new_instance(self):
114
- """Test if a new instance of the class can be created."""
115
- instance = self.reflection.newInstance(5)
116
- self.assertEqual(instance.value, 5)
117
-
118
- def test_class_method_and_property(self):
119
- """Test if class methods and properties work for an instance."""
120
- instance = self.reflection.newInstance(5)
121
- self.assertEqual(instance.class_method(), "This is a class method")
122
- self.assertEqual(instance.squared, 25)
123
-
124
- def test_str_representation(self):
125
- """Test the string representation of the reflection instance."""
126
- str_rep = str(self.reflection)
127
- self.assertIn("Orionis Reflection class", str_rep)
128
- self.assertIn("TestClass", str_rep)