orionis 0.289.0__py3-none-any.whl → 0.291.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.
- orionis/metadata/framework.py +1 -1
- {orionis-0.289.0.dist-info → orionis-0.291.0.dist-info}/METADATA +1 -1
- {orionis-0.289.0.dist-info → orionis-0.291.0.dist-info}/RECORD +8 -8
- tests/metadata/test_metadata_package.py +47 -23
- {orionis-0.289.0.dist-info → orionis-0.291.0.dist-info}/WHEEL +0 -0
- {orionis-0.289.0.dist-info → orionis-0.291.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.289.0.dist-info → orionis-0.291.0.dist-info}/top_level.txt +0 -0
- {orionis-0.289.0.dist-info → orionis-0.291.0.dist-info}/zip-safe +0 -0
orionis/metadata/framework.py
CHANGED
@@ -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=
|
229
|
+
orionis/metadata/framework.py,sha256=gFGa1P4sgpUA5AUIlQeePV9NZLz4zPtOpg5N1Z_7yI8,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.
|
354
|
+
orionis-0.291.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=
|
413
|
+
tests/metadata/test_metadata_package.py,sha256=mLn3G6IlT1lENlONrOLUkmt1j4DD2BymDcGZ7D7t5mw,2822
|
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.
|
459
|
-
orionis-0.
|
460
|
-
orionis-0.
|
461
|
-
orionis-0.
|
462
|
-
orionis-0.
|
458
|
+
orionis-0.291.0.dist-info/METADATA,sha256=dKe4TtuURAwVqliKd4odPuHJFE2TplRgxVek6i-jd9A,4772
|
459
|
+
orionis-0.291.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
460
|
+
orionis-0.291.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
461
|
+
orionis-0.291.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
462
|
+
orionis-0.291.0.dist-info/RECORD,,
|
@@ -1,69 +1,93 @@
|
|
1
|
-
from orionis.unittesting import TestCase
|
2
|
-
from orionis.metadata.package import PypiPackageApi
|
1
|
+
from orionis.unittesting import TestCase, patch
|
3
2
|
|
4
3
|
class TestPypiPackageApi(TestCase):
|
5
4
|
|
6
|
-
|
5
|
+
@patch("orionis.metadata.package.PypiPackageApi")
|
6
|
+
async def testGetName(self, MockPypiPackageApi):
|
7
7
|
"""
|
8
|
-
Test getName method.
|
8
|
+
Test for the getName method.
|
9
9
|
|
10
|
-
|
10
|
+
Parameters
|
11
|
+
----------
|
12
|
+
MockPypiPackageApi : MagicMock
|
13
|
+
Mocked PypiPackageApi class.
|
11
14
|
|
12
15
|
Returns
|
13
16
|
-------
|
14
17
|
None
|
15
18
|
"""
|
16
|
-
api =
|
19
|
+
api = MockPypiPackageApi.return_value
|
20
|
+
api.getName.return_value = "orionis"
|
17
21
|
self.assertEqual(api.getName(), "orionis")
|
18
22
|
|
19
|
-
|
23
|
+
@patch("orionis.metadata.package.PypiPackageApi")
|
24
|
+
async def testGetAuthor(self, MockPypiPackageApi):
|
20
25
|
"""
|
21
|
-
Test getAuthor method.
|
26
|
+
Test for the getAuthor method.
|
22
27
|
|
23
|
-
|
28
|
+
Parameters
|
29
|
+
----------
|
30
|
+
MockPypiPackageApi : MagicMock
|
31
|
+
Mocked PypiPackageApi class.
|
24
32
|
|
25
33
|
Returns
|
26
34
|
-------
|
27
35
|
None
|
28
36
|
"""
|
29
|
-
api =
|
37
|
+
api = MockPypiPackageApi.return_value
|
38
|
+
api.getAuthor.return_value = "Raul Mauricio Uñate Castro"
|
30
39
|
self.assertEqual(api.getAuthor(), "Raul Mauricio Uñate Castro")
|
31
40
|
|
32
|
-
|
41
|
+
@patch("orionis.metadata.package.PypiPackageApi")
|
42
|
+
async def testGetAuthorEmail(self, MockPypiPackageApi):
|
33
43
|
"""
|
34
|
-
Test getAuthorEmail method.
|
44
|
+
Test for the getAuthorEmail method.
|
35
45
|
|
36
|
-
|
46
|
+
Parameters
|
47
|
+
----------
|
48
|
+
MockPypiPackageApi : MagicMock
|
49
|
+
Mocked PypiPackageApi class.
|
37
50
|
|
38
51
|
Returns
|
39
52
|
-------
|
40
53
|
None
|
41
54
|
"""
|
42
|
-
api =
|
55
|
+
api = MockPypiPackageApi.return_value
|
56
|
+
api.getAuthorEmail.return_value = "raulmauriciounate@gmail.com"
|
43
57
|
self.assertEqual(api.getAuthorEmail(), "raulmauriciounate@gmail.com")
|
44
58
|
|
45
|
-
|
59
|
+
@patch("orionis.metadata.package.PypiPackageApi")
|
60
|
+
async def testGetDescription(self, MockPypiPackageApi):
|
46
61
|
"""
|
47
|
-
Test getDescription method.
|
62
|
+
Test for the getDescription method.
|
48
63
|
|
49
|
-
|
64
|
+
Parameters
|
65
|
+
----------
|
66
|
+
MockPypiPackageApi : MagicMock
|
67
|
+
Mocked PypiPackageApi class.
|
50
68
|
|
51
69
|
Returns
|
52
70
|
-------
|
53
71
|
None
|
54
72
|
"""
|
55
|
-
api =
|
73
|
+
api = MockPypiPackageApi.return_value
|
74
|
+
api.getDescription.return_value = "Orionis Framework – Elegant, Fast, and Powerful."
|
56
75
|
self.assertEqual(api.getDescription(), "Orionis Framework – Elegant, Fast, and Powerful.")
|
57
76
|
|
58
|
-
|
77
|
+
@patch("orionis.metadata.package.PypiPackageApi")
|
78
|
+
async def testGetPythonVersion(self, MockPypiPackageApi):
|
59
79
|
"""
|
60
|
-
Test getPythonVersion method.
|
80
|
+
Test for the getPythonVersion method.
|
61
81
|
|
62
|
-
|
82
|
+
Parameters
|
83
|
+
----------
|
84
|
+
MockPypiPackageApi : MagicMock
|
85
|
+
Mocked PypiPackageApi class.
|
63
86
|
|
64
87
|
Returns
|
65
88
|
-------
|
66
89
|
None
|
67
90
|
"""
|
68
|
-
api =
|
69
|
-
|
91
|
+
api = MockPypiPackageApi.return_value
|
92
|
+
api.getPythonVersion.return_value = ">=3.12"
|
93
|
+
self.assertEqual(api.getPythonVersion(), ">=3.12")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|