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.
- orionis/metadata/framework.py +1 -1
- {orionis-0.289.0.dist-info → orionis-0.290.0.dist-info}/METADATA +1 -1
- {orionis-0.289.0.dist-info → orionis-0.290.0.dist-info}/RECORD +8 -8
- tests/metadata/test_metadata_package.py +22 -56
- {orionis-0.289.0.dist-info → orionis-0.290.0.dist-info}/WHEEL +0 -0
- {orionis-0.289.0.dist-info → orionis-0.290.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.289.0.dist-info → orionis-0.290.0.dist-info}/top_level.txt +0 -0
- {orionis-0.289.0.dist-info → orionis-0.290.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=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.
|
|
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=
|
|
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.
|
|
459
|
-
orionis-0.
|
|
460
|
-
orionis-0.
|
|
461
|
-
orionis-0.
|
|
462
|
-
orionis-0.
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|