orionis 0.478.0__py3-none-any.whl → 0.480.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.
@@ -254,7 +254,6 @@ class Paths(BaseEntity):
254
254
  }
255
255
  )
256
256
 
257
-
258
257
  def __post_init__(self) -> None:
259
258
  super().__post_init__()
260
259
  """
@@ -705,7 +705,7 @@ class IApplication(IContainer):
705
705
  pass
706
706
 
707
707
  @abstractmethod
708
- def path(self, key: str = None, default: Any = None) -> Any:
708
+ def path(self, key: str = None, default: Any = None) -> str:
709
709
  """
710
710
  Retrieve path configuration values using dot notation access.
711
711
 
@@ -723,7 +723,7 @@ class IApplication(IContainer):
723
723
 
724
724
  Returns
725
725
  -------
726
- Any
726
+ str
727
727
  The path value associated with the key, the entire paths configuration
728
728
  object if no key is provided, or the default value if the key is not found.
729
729
  """
@@ -0,0 +1,51 @@
1
+ from orionis.console.contracts.schedule import ISchedule
2
+ from orionis.console.tasks.schedule import Scheduler
3
+ from orionis.container.providers.service_provider import ServiceProvider
4
+
5
+ class ScheduleProvider(ServiceProvider):
6
+ """
7
+ Service provider responsible for registering and bootstrapping the application's scheduling system.
8
+
9
+ The ScheduleProvider binds the ISchedule interface to the Scheduler implementation as a singleton
10
+ within the application's service container. It also provides an alias for convenient access.
11
+ Override the `boot` method to configure and register scheduled tasks or jobs required by the application.
12
+
13
+ Methods
14
+ -------
15
+ register() :
16
+ Registers the Scheduler as a singleton service and binds it to the ISchedule interface.
17
+ boot() :
18
+ Initializes and configures scheduled tasks; intended to be overridden for custom jobs.
19
+ """
20
+
21
+ def register(self) -> None:
22
+ """
23
+ Register the Scheduler as a singleton service in the application container.
24
+
25
+ This method binds the ISchedule interface to the Scheduler implementation,
26
+ making it available as a singleton throughout the application's lifecycle.
27
+ An alias "x-orionis.console.contracts.schedule" is also provided for
28
+ convenient access.
29
+
30
+ Returns
31
+ -------
32
+ None
33
+ This method does not return any value.
34
+ """
35
+ # Bind Scheduler as a singleton to the ISchedule interface with an alias
36
+ self.app.singleton(ISchedule, Scheduler, alias="x-orionis.console.contracts.schedule")
37
+
38
+ def boot(self) -> None:
39
+ """
40
+ Initialize and configure any scheduled tasks or jobs required by the application.
41
+
42
+ This method is called automatically during the application's bootstrapping process.
43
+ Override this method to register custom scheduled tasks.
44
+
45
+ Returns
46
+ -------
47
+ None
48
+ This method does not return any value.
49
+ """
50
+ # No scheduled tasks are registered by default; override to add custom jobs
51
+ pass
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.478.0"
8
+ VERSION = "0.480.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -10,7 +10,6 @@ from contextlib import redirect_stdout, redirect_stderr
10
10
  from datetime import datetime
11
11
  from pathlib import Path
12
12
  from typing import Any, Dict, List, Optional, Tuple
13
- from orionis.app import Orionis
14
13
  from orionis.foundation.config.testing.enums.drivers import PersistentDrivers
15
14
  from orionis.foundation.config.testing.enums.mode import ExecutionMode
16
15
  from orionis.foundation.config.testing.enums.verbosity import VerbosityMode
@@ -37,7 +36,7 @@ class UnitTest(IUnitTest):
37
36
 
38
37
  def __init__(
39
38
  self,
40
- app: Optional[IApplication] = None
39
+ app: IApplication
41
40
  ) -> None:
42
41
  """
43
42
  Initialize a UnitTest instance with default configuration and internal state.
