orionis 0.580.0__py3-none-any.whl → 0.582.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/app.py +7 -18
- orionis/foundation/config/testing/entities/testing.py +0 -14
- orionis/metadata/framework.py +1 -1
- orionis/test/kernel.py +1 -1
- {orionis-0.580.0.dist-info → orionis-0.582.0.dist-info}/METADATA +1 -1
- {orionis-0.580.0.dist-info → orionis-0.582.0.dist-info}/RECORD +9 -9
- {orionis-0.580.0.dist-info → orionis-0.582.0.dist-info}/WHEEL +0 -0
- {orionis-0.580.0.dist-info → orionis-0.582.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.580.0.dist-info → orionis-0.582.0.dist-info}/top_level.txt +0 -0
orionis/app.py
CHANGED
@@ -1,28 +1,17 @@
|
|
1
|
-
from pathlib import Path
|
2
1
|
from orionis.foundation.application import Application, IApplication
|
3
2
|
|
4
|
-
def Orionis(
|
3
|
+
def Orionis() -> IApplication:
|
5
4
|
"""
|
6
|
-
|
5
|
+
Instantiates and returns the main application object implementing the IApplication interface.
|
7
6
|
|
8
|
-
This function
|
9
|
-
|
10
|
-
ensuring that the application is initialized with the specified base path.
|
11
|
-
|
12
|
-
Parameters
|
13
|
-
----------
|
14
|
-
basePath : str or Path, optional
|
15
|
-
The base directory path for the application. Defaults to the current working directory.
|
7
|
+
This function serves as a factory for creating the core Application instance, which manages
|
8
|
+
the lifecycle, configuration, and services of the Orionis framework.
|
16
9
|
|
17
10
|
Returns
|
18
11
|
-------
|
19
12
|
IApplication
|
20
|
-
|
21
|
-
configured with the provided base path.
|
13
|
+
An initialized instance of the Application class that implements the IApplication interface.
|
22
14
|
"""
|
23
15
|
|
24
|
-
#
|
25
|
-
|
26
|
-
|
27
|
-
# Set the base path for the application and return the configured instance
|
28
|
-
return app.setBasePath(basePath)
|
16
|
+
# Create and return the main Application instance
|
17
|
+
return Application()
|
@@ -94,14 +94,6 @@ class Testing(BaseEntity):
|
|
94
94
|
}
|
95
95
|
)
|
96
96
|
|
97
|
-
base_path: str = field(
|
98
|
-
default = 'tests',
|
99
|
-
metadata = {
|
100
|
-
"description": "The base directory where tests are located. Default is 'tests'.",
|
101
|
-
"default": 'tests'
|
102
|
-
}
|
103
|
-
)
|
104
|
-
|
105
97
|
folder_path: str | list = field(
|
106
98
|
default = '*',
|
107
99
|
metadata = {
|
@@ -237,12 +229,6 @@ class Testing(BaseEntity):
|
|
237
229
|
f"Invalid type for 'throw_exception': {type(self.throw_exception).__name__}. It must be a boolean (True or False)."
|
238
230
|
)
|
239
231
|
|
240
|
-
# Validate base_path attribute
|
241
|
-
if not isinstance(self.base_path, str):
|
242
|
-
raise OrionisIntegrityException(
|
243
|
-
f"Invalid type for 'base_path': {type(self.base_path).__name__}. It must be a string representing the base directory for tests."
|
244
|
-
)
|
245
|
-
|
246
232
|
# Validate folder_path attribute
|
247
233
|
if not (isinstance(self.folder_path, str) or isinstance(self.folder_path, list)):
|
248
234
|
raise OrionisIntegrityException(
|
orionis/metadata/framework.py
CHANGED
orionis/test/kernel.py
CHANGED
@@ -60,7 +60,7 @@ class TestKernel(ITestKernel):
|
|
60
60
|
|
61
61
|
# Discover and load test files based on configuration criteria
|
62
62
|
self.__unit_test.discoverTests(
|
63
|
-
base_path=
|
63
|
+
base_path=app.path('tests'), # Base directory for test discovery
|
64
64
|
folder_path=config.folder_path, # Specific folder path within base_path
|
65
65
|
pattern=config.pattern, # File name pattern for test files
|
66
66
|
test_name_pattern=config.test_name_pattern, # Pattern for test method names
|
@@ -1,5 +1,5 @@
|
|
1
1
|
orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
orionis/app.py,sha256=
|
2
|
+
orionis/app.py,sha256=W1N6EcVlqLLt631aAZ42sPQWhbGAtyJTAwFMU6sawm4,623
|
3
3
|
orionis/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
orionis/console/kernel.py,sha256=NVWA20xasC8xE_fIoX5aKBy7dsrjgownQYarEOYiGKA,3752
|
5
5
|
orionis/console/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -192,7 +192,7 @@ orionis/foundation/config/session/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-
|
|
192
192
|
orionis/foundation/config/session/helpers/secret_key.py,sha256=yafjzQ9KVQdXzCQCMthpgizlNCo5F5UTLtAnInipUMk,447
|
193
193
|
orionis/foundation/config/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
194
194
|
orionis/foundation/config/testing/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
195
|
-
orionis/foundation/config/testing/entities/testing.py,sha256=
|
195
|
+
orionis/foundation/config/testing/entities/testing.py,sha256=N4BXbd5XWc2-_Rjj8fcLe73QV-JD3dDkdaJJ9a72RkM,13165
|
196
196
|
orionis/foundation/config/testing/enums/__init__.py,sha256=aFh5kBxlh5kqHK-9W7qgdykF5-qou5SVRzorRBazqYw,196
|
197
197
|
orionis/foundation/config/testing/enums/drivers.py,sha256=mwv47FcKDXEOxydQXAGtkdIY9S6qCAW1cD22oCFy3xw,355
|
198
198
|
orionis/foundation/config/testing/enums/mode.py,sha256=IbFpauu7J-iSAfmC8jDbmTEYl8eZr-AexL-lyOh8_74,337
|
@@ -218,7 +218,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=irwkjMiq-HpsbJxAOnhjji
|
|
218
218
|
orionis/foundation/providers/testing_provider.py,sha256=2akFnabtH_cV_7z_2cCL7u8cPCGvCJAmlhMcnlCrc4c,3742
|
219
219
|
orionis/foundation/providers/workers_provider.py,sha256=P_YtJuPNrdJAQJkAqI11KI0c6GSB9NqIuuCKpRytE0g,3937
|
220
220
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
221
|
-
orionis/metadata/framework.py,sha256=
|
221
|
+
orionis/metadata/framework.py,sha256=dAQ4PToHrUsHwMh7uMnRhl-OKR__HLP8tAtDO8UmhNg,4109
|
222
222
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
223
223
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
224
224
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -360,7 +360,7 @@ orionis/support/standard/exceptions/standard.py,sha256=BM0VHLRYD7SzoMJkaA7BxY528
|
|
360
360
|
orionis/support/wrapper/__init__.py,sha256=jGoWoIGYuRYqMYQKlrX7Dpcbg-AGkHoB_aM2xhu73yc,62
|
361
361
|
orionis/support/wrapper/dot_dict.py,sha256=T8xWwwOhBZHNeXRwE_CxvOwG9UFxsLqNmOJjV2CNIrc,7284
|
362
362
|
orionis/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
363
|
-
orionis/test/kernel.py,sha256=
|
363
|
+
orionis/test/kernel.py,sha256=4IXZ1WvSsf_CnHKq_IrEAybFQDJ005KwdPpe6yCNoX4,5254
|
364
364
|
orionis/test/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
365
365
|
orionis/test/cases/asynchronous.py,sha256=3e1Y3qzIxVU7i7lbLFEVyJ89IA74JsB7famx71W-p2E,1974
|
366
366
|
orionis/test/cases/synchronous.py,sha256=S5jhuDEZ5I9wosrTFaCtowkD5r5HzJH6mKPOdEJcDJE,1734
|
@@ -408,8 +408,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
|
|
408
408
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
409
409
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
410
410
|
orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
|
411
|
-
orionis-0.
|
412
|
-
orionis-0.
|
413
|
-
orionis-0.
|
414
|
-
orionis-0.
|
415
|
-
orionis-0.
|
411
|
+
orionis-0.582.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
412
|
+
orionis-0.582.0.dist-info/METADATA,sha256=lAaedXDa1kRMP3W_9ij1pa3dym2AH1qek1lDI9X-8R4,4801
|
413
|
+
orionis-0.582.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
414
|
+
orionis-0.582.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
|
415
|
+
orionis-0.582.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|