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,131 +0,0 @@
1
- # from orionis.test.cases.asynchronous import AsyncTestCase
2
- # from orionis.test.entities.result import TestResult
3
- # from orionis.test.enums import TestStatus
4
-
5
- # class TestTestingResult(AsyncTestCase):
6
-
7
- # async def testDefaultValues(self) -> None:
8
- # """
9
- # Ensures that when optional fields are not provided during initialization of a TestResult
10
- # instance, they are set to None.
11
-
12
- # Notes
13
- # -----
14
- # This test verifies the default behavior of the following optional fields:
15
- # - error_message
16
- # - traceback
17
- # - class_name
18
- # - method
19
- # - module
20
- # - file_path
21
-
22
- # Assertions
23
- # ----------
24
- # Each optional field is checked to confirm it is None after initialization.
25
- # """
26
- # result = TestResult(
27
- # id=1,
28
- # name="Sample Test",
29
- # status=TestStatus.PASSED,
30
- # execution_time=0.5
31
- # )
32
- # self.assertIsNone(result.error_message)
33
- # self.assertIsNone(result.traceback)
34
- # self.assertIsNone(result.class_name)
35
- # self.assertIsNone(result.method)
36
- # self.assertIsNone(result.module)
37
- # self.assertIsNone(result.file_path)
38
-
39
- # async def testRequiredFields(self) -> None:
40
- # """
41
- # Test that TestResult enforces the presence of all required (non-optional) fields during initialization.
42
- # This test verifies that omitting any required field when creating a TestResult instance raises a TypeError.
43
-
44
- # Notes
45
- # -----
46
- # - Attempts to instantiate TestResult with no arguments.
47
- # - Attempts to instantiate TestResult missing the 'id' field.
48
- # - Expects a TypeError to be raised in both cases.
49
- # """
50
- # with self.assertRaises(TypeError):
51
- # TestResult() # Missing all required fields
52
-
53
- # with self.assertRaises(TypeError):
54
- # # Missing id
55
- # TestResult(
56
- # name="Sample Test",
57
- # status=TestStatus.PASSED,
58
- # execution_time=0.5
59
- # )
60
-
61
- # async def testImmutable(self) -> None:
62
- # """
63
- # Test the immutability of TestResult instances.
64
- # This test ensures that TestResult, implemented as a frozen dataclass, does not allow
65
- # modification of its attributes after instantiation.
66
-
67
- # Parameters
68
- # ----------
69
- # self : TestCase
70
- # The test case instance.
71
-
72
- # Raises
73
- # ------
74
- # FrozenInstanceError
75
- # If an attempt is made to modify an attribute of a frozen TestResult instance.
76
- # """
77
- # result = TestResult(
78
- # id=1,
79
- # name="Sample Test",
80
- # status=TestStatus.PASSED,
81
- # execution_time=0.5
82
- # )
83
- # with self.assertRaises(Exception):
84
- # result.name = "Modified Name"
85
-
86
- # async def testStatusValues(self) -> None:
87
- # """
88
- # Parameters
89
- # ----------
90
- # self : TestCase
91
- # The test case instance.
92
-
93
- # Notes
94
- # -----
95
- # This test iterates over all possible values of the `TestStatus` enum and verifies
96
- # that each value can be assigned to the `status` field of a `TestResult` instance.
97
- # It asserts that the assigned status matches the expected value.
98
- # """
99
- # for status in TestStatus:
100
- # result = TestResult(
101
- # id=1,
102
- # name="Status Test",
103
- # status=status,
104
- # execution_time=0.1
105
- # )
106
- # self.assertEqual(result.status, status)
107
-
108
- # async def testErrorFields(self) -> None:
109
- # """
110
- # Parameters
111
- # ----------
112
- # self : TestCase
113
- # The test case instance.
114
-
115
- # Notes
116
- # -----
117
- # Verifies that the `error_message` and `traceback` fields are correctly stored in the `TestResult`
118
- # object when provided during initialization.
119
- # """
120
- # error_msg = "Test failed"
121
- # traceback = "Traceback info"
122
- # result = TestResult(
123
- # id=1,
124
- # name="Failing Test",
125
- # status=TestStatus.FAILED,
126
- # execution_time=0.2,
127
- # error_message=error_msg,
128
- # traceback=traceback
129
- # )
130
- # self.assertEqual(result.error_message, error_msg)
131
- # self.assertEqual(result.traceback, traceback)
File without changes
File without changes