@@ -50,7 +49,7 @@ class UnitTest(IUnitTest):
50
49
  """
51
50
 
52
51
  # Application instance for dependency injection
53
- self.__app: Optional[IApplication] = app or Orionis()
52
+ self.__app: IApplication = app
54
53
 
55
54
  # Storage path for test results
56
55
  self.__storage: Optional[str] = self.__app.path('storage_testing')
orionis/test/kernel.py CHANGED
@@ -44,7 +44,7 @@ class TestKernel(ITestKernel):
44
44
  config = Testing(**app.config('testing'))
45
45
 
46
46
  # Resolve the unit test service from the application container
47
- self.__unit_test: IUnitTest = app.make('x-orionis.test.core.unit_test', app)
47
+ self.__unit_test: IUnitTest = app.make('x-orionis.test.core.unit_test')
48
48
 
49
49
  # Apply configuration settings to the UnitTest instance
50
50
  self.__unit_test.configure(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.478.0
3
+ Version: 0.480.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
@@ -1,7 +1,7 @@
1
1
  orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  orionis/app.py,sha256=b69fOzj2J8Aw5g0IldWZXixUDeeTO9vcHc_Njses9HU,603
3
3
  orionis/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- orionis/console/kernel.py,sha256=xmESoZiQXXBufZipwNxc6MFkEiEUB4uyCbx6dR7w1Hg,4492
4
+ orionis/console/kernel.py,sha256=9BmGVvqWMTjyINHl5Q-oBjYT6Kmiw_EKKUkEKh5Z9N4,4487
5
5
  orionis/console/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  orionis/console/args/argument.py,sha256=Is8Z8_kW4DvcK1nK1UU-sa6Pk0BeOdcRczCayW0ZVHc,20360
7
7
  orionis/console/args/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -14,15 +14,17 @@ orionis/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
14
14
  orionis/console/commands/cache.py,sha256=8DsYoRzSBLn0P9qkGVItRbo0R6snWBDBg0_Xa7tmVhs,2322
15
15
  orionis/console/commands/help.py,sha256=ooPoenP08ArMAWiL89_oUGD9l1Faen2QjLTG90i4zCQ,3187
16
16
  orionis/console/commands/publisher.py,sha256=FUg-EUzK7LLXsla10ZUZro8V0Z5S-KjmsaSdRHSSGbA,21381
17
- orionis/console/commands/test.py,sha256=mWPB_m_nUrsakCT1N6fcCBYU9mYj1IC39n3ICbQp8SQ,2128
17
+ orionis/console/commands/scheduler_work.py,sha256=RE8Rsbnorjy-0Ue3KPHjGELguQ1HMDDdo28CpbGTsU0,3578
18
+ orionis/console/commands/test.py,sha256=_Tb-I9vabiqhqGeLfRbV5Y1LEVCdhZhBAwoEQZCzQuM,2435
18
19
  orionis/console/commands/version.py,sha256=SUuNDJ40f2uq69OQUmPQXJKaa9Bm_iVRDPmBd7zc1Yc,3658
19
20
  orionis/console/commands/workflow.py,sha256=NYOmjTSvm2o6AE4h9LSTZMFSYPQreNmEJtronyOxaYk,2451
20
21
  orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ orionis/console/contracts/event.py,sha256=pxoxNjk31bt6yGvUFRTo_TI_SaZZar6iSIJARWR6KbM,5170
21
23
  orionis/console/contracts/kernel.py,sha256=mh4LlhEYHh3FuGZZQ0GBhD6ZLa5YQvaNj2r01IIHI5Y,826
22
24
  orionis/console/contracts/reactor.py,sha256=Xeq7Zrw6WE5MV_XOQfiQEchAFbb6-0TjLpjWOxYW--g,4554
23
- orionis/console/contracts/schedule.py,sha256=A7yYPjPmRizDHOR9k4qvY3NuRPrWBmNuQs6ENGXWtBs,70
25
+ orionis/console/contracts/schedule.py,sha256=eGjcOH7kgdf0fWDZRfOFUQsIx4E8G38ayX5JwpkpN8E,4977
24
26
  orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- orionis/console/core/reactor.py,sha256=Hd7T-jNG_tzhpJXRztjDSKCtm7-3LOh5lcQ__cIchMk,30172
27
+ orionis/console/core/reactor.py,sha256=v_y3LDydBeKmtCfA0rIi8Nicy38DEfflp_zwx2OM7NQ,30257
26
28
  orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
29
  orionis/console/dumper/dump.py,sha256=CATERiQ6XuIrKQsDaWcVxzTtlAJI9qLJX44fQxEX8ws,22443
28
30
  orionis/console/dumper/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -33,7 +35,7 @@ orionis/console/dynamic/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
33
35
  orionis/console/dynamic/contracts/progress_bar.py,sha256=NYebL2h-vg2t2H6IhJjuC37gglRkpT-MW71wbJtpLNg,1784
34
36
  orionis/console/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
37
  orionis/console/enums/command.py,sha256=lCfVp2vnDojJN2gjdVxE_XU3mRjZZgOIxPfBVQYo9w4,1278
36
- orionis/console/enums/task.py,sha256=1oRR_VKfzsojCxxywYAMhpPvZQ8kSEEdXeXvCOfAXmg,1322
38
+ orionis/console/enums/event.py,sha256=XRV7N14N5HHt-c0HqYhrbKv4n2P7ZOCcBT_3OAQzenU,1929
37
39
  orionis/console/exceptions/__init__.py,sha256=0qlHNuHMVZO87M-rP8lThUUyljRM1jSFNikaxSCjSbw,366
38
40
  orionis/console/exceptions/cli_exception.py,sha256=HsZ_vSeNiJWQ0gznVFNcIdhM0Bj_vkSRVBJs0wMjEKY,1141
39
41
  orionis/console/exceptions/cli_orionis_value_error.py,sha256=RQP0HRwxDG8hxFOT1kUoZ1Ab1CZ1KLoSIl5yqlmgG4M,1147
@@ -48,9 +50,11 @@ orionis/console/output/contracts/executor.py,sha256=7l3kwnvv6GlH9EYk0v94YE1olex_
48
50
  orionis/console/output/enums/__init__.py,sha256=LAaAxg-DpArCjf_jqZ0_9s3p8899gntDYkSU_ppTdC8,66
49
51
  orionis/console/output/enums/styles.py,sha256=6a4oQCOBOKMh2ARdeq5GlIskJ3wjiylYmh66tUKKmpQ,4053
50
52
  orionis/console/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
- orionis/console/tasks/schedule.py,sha256=qlll0aagyOzAa3EmluycrSM9zvxVqSMgP5bUOGm1zZA,22215
53
+ orionis/console/tasks/event.py,sha256=NdOht_yXqKW0EIsIVrctIgOhQDWAR5fuMPEF05zTWtI,12029
54
+ orionis/console/tasks/exception_report.py,sha256=IN1PCQ08ZHs1sivUpzi2f9U9eW8ydZyb8GO6KiT56LY,3643
55
+ orionis/console/tasks/schedule.py,sha256=yfKg0GPKEogAdndcqPJBak0NrIJ_Z-Fzpza34S-mIcc,19498
52
56
  orionis/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
- orionis/container/container.py,sha256=p7kJ-hwnDattTWCArt0ypol4bW3M334hIZ2FAQhID-w,87570
57
+ orionis/container/container.py,sha256=aF_b6lTUpG4YCo9yFJEzsntTdIzgMMXFW5LyWqAJVBQ,87987
54
58
  orionis/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
59
  orionis/container/context/manager.py,sha256=I08K_jKXSKmrq18Pv33qYyMKIlAovVOwIgmfiVm-J7c,2971
56
60
  orionis/container/context/scope.py,sha256=p_oCzR7dDz-5ZAd16ab4vfLc3gBf34CaN0f4iR9D0bQ,1155
@@ -67,7 +71,7 @@ orionis/container/exceptions/exception.py,sha256=goTDEwC70xTMD2qppN8KV-xyR0Nps21
67
71
  orionis/container/exceptions/type.py,sha256=cYuvoXVOgRYj3tZPfK341aUERkf33-buOiI2eXxcrAw,470
68
72
  orionis/container/exceptions/value.py,sha256=hjY0YEusoL3DurME1ornxvIv1wyGaf6tBggLFlGHblo,472
69
73
  orionis/container/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
- orionis/container/facades/facade.py,sha256=jzP4dTgDiaxPw-RWTHrE-DYiv8tXa1TQov1jx9Iti3c,3679
74
+ orionis/container/facades/facade.py,sha256=_qoidPjtN5rPHTt9K9KpVLMVIliHlROeO0Xr_ySyzz0,3695
71
75
  orionis/container/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
76
  orionis/container/providers/service_provider.py,sha256=RqXpn8krFA3tt_m9CEG7-na7szp-zqfirO4DzpCHpF4,1685
73
77
  orionis/container/validators/__init__.py,sha256=iJ_cY8U0EkpnZOU4_LANGKHFkvHeV0vH5bjbYr1fdSg,609
@@ -81,7 +85,7 @@ orionis/container/validators/is_subclass.py,sha256=4sBaGLoRs8nUhuWjlP0VJqyTwVHYq
81
85
  orionis/container/validators/is_valid_alias.py,sha256=4uAYcq8xov7jZbXnpKpjNkxcZtlTNnL5RRctVPMwJes,1424
82
86
  orionis/container/validators/lifetime.py,sha256=IQ43fDNrxYHMlZH2zlYDJnlkLO_eS4U7Fs3UJgQBidI,1844
83
87
  orionis/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
- orionis/foundation/application.py,sha256=fKKT4K_DBPEKTMZaeRfBpK_DsaWvEt_dVhA-yu1Wyfo,77173
88
+ orionis/foundation/application.py,sha256=NYBPELrOOSEnkdlBoZwgORhZk2kKQdQzqqIHetIp-jM,77479
85
89
  orionis/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
86
90
  orionis/foundation/config/startup.py,sha256=vbzduprRCNyYeR2nnMaqc1uKXw6PTzAY2jVfXNQKN8I,9691
87
91
  orionis/foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -159,7 +163,7 @@ orionis/foundation/config/queue/entities/queue.py,sha256=YiWPeEg5e0fd_DJM2ogska6
159
163
  orionis/foundation/config/queue/enums/__init__.py,sha256=oWY8GWwr5mex7szs_bLVqAS1jbyuIAvKl7XFGSlU9A0,64
160
164
  orionis/foundation/config/queue/enums/strategy.py,sha256=S_kw7KZtoCk5FTOkbuXepdy_fOl9Eav4uT2K0OyzBa0,602
161
165
  orionis/foundation/config/roots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
162
- orionis/foundation/config/roots/paths.py,sha256=YosRpL9R6sSaEkW2PnymTCXSxPQb3-miWoUAC0pVYvw,10676
166
+ orionis/foundation/config/roots/paths.py,sha256=EsMHLfOejYvS_N3B2LfY-SJioHFXMUOqEo0BEiHwQAI,10675
163
167
  orionis/foundation/config/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
164
168
  orionis/foundation/config/session/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
165
169
  orionis/foundation/config/session/entities/session.py,sha256=sJoD-_CiwUR88tva-rO22bagG3RTcHXrQGWbq4B5joM,5998
@@ -175,7 +179,7 @@ orionis/foundation/config/testing/enums/drivers.py,sha256=mwv47FcKDXEOxydQXAGtkd
175
179
  orionis/foundation/config/testing/enums/mode.py,sha256=IbFpauu7J-iSAfmC8jDbmTEYl8eZr-AexL-lyOh8_74,337
176
180
  orionis/foundation/config/testing/enums/verbosity.py,sha256=Z-FQ6C3rxbRwP8HoVibbgRMGcsen2SwTuEy3wnjdIhc,486
177
181
  orionis/foundation/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
178
- orionis/foundation/contracts/application.py,sha256=fOpR5Wxc0K4gjkxFvy0-kYTRGhnBiWnMlf5-dOe1qE0,27033
182
+ orionis/foundation/contracts/application.py,sha256=DQbSbnlfTTPgqo6qxEoTC216_QmJ8KJRT7QBudKCoN4,27033
179
183
  orionis/foundation/contracts/config.py,sha256=mCyA43f0n_e-CEL0f-sWWgE-M7GicS_aEtC_TNbn_yc,802
180
184
  orionis/foundation/exceptions/__init__.py,sha256=q6we1N8kcd6j6GjUJY30WQhhHnqF9RXA0c6-ksEztlc,294
181
185
  orionis/foundation/exceptions/integrity.py,sha256=mc4pL1UMoYRHEmphnpW2oGk5URhu7DJRREyzHaV-cs8,472
@@ -191,10 +195,11 @@ orionis/foundation/providers/logger_provider.py,sha256=rs8UpaD_vSp3qNli0u9A4eRum
191
195
  orionis/foundation/providers/performance_counter_provider.py,sha256=7y10Vaqx7GemGh2wCaww8XmdvFQXLXm9_E4GjpdNXcA,3010
192
196
  orionis/foundation/providers/progress_bar_provider.py,sha256=X4Ke7mPr0MgVp6WDNaQ3bI3Z_LOS8qE-wid0MQErKms,3367
193
197
  orionis/foundation/providers/reactor_provider.py,sha256=P0KQcp4AFKTrD6BStGfCTqhGUlpKgsrZTZZKSqyGJQg,3662
198
+ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6Zc3mmwMOiaHCH4XZr5Www,2132
194
199
  orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
195
200
  orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
196
201
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
197
- orionis/metadata/framework.py,sha256=_RmAaDI2nx_VXNowa0s5vscpNmtmWyTr5s7UiHMkqpg,4109
202
+ orionis/metadata/framework.py,sha256=quNtkZYR7OhBGszElk1HVAPxt-ZvbDzARGozB2Ry_sA,4109
198
203
  orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
199
204
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
200
205
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -318,7 +323,7 @@ orionis/support/standard/exceptions/value.py,sha256=rsyWFQweImaJGTJa7Id7RhPlwWJ4
318
323
  orionis/support/wrapper/__init__.py,sha256=jGoWoIGYuRYqMYQKlrX7Dpcbg-AGkHoB_aM2xhu73yc,62
319
324
  orionis/support/wrapper/dot_dict.py,sha256=T8xWwwOhBZHNeXRwE_CxvOwG9UFxsLqNmOJjV2CNIrc,7284
320
325
  orionis/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
321
- orionis/test/kernel.py,sha256=gJuQkd76T3c_iXFpHHmGrOjH8A6xe8esH6SwEAKF--4,6362
326
+ orionis/test/kernel.py,sha256=qVEWboHxLdEaAIr9a_8qgWEVMqCEGq8VYNQP-dfEowc,6357
322
327
  orionis/test/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
323
328
  orionis/test/cases/asynchronous.py,sha256=3e1Y3qzIxVU7i7lbLFEVyJ89IA74JsB7famx71W-p2E,1974
324
329
  orionis/test/cases/synchronous.py,sha256=S5jhuDEZ5I9wosrTFaCtowkD5r5HzJH6mKPOdEJcDJE,1734
@@ -331,7 +336,7 @@ orionis/test/contracts/render.py,sha256=wpDQzUtT0r8KFZ7zPcxWHXQ1EVNKxzA_rZ6ZKUcZ
331
336
  orionis/test/contracts/test_result.py,sha256=SNXJ2UerkweYn7uCT0i0HmMGP0XBrL_9KJs-0ZvIYU4,4002
332
337
  orionis/test/contracts/unit_test.py,sha256=getqaBoadQT_wh_V6aTQvm0yx9IgbVrE9EEOD8b031g,8031
333
338
  orionis/test/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
334
- orionis/test/core/unit_test.py,sha256=WU107nW5mhLZ8wluhtxkaBNuOKaqAb6BswpdQ-ozCXI,64834
339
+ orionis/test/core/unit_test.py,sha256=ElXUoKivG7_-y834dZurJLcrEIP95t-S5TdHHq3QFP4,64761
335
340
  orionis/test/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
336
341
  orionis/test/entities/result.py,sha256=IMAd1AiwOf2z8krTDBFMpQe_1PG4YJ5Z0qpbr9xZwjg,4507
337
342
  orionis/test/enums/__init__.py,sha256=M3imAgMvKFTKg55FbtVoY3zxj7QRY9AfaUWxiSZVvn4,66
@@ -365,7 +370,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
365
370
  orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
366
371
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
367
372
  orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
368
- orionis-0.478.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
373
+ orionis-0.480.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
369
374
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
370
375
  tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
371
376
  tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -495,7 +500,7 @@ tests/support/standard/test_services_std.py,sha256=I9UeUkjrDdhvfSL3ao6wx2rLysXi6
495
500
  tests/support/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
496
501
  tests/support/wrapper/test_services_wrapper_docdict.py,sha256=K-u5Z744Nj4dVie9tmLmnFxjN5vwHz_mDf6S0tZN97o,6822
497
502
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
498
- tests/testing/test_testing_unit.py,sha256=6dKIg4s_sEk1uQh9dw7rF75QP-N0ChugBDOk4tAHLPk,6810
503
+ tests/testing/test_testing_unit.py,sha256=vggKTMeDjYqoK4ykZO5ZfxN5ue9-pm-Ts5wGMrEkgXw,6906
499
504
  tests/testing/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
500
505
  tests/testing/cases/test_testing_asynchronous.py,sha256=3ji_jajS3bGdmMbAUQc9rBfcOTVnReklkgmAjYKL7SQ,1963
501
506
  tests/testing/cases/test_testing_synchronous.py,sha256=Y-0teflDsL1B3nAVrGywMTY0u5a7tlAKXw9Oq1pF24M,1947
@@ -512,8 +517,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
512
517
  tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
513
518
  tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
514
519
  tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
515
- orionis-0.478.0.dist-info/METADATA,sha256=LI8ito8saDpADOaQ1uBmcGO17dm5DoY7s_Ahep3kECk,4801
516
- orionis-0.478.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
517
- orionis-0.478.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
518
- orionis-0.478.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
519
- orionis-0.478.0.dist-info/RECORD,,
520
+ orionis-0.480.0.dist-info/METADATA,sha256=AOzmWalbiDP0vjxRuJJo9CyReFpGJ4iO_0FIVEznBG0,4801
521
+ orionis-0.480.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
522
+ orionis-0.480.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
523
+ orionis-0.480.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
524
+ orionis-0.480.0.dist-info/RECORD,,
@@ -1,5 +1,6 @@
1
1
  import unittest
2
2
  from unittest.mock import MagicMock
3
+ from orionis.app import Orionis
3
4
  from orionis.foundation.config.testing.enums.drivers import PersistentDrivers
4
5
  from orionis.foundation.config.testing.enums.mode import ExecutionMode
5
6
  from orionis.test.cases.asynchronous import AsyncTestCase
@@ -15,7 +16,7 @@ class TestTestingUnit(AsyncTestCase):
15
16
  -------
16
17
  None
17
18
  """
