orionis 0.411.0__py3-none-any.whl → 0.412.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.
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.411.0"
8
+ VERSION = "0.412.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.411.0
3
+ Version: 0.412.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -258,7 +258,7 @@ orionis/foundation/providers/progress_bar_provider.py,sha256=WW3grNgH-yV2meSSTeO
258
258
  orionis/foundation/providers/testing_provider.py,sha256=iJSN2RIChbYIL-1ue6vmPmDMCSrvERDkti4Er9MPiLA,1102
259
259
  orionis/foundation/providers/workers_provider.py,sha256=kiQjQRyUEyiBX2zcbF_KmqRgvc7Bvxsvg5oMtIvYniM,1075
260
260
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
261
- orionis/metadata/framework.py,sha256=wQLkWeq7vpfowJoSfUdTQO9y5ZNFQ0NyuElKBvZM5y4,4960
261
+ orionis/metadata/framework.py,sha256=ngUF_B8svljlXYk27Qe2elzuNxhMETKUOgxB4NPTu5U,4960
262
262
  orionis/metadata/package.py,sha256=tqLfBRo-w1j_GN4xvzUNFyweWYFS-qhSgAEc-AmCH1M,5452
263
263
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
264
264
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -428,7 +428,7 @@ orionis/test/validators/web_report.py,sha256=-h3Fe9jY93_kzUhd2NBIqEfCcBpu-8Ei9x3
428
428
  orionis/test/validators/workers.py,sha256=LGffDKtK6SKixFKzIYPQpI5aFeQPAGXpv_LUtmEu6g4,1102
429
429
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
430
430
  orionis/test/view/render.py,sha256=3ICz68l-WF3BtnYqH5m-ktN9UD00MELMbmMnyJDV74A,4768
431
- orionis-0.411.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
431
+ orionis-0.412.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
432
432
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
433
433
  tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
434
434
  tests/container/test_container.py,sha256=asv8TkkupVoex6SWod74NBl4dSs7wb9mLmu_glNdNy8,14815
@@ -547,10 +547,6 @@ 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/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
551
- tests/support/parsers/test_services_parser_exceptions.py,sha256=3q2koa73YRaQXDUWp7GAX1e-rgeazwP7mSNhMkJLoQA,2672
552
- tests/support/parsers/mocks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
553
- tests/support/parsers/mocks/mock_custom_error.py,sha256=LWgjeog2rpmfw6j7Bgzvfvmeby8uSBuB1B3d_DgRcFQ,752
554
550
  tests/support/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
555
551
  tests/support/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
556
552
  tests/support/patterns/singleton/test_patterns_singleton.py,sha256=L7Q2QEBwSdG_JGfSB4s4AKqxsV4cXeKR1d8V7MbyzFY,1461
@@ -561,8 +557,8 @@ tests/support/wrapper/test_services_wrapper_docdict.py,sha256=Q_qyqZodLiTQ6Pv9zI
561
557
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
562
558
  tests/testing/test_testing_result.py,sha256=aWOOJiHji_U7gcJHbDukgMmfBEEQCLQdyqpXJD5q4BE,4643
563
559
  tests/testing/test_testing_unit.py,sha256=Krz0Bw1toI9qvLtKtYe_slNvi7fYmZbHK1i4DRPMfUM,7952
564
- orionis-0.411.0.dist-info/METADATA,sha256=81oCjYi2PnQnkDud4fwUp7UPJu8X5Q2VlFNuBTKMYLA,4772
565
- orionis-0.411.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
566
- orionis-0.411.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
567
- orionis-0.411.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
568
- orionis-0.411.0.dist-info/RECORD,,
560
+ orionis-0.412.0.dist-info/METADATA,sha256=mH5hfSG1SQao59_kORy1wPxYEJU11CMn7QN-OH3tXiY,4772
561
+ orionis-0.412.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
562
+ orionis-0.412.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
563
+ orionis-0.412.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
564
+ orionis-0.412.0.dist-info/RECORD,,
File without changes
File without changes
@@ -1,25 +0,0 @@
1
- class CustomError(Exception):
2
- """
3
- Custom exception class for handling errors with an optional error code.
4
-
5
- Parameters
6
- ----------
7
- message : str
8
- The error message describing the exception.
9
- code : any, optional
10
- An optional error code associated with the exception.
11
- """
12
-
13
- def __init__(self, message, code=None):
14
- """
15
- Initialize the custom error with a message and an optional error code.
16
-
17
- Parameters
18
- ----------
19
- message : str
20
- The error message describing the exception.
21
- code : any, optional
22
- An optional error code associated with the exception.
23
- """
24
- super().__init__(message)
25
- self.code = code
@@ -1,78 +0,0 @@
1
- from orionis.support.formatter.serializer import Parser
2
- from orionis.test.cases.asynchronous import AsyncTestCase
3
- from tests.support.parsers.mocks.mock_custom_error import CustomError
4
-
5
- class TestServicesParserExceptions(AsyncTestCase):
6
-
7
- async def testBasicExceptionStructure(self):
8
- """
9
- Ensure that the ExceptionParser correctly structures a basic exception.
10
-
11
- Returns
12
- -------
13
- None
14
- """
15
- try:
16
- raise ValueError("Something went wrong")
17
- except Exception as e:
18
- result = Parser.exception(e).toDict()
19
-
20
- self.assertIsInstance(result, dict)
21
- self.assertIn("error_type", result)
22
- self.assertIn("error_message", result)
23
- self.assertIn("stack_trace", result)
24
- self.assertIn("error_code", result)
25
- self.assertIn("cause", result)
26
-
27
- self.assertEqual(result["error_type"], "ValueError")
28
- self.assertTrue("Something went wrong" in result["error_message"])
29
- self.assertIsNone(result["error_code"])
30
- self.assertIsNone(result["cause"])
31
- self.assertIsInstance(result["stack_trace"], list)
32
- self.assertGreater(len(result["stack_trace"]), 0)
33
-
34
- async def testRawExceptionProperty(self):
35
- """
36
- Ensure that the rawException property returns the original exception.
37
-
38
- Returns
39
- -------
40
- None
41
- """
42
- try:
43
- raise RuntimeError("Test exception")
44
- except Exception as e:
45
- parser = Parser.exception(e)
46
- self.assertIs(parser.raw_exception, e)
47
-
48
- async def testExceptionWithCode(self):
49
- """
50
- Ensure that exceptions with a custom error code are serialized correctly.
51
-
52
- Returns
53
- -------
54
- None
55
- """
56
- try:
57
- raise CustomError("Custom message", code=404)
58
- except Exception as e:
59
- result = Parser.exception(e).toDict()
60
- self.assertEqual(result["error_code"], 404)
61
- self.assertEqual(result["error_type"], "CustomError")
62
-
63
- async def testNestedExceptionCause(self):
64
- """
65
- Ensure that the Parser.exception correctly handles nested exceptions.
66
-
67
- Returns
68
- -------
69
- None
70
- """
71
- try:
72
- try:
73
- raise ValueError("Original cause")
74
- except ValueError as exc:
75
- raise TypeError("Outer error")
76
- except Exception as e:
77
- result = Parser.exception(e).toDict()
78
- self.assertEqual(result["error_type"], "TypeError")