orionis 0.289.0__py3-none-any.whl → 0.290.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.289.0"
8
+ VERSION = "0.290.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.289.0
3
+ Version: 0.290.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
@@ -226,7 +226,7 @@ orionis/foundation/config/testing/entities/testing.py,sha256=m_i9jZlOXs_AzNKNNf0
226
226
  orionis/foundation/config/testing/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
227
227
  orionis/foundation/config/testing/enums/test_mode.py,sha256=IbFpauu7J-iSAfmC8jDbmTEYl8eZr-AexL-lyOh8_74,337
228
228
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
229
- orionis/metadata/framework.py,sha256=jGJvnj_7dnLfXIAVVVGam0pSWqJ-lOA_dsfHtD5mD6g,4960
229
+ orionis/metadata/framework.py,sha256=GFW8gQ4onzWhBnla2HOP_EwnXpP5CaOd87PBH75SjQg,4960
230
230
  orionis/metadata/package.py,sha256=tqLfBRo-w1j_GN4xvzUNFyweWYFS-qhSgAEc-AmCH1M,5452
231
231
  orionis/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
232
232
  orionis/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -351,7 +351,7 @@ orionis/test/suites/contracts/test_suite.py,sha256=eluzYwkNBbKjxYStj_tHN_Fm3YDPp
351
351
  orionis/test/suites/contracts/test_unit.py,sha256=l1LQllODyvcSByXMl1lGrUkoLsXbBHZZLWZI4A-mlQg,5881
352
352
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
353
353
  orionis/test/view/index.html,sha256=U4XYO4hA-mAJCK1gcVRgIysmISK3g3Vgi2ntLofFAhE,6592
354
- orionis-0.289.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
354
+ orionis-0.290.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
355
355
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
356
356
  tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
357
357
  tests/example/test_example.py,sha256=byd_lI6tVDgGPEIrr7PLZbBu0UoZOymmdmyA_4u-QUw,601
@@ -410,7 +410,7 @@ tests/foundation/config/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
410
410
  tests/foundation/config/testing/test_foundation_config_testing.py,sha256=AuR-h2974Hkdpo4iCkYOJyr8kydmDGN6G2wbVOYcqGM,8216
411
411
  tests/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
412
412
  tests/metadata/test_metadata_framework.py,sha256=V-GXnReHepHLGFvY9hQTYWrzVGgC-P7SinKHCmElXDA,3266
413
- tests/metadata/test_metadata_package.py,sha256=_vz476d-6ZdMrfnczWaO2kGUzjNPwEQSlVAHz6xOwNM,1773
413
+ tests/metadata/test_metadata_package.py,sha256=3msq6yiArKu4fKfEtJy-GWMHLiuKfQCahgp5nqiComY,1697
414
414
  tests/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
415
415
  tests/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
416
416
  tests/patterns/singleton/test_patterns_singleton.py,sha256=DCvc-3nmsrM1xJr9WGeFZHyB-IVUVVGhfjvkly2E8rU,951
@@ -455,8 +455,8 @@ tests/support/inspection/fakes/fake_reflection_instance_with_abstract.py,sha256=
455
455
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
456
456
  tests/testing/test_testing_result.py,sha256=MrGK3ZimedL0b5Ydu69Dg8Iul017AzLTm7VPxpXlpfU,4315
457
457
  tests/testing/test_testing_unit.py,sha256=A6QkiOkP7GPC1Szh_GqsrV7GxjWjK8cIwFez6YfrzmM,7683
458
- orionis-0.289.0.dist-info/METADATA,sha256=h7nzzgx-NOJZldvDJfW1X8_f5Ddp3k9Th-zxu7HWm_c,4772
459
- orionis-0.289.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
460
- orionis-0.289.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
461
- orionis-0.289.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
462
- orionis-0.289.0.dist-info/RECORD,,
458
+ orionis-0.290.0.dist-info/METADATA,sha256=5IFusYxZ4D3mzUrRtchQeKQASb3L5ee6Bv2e9Z6Li6Y,4772
459
+ orionis-0.290.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
460
+ orionis-0.290.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
461
+ orionis-0.290.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
462
+ orionis-0.290.0.dist-info/RECORD,,
@@ -1,69 +1,35 @@
1
1
  from orionis.unittesting import TestCase
2
2
  from orionis.metadata.package import PypiPackageApi
3
+ from unittest.mock import MagicMock, patch
3
4
 
4
5
  class TestPypiPackageApi(TestCase):
5
6
 
6
- async def testGetName(self):
7
- """
8
- Test getName method.
9
-
10
- Tests that getName returns the correct package name.
11
-
12
- Returns
13
- -------
14
- None
15
- """
16
- api = PypiPackageApi()
7
+ @patch("orionis.metadata.package.PypiPackageApi")
8
+ async def testGetName(self, MockPypiPackageApi):
9
+ api = MockPypiPackageApi.return_value
10
+ api.getName.return_value = "orionis"
17
11
  self.assertEqual(api.getName(), "orionis")
18
12
 
19
- async def testGetAuthor(self):
20
- """
21
- Test getAuthor method.
22
-
23
- Tests that getAuthor returns the correct author name.
24
-
25
- Returns
26
- -------
27
- None
28
- """
29
- api = PypiPackageApi()
13
+ @patch("orionis.metadata.package.PypiPackageApi")
14
+ async def testGetAuthor(self, MockPypiPackageApi):
15
+ api = MockPypiPackageApi.return_value
16
+ api.getAuthor.return_value = "Raul Mauricio Uñate Castro"
30
17
  self.assertEqual(api.getAuthor(), "Raul Mauricio Uñate Castro")
31
18
 
32
- async def testGetAuthorEmail(self):
33
- """
34
- Test getAuthorEmail method.
35
-
36
- Tests that getAuthorEmail returns the correct author email.
37
-
38
- Returns
39
- -------
40
- None
41
- """
42
- api = PypiPackageApi()
19
+ @patch("orionis.metadata.package.PypiPackageApi")
20
+ async def testGetAuthorEmail(self, MockPypiPackageApi):
21
+ api = MockPypiPackageApi.return_value
22
+ api.getAuthorEmail.return_value = "raulmauriciounate@gmail.com"
43
23
  self.assertEqual(api.getAuthorEmail(), "raulmauriciounate@gmail.com")
44
24
 
45
- async def testGetDescription(self):
46
- """
47
- Test getDescription method.
48
-
49
- Tests that getDescription returns the correct description.
50
-
51
- Returns
52
- -------
53
- None
54
- """
55
- api = PypiPackageApi()
25
+ @patch("orionis.metadata.package.PypiPackageApi")
26
+ async def testGetDescription(self, MockPypiPackageApi):
27
+ api = MockPypiPackageApi.return_value
28
+ api.getDescription.return_value = "Orionis Framework – Elegant, Fast, and Powerful."
56
29
  self.assertEqual(api.getDescription(), "Orionis Framework – Elegant, Fast, and Powerful.")
57
30
 
58
- async def testGetPythonVersion(self):
59
- """
60
- Test getPythonVersion method.
61
-
62
- Tests that getPythonVersion returns the correct required Python version.
63
-
64
- Returns
65
- -------
66
- None
67
- """
68
- api = PypiPackageApi()
69
- self.assertEqual(api.getPythonVersion(), ">=3.12")
31
+ @patch("orionis.metadata.package.PypiPackageApi")
32
+ async def testGetPythonVersion(self, MockPypiPackageApi):
33
+ api = MockPypiPackageApi.return_value
34
+ api.getPythonVersion.return_value = ">=3.12"
35
+ self.assertEqual(api.getPythonVersion(), ">=3.12")