18
- unit_test = UnitTest()
19
+ unit_test = UnitTest(Orionis())
19
20
  # Assert that the loader is correctly initialized as a TestLoader
20
21
  self.assertIsInstance(unit_test._UnitTest__loader, unittest.TestLoader)
21
22
  # Assert that the suite is correctly initialized as a TestSuite
@@ -29,7 +30,7 @@ class TestTestingUnit(AsyncTestCase):
29
30
  -------
30
31
  None
31
32
  """
32
- unit_test = UnitTest()
33
+ unit_test = UnitTest(Orionis())
33
34
  # Configure the UnitTest instance with custom parameters
34
35
  configured = unit_test.configure(
35
36
  verbosity=1,
@@ -62,7 +63,7 @@ class TestTestingUnit(AsyncTestCase):
62
63
  -------
63
64
  None
64
65
  """
65
- unit_test = UnitTest()
66
+ unit_test = UnitTest(Orionis())
66
67
  # Create mock test cases
67
68
  test_case1 = MagicMock()
68
69
  test_case2 = MagicMock()
@@ -88,7 +89,7 @@ class TestTestingUnit(AsyncTestCase):
88
89
  -------
89
90
  None
90
91
  """
91
- unit_test = UnitTest()
92
+ unit_test = UnitTest(Orionis())
92
93
  # Create a combined TestResult to aggregate results into
93
94
  combined = unittest.TestResult()
94
95
  # Create an individual TestResult with sample data
@@ -114,7 +115,7 @@ class TestTestingUnit(AsyncTestCase):
114
115
  -------
115
116
  None
116
117
  """
117
- unit_test = UnitTest()
118
+ unit_test = UnitTest(Orionis())
118
119
  # Add a mock test case to the suite
119
120
  mock_test = MagicMock()
120
121
  unit_test._UnitTest__suite.addTest(mock_test)
@@ -131,7 +132,7 @@ class TestTestingUnit(AsyncTestCase):
131
132
  -------
132
133
  None
133
134
  """
134
- unit_test = UnitTest()
135
+ unit_test = UnitTest(Orionis())
135
136
  # Create a mock test case and set its id() method to return a specific identifier
136
137
  mock_test = MagicMock()
137
138
  mock_test.id.return_value = 'test_id'
@@ -150,7 +151,7 @@ class TestTestingUnit(AsyncTestCase):
150
151
  -------
151
152
  None
152
153
  """
153
- unit_test = UnitTest()
154
+ unit_test = UnitTest(Orionis())
154
155
  # Create two mock test cases
155
156
  mock_test1 = MagicMock()
156
157
  mock_test2 = MagicMock()
@@ -1,42 +0,0 @@
1
- from dataclasses import dataclass
2
- from typing import List, Optional
3
- from orionis.support.entities.base import BaseEntity
4
-
5
- @dataclass(kw_only=True)
6
- class Task(BaseEntity):
7
- """
8
- Represents a task entity containing metadata for execution and description.
9
-
10
- Parameters
11
- ----------
12
- signature : str
13
- The unique identifier or signature of the task.
14
- args : Optional[List[str]], optional
15
- List of arguments required by the task, by default None.
16
- purpose : str, optional
17
- Brief description of the task's purpose, by default None.
18
- trigger : str, optional
19
- Event or condition that triggers the task, by default None.
20
- details : str, optional
21
- Additional details or information about the task, by default None.
22
-
23
- Returns
24
- -------
25
- Task
26
- An instance of the Task class with the specified metadata.
27
- """
28
-
29
- # Unique identifier for the task
30
- signature: str
31
-
32
- # List of arguments required by the task (optional)
33
- args: Optional[List[str]] = None
34
-
35
- # Brief description of the task's purpose (optional)
36
- purpose: str = None
37
-
38
- # Event or condition that triggers the task (optional)
39
- trigger: str = None
40
-
41
- # Additional details or information about the task (optional)
42
- details: str = None