orionis 0.307.0__py3-none-any.whl → 0.309.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/container/container.py +22 -0
- orionis/container/enums/lifetimes.py +8 -0
- orionis/container/exceptions/container_exception.py +17 -0
- orionis/container/exceptions/type_error_exception.py +17 -0
- orionis/container/exceptions/value_exception.py +17 -0
- orionis/foundation/config/testing/entities/testing.py +23 -2
- orionis/metadata/framework.py +1 -1
- orionis/services/introspection/abstract/reflection_abstract.py +14 -0
- orionis/test/logs/history.py +1 -1
- orionis/test/output/dumper.py +1 -1
- orionis/test/suite/test_unit.py +1 -1
- orionis/test/test_suite.py +22 -1
- {orionis-0.307.0.dist-info → orionis-0.309.0.dist-info}/METADATA +1 -1
- {orionis-0.307.0.dist-info → orionis-0.309.0.dist-info}/RECORD +25 -22
- tests/services/inspection/reflection/test_reflection_abstract.py +63 -63
- orionis/test/output/contracts/__init__.py +0 -0
- orionis/test/suite/contracts/__init__.py +0 -0
- /orionis/foundation/{config/contracts → contracts}/__init__.py +0 -0
- /orionis/foundation/{config/contracts → contracts}/config.py +0 -0
- /orionis/test/{logs/contracts → contracts}/__init__.py +0 -0
- /orionis/test/{output/contracts → contracts}/dumper.py +0 -0
- /orionis/test/{logs/contracts → contracts}/history.py +0 -0
- /orionis/test/{suite/contracts → contracts}/test_unit.py +0 -0
- {orionis-0.307.0.dist-info → orionis-0.309.0.dist-info}/WHEEL +0 -0
- {orionis-0.307.0.dist-info → orionis-0.309.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.307.0.dist-info → orionis-0.309.0.dist-info}/top_level.txt +0 -0
- {orionis-0.307.0.dist-info → orionis-0.309.0.dist-info}/zip-safe +0 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
from typing import Any, Callable
|
2
|
+
from orionis.container.enums.lifetimes import Lifetime
|
3
|
+
from orionis.services.introspection.abstract.reflection_abstract import ReflectionAbstract
|
4
|
+
|
5
|
+
|
6
|
+
class Container:
|
7
|
+
|
8
|
+
def transient(self, abstract: Callable[..., Any], concrete: Callable[..., Any]) -> None:
|
9
|
+
"""
|
10
|
+
Registers a service with a transient lifetime.
|
11
|
+
|
12
|
+
Parameters
|
13
|
+
----------
|
14
|
+
abstract : Callable[..., Any]
|
15
|
+
The abstract base type or alias to be bound.
|
16
|
+
concrete : Callable[..., Any]
|
17
|
+
The concrete implementation to associate with the abstract type.
|
18
|
+
"""
|
19
|
+
|
20
|
+
print(ReflectionAbstract.type(abstract))
|
21
|
+
|
22
|
+
# self.bind(abstract, concrete, Lifetime.TRANSIENT)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class OrionisContainerException(Exception):
|
2
|
+
"""
|
3
|
+
Excepción personalizada para errores relacionados con el contenedor de inyección de dependencias Orionis.
|
4
|
+
"""
|
5
|
+
|
6
|
+
def __init__(self, message: str) -> None:
|
7
|
+
"""
|
8
|
+
Inicializa la excepción con un mensaje de error.
|
9
|
+
|
10
|
+
Args:
|
11
|
+
message (str): Mensaje descriptivo del error.
|
12
|
+
"""
|
13
|
+
super().__init__(message)
|
14
|
+
|
15
|
+
def __str__(self) -> str:
|
16
|
+
"""Retorna una representación en cadena de la excepción."""
|
17
|
+
return f"[OrionisContainerException] {self.args[0]}"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class OrionisContainerTypeError(TypeError):
|
2
|
+
"""
|
3
|
+
Custom exception for TypeError related to the Orionis container.
|
4
|
+
"""
|
5
|
+
|
6
|
+
def __init__(self, message: str) -> None:
|
7
|
+
"""
|
8
|
+
Initializes the exception with an error message.
|
9
|
+
|
10
|
+
Args:
|
11
|
+
message (str): Descriptive error message.
|
12
|
+
"""
|
13
|
+
super().__init__(message)
|
14
|
+
|
15
|
+
def __str__(self) -> str:
|
16
|
+
"""Returns a string representation of the exception."""
|
17
|
+
return f"[OrionisContainerTypeError] {self.args[0]}"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class OrionisContainerValueError(ValueError):
|
2
|
+
"""
|
3
|
+
Excepción personalizada para errores de tipo ValueError en el contenedor Orionis.
|
4
|
+
"""
|
5
|
+
|
6
|
+
def __init__(self, message: str) -> None:
|
7
|
+
"""
|
8
|
+
Inicializa la excepción con un mensaje de error.
|
9
|
+
|
10
|
+
Args:
|
11
|
+
message (str): Mensaje descriptivo del error.
|
12
|
+
"""
|
13
|
+
super().__init__(message)
|
14
|
+
|
15
|
+
def __str__(self) -> str:
|
16
|
+
"""Retorna una representación en cadena de la excepción."""
|
17
|
+
return f"[OrionisContainerValueError] {self.args[0]}"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from dataclasses import asdict, dataclass, field
|
1
|
+
from dataclasses import asdict, dataclass, field, fields
|
2
2
|
from typing import List
|
3
3
|
from orionis.foundation.config.exceptions.integrity import OrionisIntegrityException
|
4
4
|
from orionis.services.system.workers import Workers
|
@@ -51,7 +51,7 @@ class Testing:
|
|
51
51
|
metadata={
|
52
52
|
"description": "The maximum number of worker threads/processes to use when running tests in parallel. Default is 4.",
|
53
53
|
"required": True,
|
54
|
-
"default":
|
54
|
+
"default": Workers().__class__
|
55
55
|
}
|
56
56
|
)
|
57
57
|
|
@@ -277,3 +277,24 @@ class Testing:
|
|
277
277
|
"""
|
278
278
|
return asdict(self)
|
279
279
|
|
280
|
+
def getFields(self):
|
281
|
+
"""
|
282
|
+
Retrieves a list of field information for the current dataclass instance.
|
283
|
+
|
284
|
+
Returns:
|
285
|
+
list: A list of dictionaries, each containing details about a field:
|
286
|
+
- name (str): The name of the field.
|
287
|
+
- type (type): The type of the field.
|
288
|
+
- default: The default value of the field, if specified; otherwise, the value from metadata or None.
|
289
|
+
- metadata (mapping): The metadata associated with the field.
|
290
|
+
"""
|
291
|
+
__fields = []
|
292
|
+
for field in fields(self):
|
293
|
+
__metadata = dict(field.metadata) or {}
|
294
|
+
__fields.append({
|
295
|
+
"name": field.name,
|
296
|
+
"type": field.type.__name__ if hasattr(field.type, '__name__') else str(field.type),
|
297
|
+
"default": field.default if (field.default is not None and '_MISSING_TYPE' not in str(field.default)) else __metadata.get('default', None),
|
298
|
+
"metadata": __metadata
|
299
|
+
})
|
300
|
+
return __fields
|
orionis/metadata/framework.py
CHANGED
@@ -11,6 +11,20 @@ from orionis.services.introspection.exceptions.reflection_value_error import Ref
|
|
11
11
|
|
12
12
|
class ReflectionAbstract(IReflectionAbstract):
|
13
13
|
|
14
|
+
@staticmethod
|
15
|
+
def type(abstract: Type):
|
16
|
+
|
17
|
+
# Check if the provided abstract is a class type
|
18
|
+
if not isinstance(abstract, type):
|
19
|
+
raise ReflectionTypeError(f"Expected a class type for 'abstract', got {type(abstract).__name__!r}")
|
20
|
+
|
21
|
+
# Check if it's an abstract base class (interface)
|
22
|
+
if not bool(getattr(abstract, '__abstractmethods__', False)):
|
23
|
+
raise ReflectionTypeError(f"Provided class '{abstract.__name__}' is not an interface (abstract base class)")
|
24
|
+
|
25
|
+
# Return if is abstract class.
|
26
|
+
return type(abstract)
|
27
|
+
|
14
28
|
def __init__(self, abstract: Type) -> None:
|
15
29
|
"""
|
16
30
|
Initializes the reflection class with the provided abstract base class (interface).
|
orionis/test/logs/history.py
CHANGED
@@ -6,7 +6,7 @@ from typing import Dict, List, Optional, Tuple
|
|
6
6
|
from orionis.services.environment.env import Env
|
7
7
|
from orionis.test.exceptions.test_persistence_error import OrionisTestPersistenceError
|
8
8
|
from orionis.test.exceptions.test_value_error import OrionisTestValueError
|
9
|
-
from orionis.test.
|
9
|
+
from orionis.test.contracts.history import ITestHistory
|
10
10
|
|
11
11
|
class TestHistory(ITestHistory):
|
12
12
|
|
orionis/test/output/dumper.py
CHANGED
orionis/test/suite/test_unit.py
CHANGED
@@ -25,7 +25,7 @@ from orionis.test.exceptions.test_failure_exception import OrionisTestFailureExc
|
|
25
25
|
from orionis.test.exceptions.test_persistence_error import OrionisTestPersistenceError
|
26
26
|
from orionis.test.exceptions.test_value_error import OrionisTestValueError
|
27
27
|
from orionis.test.logs.history import TestHistory
|
28
|
-
from orionis.test.
|
28
|
+
from orionis.test.contracts.test_unit import IUnitTest
|
29
29
|
from orionis.test.view.render import TestingResultRender
|
30
30
|
|
31
31
|
class UnitTest(IUnitTest):
|
orionis/test/test_suite.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import re
|
2
2
|
from os import walk
|
3
|
+
from dataclasses import fields
|
3
4
|
from orionis.foundation.config.testing.entities.testing import Testing as Configuration
|
4
5
|
from orionis.test.exceptions.test_config_exception import OrionisTestConfigException
|
5
6
|
from orionis.test.suite.test_unit import UnitTest
|
@@ -28,7 +29,7 @@ class TestSuite:
|
|
28
29
|
Returns the results of the executed test suite.
|
29
30
|
"""
|
30
31
|
|
31
|
-
def __init__(self, config:Configuration = None):
|
32
|
+
def __init__(self, config:Configuration = None, **kwargs):
|
32
33
|
"""
|
33
34
|
Initializes the TestSuite with the provided configuration.
|
34
35
|
|
@@ -37,6 +38,26 @@ class TestSuite:
|
|
37
38
|
config : Configuration, optional
|
38
39
|
Configuration object specifying parameters for test suite execution. If not provided, a new Configuration instance is created.
|
39
40
|
"""
|
41
|
+
|
42
|
+
# Check if config is None and kwargs are provided
|
43
|
+
if config is None:
|
44
|
+
|
45
|
+
try:
|
46
|
+
|
47
|
+
# Attempt to create a Configuration instance with provided keyword arguments
|
48
|
+
config = Configuration(**kwargs)
|
49
|
+
|
50
|
+
except TypeError:
|
51
|
+
|
52
|
+
# If a TypeError occurs, it indicates that the provided arguments do not match the Configuration class
|
53
|
+
required_fields = []
|
54
|
+
for field in Configuration().getFields():
|
55
|
+
required_fields.append(f"{field.get('name')} = (Type: {field.get('type')}, Default: {field.get('default')})")
|
56
|
+
|
57
|
+
# Raise an exception with a detailed message about the required fields
|
58
|
+
raise OrionisTestConfigException(f"The provided configuration is not valid. Please ensure it is an instance of the Configuration class or provide valid keyword arguments. \n{str("\n").join(required_fields)}]")
|
59
|
+
|
60
|
+
# Assign the configuration to the instance variable
|
40
61
|
self.__config = config or Configuration()
|
41
62
|
|
42
63
|
def run(self) -> 'UnitTest':
|
@@ -135,6 +135,11 @@ orionis/console/output/console.py,sha256=TE_Hl720ADd82dbERFSWhkoQRukDQZmETSw4nkw
|
|
135
135
|
orionis/console/output/executor.py,sha256=bdvkzW2-buy0BPpy2r5qUGrRFW2Ay6k-5rSeHb0gQ3o,3352
|
136
136
|
orionis/console/output/progress_bar.py,sha256=vFy582z6VJS46LV6tuyrmr9qvdVeTEtw3hyNcEHezeg,3088
|
137
137
|
orionis/console/output/styles.py,sha256=6a4oQCOBOKMh2ARdeq5GlIskJ3wjiylYmh66tUKKmpQ,4053
|
138
|
+
orionis/container/container.py,sha256=z6xer80JwWZvDtb4m3mm3PT5k0gTcYY_95J0gVHvGcw,751
|
139
|
+
orionis/container/enums/lifetimes.py,sha256=RqQmugMIB1Ev_j_vFLcWorndm-to7xg4stQ7yKFDdDw,190
|
140
|
+
orionis/container/exceptions/container_exception.py,sha256=cmoiDR2LvQ4AnxxZL-F3JdeI18ux7CzKmsCki98DAEk,585
|
141
|
+
orionis/container/exceptions/type_error_exception.py,sha256=T1x0vNY_i6pj3dyQ8atFKGY-Cs20Ep7EHq0RWvxpNMM,531
|
142
|
+
orionis/container/exceptions/value_exception.py,sha256=FSFsoG_piErEs-OOCtDrdDY02bPIOdNy4-rbJ8qPNHg,565
|
138
143
|
orionis/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
139
144
|
orionis/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
140
145
|
orionis/foundation/config/startup.py,sha256=UHeTHPNG8h1Cbg_kT9ZiungOmU2gkrod4nhW8xgddQY,7209
|
@@ -154,8 +159,6 @@ orionis/foundation/config/cache/entities/file.py,sha256=9PCVsQNfFgOd6MylpvVS_sle
|
|
154
159
|
orionis/foundation/config/cache/entities/stores.py,sha256=CyDEudFLQuCKrlylOyk5MmlEqv0h2e7uiX7H0a4bz0g,1831
|
155
160
|
orionis/foundation/config/cache/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
156
161
|
orionis/foundation/config/cache/enums/drivers.py,sha256=saAPBQofa-_BocXNcNiju0XLaOApfPICZa7ZP23qIJs,277
|
157
|
-
orionis/foundation/config/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
158
|
-
orionis/foundation/config/contracts/config.py,sha256=Rpz6U6t8OXHO9JJKSTnCimytXE-tfCB-1ithP2nG8MQ,628
|
159
162
|
orionis/foundation/config/cors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
160
163
|
orionis/foundation/config/cors/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
161
164
|
orionis/foundation/config/cors/entities/cors.py,sha256=3jjP-I1DV5SnxZSjH_Ryp9aS6B94iToFN-yUnNYvpmw,5196
|
@@ -222,11 +225,13 @@ orionis/foundation/config/session/enums/same_site_policy.py,sha256=Oo05CJ-5keJWz
|
|
222
225
|
orionis/foundation/config/session/helpers/secret_key.py,sha256=yafjzQ9KVQdXzCQCMthpgizlNCo5F5UTLtAnInipUMk,447
|
223
226
|
orionis/foundation/config/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
224
227
|
orionis/foundation/config/testing/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
225
|
-
orionis/foundation/config/testing/entities/testing.py,sha256=
|
228
|
+
orionis/foundation/config/testing/entities/testing.py,sha256=2eln07Jlrfo8XPeVKUGgX6NZJkYJx4fxTat3b1WzAJU,12916
|
226
229
|
orionis/foundation/config/testing/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
227
230
|
orionis/foundation/config/testing/enums/test_mode.py,sha256=IbFpauu7J-iSAfmC8jDbmTEYl8eZr-AexL-lyOh8_74,337
|
231
|
+
orionis/foundation/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
232
|
+
orionis/foundation/contracts/config.py,sha256=Rpz6U6t8OXHO9JJKSTnCimytXE-tfCB-1ithP2nG8MQ,628
|
228
233
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
229
|
-
orionis/metadata/framework.py,sha256=
|
234
|
+
orionis/metadata/framework.py,sha256=qeWjf-r_TPkpB9eRQmFbJgPl2m72cDZKLyPOsBuhT-E,4960
|
230
235
|
orionis/metadata/package.py,sha256=tqLfBRo-w1j_GN4xvzUNFyweWYFS-qhSgAEc-AmCH1M,5452
|
231
236
|
orionis/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
232
237
|
orionis/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -251,7 +256,7 @@ orionis/services/environment/exceptions/environment_value_exception.py,sha256=zl
|
|
251
256
|
orionis/services/introspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
252
257
|
orionis/services/introspection/reflection.py,sha256=AI5ZMv9kHCLOQe9lL_G7wAeY3cPLKZ1FMYqIhU0yS-M,2972
|
253
258
|
orionis/services/introspection/abstract/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
254
|
-
orionis/services/introspection/abstract/reflection_abstract.py,sha256=
|
259
|
+
orionis/services/introspection/abstract/reflection_abstract.py,sha256=uLE3HaJzQYomI952nEJEn3zU04Wva1mRPm5FdBViswY,43333
|
255
260
|
orionis/services/introspection/abstract/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
256
261
|
orionis/services/introspection/abstract/contracts/reflection_abstract.py,sha256=-ugpFcAkGTlk0Md5ft8NrvupnlfVji8QZjGYqWBxqeY,22370
|
257
262
|
orionis/services/introspection/concretes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -309,11 +314,15 @@ orionis/support/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
309
314
|
orionis/support/wrapper/dicts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
310
315
|
orionis/support/wrapper/dicts/dot_dict.py,sha256=VdAUH-DO6y86pl_9N6v-vU9mdLraWh5HjVzI5iC1dMs,5295
|
311
316
|
orionis/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
312
|
-
orionis/test/test_suite.py,sha256=
|
317
|
+
orionis/test/test_suite.py,sha256=qeQQ_OvgNAmJDuAHRTZntbbCujGl2NtR08bMXZOv-EQ,6001
|
313
318
|
orionis/test/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
314
319
|
orionis/test/cases/test_async.py,sha256=YwycimGfUx9-kd_FFO8BZXyVayYwOBOzxbu3WZU_l5s,1927
|
315
320
|
orionis/test/cases/test_case.py,sha256=GVN3cxYuE47uPOEqFUiMreLdXjTyqzHjjxfyEM5_D4w,1446
|
316
321
|
orionis/test/cases/test_sync.py,sha256=FekXNQDq5pOQB2YpvP7E9jAqIJH9uZhTMoPz-qx8FO0,742
|
322
|
+
orionis/test/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
323
|
+
orionis/test/contracts/dumper.py,sha256=5OqGc4GEXCXX76sCX185giQMyKwwZvlOv3I7tTwV2fQ,1324
|
324
|
+
orionis/test/contracts/history.py,sha256=v3vjWmvn73DF_C8Ur-aWdHUMrztX584mXKwYgsYQgCE,1435
|
325
|
+
orionis/test/contracts/test_unit.py,sha256=YWpzXhjD-f-IGncKkGyE9C7tYCFbt9mxZPw1O_d5HOE,7532
|
317
326
|
orionis/test/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
318
327
|
orionis/test/entities/test_result.py,sha256=hz_0NXX5lSVSf4OWhHktrn1kFD43WiL5HugNuHvYRtg,3035
|
319
328
|
orionis/test/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -326,20 +335,14 @@ orionis/test/exceptions/test_persistence_error.py,sha256=QJ2hdVAl6ngZEko0mSavU7n
|
|
326
335
|
orionis/test/exceptions/test_runtime_error.py,sha256=QahR7qHhvzR1I8CS-qWsxL_c0lSzWWE1rCiwf47YRQc,523
|
327
336
|
orionis/test/exceptions/test_value_error.py,sha256=XZmxiZmmMoYoh8O4V97GLB-Ooh-IRVagKW9bWPvtoeo,533
|
328
337
|
orionis/test/logs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
329
|
-
orionis/test/logs/history.py,sha256=
|
330
|
-
orionis/test/logs/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
331
|
-
orionis/test/logs/contracts/history.py,sha256=v3vjWmvn73DF_C8Ur-aWdHUMrztX584mXKwYgsYQgCE,1435
|
338
|
+
orionis/test/logs/history.py,sha256=eAEPWpubs1fFzL-0o8K82hd2lC0S98VOu1AEblCmjYI,13144
|
332
339
|
orionis/test/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
333
|
-
orionis/test/output/dumper.py,sha256=
|
334
|
-
orionis/test/output/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
335
|
-
orionis/test/output/contracts/dumper.py,sha256=5OqGc4GEXCXX76sCX185giQMyKwwZvlOv3I7tTwV2fQ,1324
|
340
|
+
orionis/test/output/dumper.py,sha256=q1_S5AYMce01ukPkEJ73gQT7gyLBK5XA1NyOeVINQMI,4280
|
336
341
|
orionis/test/suite/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
337
|
-
orionis/test/suite/test_unit.py,sha256=
|
338
|
-
orionis/test/suite/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
339
|
-
orionis/test/suite/contracts/test_unit.py,sha256=YWpzXhjD-f-IGncKkGyE9C7tYCFbt9mxZPw1O_d5HOE,7532
|
342
|
+
orionis/test/suite/test_unit.py,sha256=5UTdCYmD_Yz8asaBF54RHOx0kjwjLjEhkyPDoDIxk-k,57049
|
340
343
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
341
344
|
orionis/test/view/render.py,sha256=jXZkbITBknbUwm_mD8bcTiwLDvsFkrO9qrf0ZgPwqxc,4903
|
342
|
-
orionis-0.
|
345
|
+
orionis-0.309.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
343
346
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
344
347
|
tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
345
348
|
tests/example/test_example.py,sha256=kvWgiW3ADEZf718dGsMPtDh_rmOSx1ypEInKm7_6ZPQ,601
|
@@ -415,7 +418,7 @@ tests/services/inspection/dependencies/mocks/mock_user.py,sha256=RxATxe0-Vm4HfX5
|
|
415
418
|
tests/services/inspection/dependencies/mocks/mock_user_controller.py,sha256=P3sOUXVZ55auudwiNtvNCEQuTz0cgAZjvhicLZ4xaz4,1208
|
416
419
|
tests/services/inspection/dependencies/mocks/mock_users_permissions.py,sha256=oENXbS2qmQUudYSmnhB8fgHBqXZdbplplB-Y2nbx4hw,1388
|
417
420
|
tests/services/inspection/reflection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
418
|
-
tests/services/inspection/reflection/test_reflection_abstract.py,sha256=
|
421
|
+
tests/services/inspection/reflection/test_reflection_abstract.py,sha256=MbGDfCDkfj8wVJcyAlwV6na98JLzbGaYa3QjXR1alL8,27395
|
419
422
|
tests/services/inspection/reflection/test_reflection_concrete.py,sha256=5-iQh1whfpBa47jBWwtg-MIk6ysg92my5J9JdrTBm5E,44622
|
420
423
|
tests/services/inspection/reflection/test_reflection_instance.py,sha256=ZCFTLY_KtLAIq58PuDWak-T1c2PcCKiwTOdI9EDubww,46281
|
421
424
|
tests/services/inspection/reflection/test_reflection_module.py,sha256=Cl-3kWoJMQ2ufOO4VP6M28Tk6kmY4OhVEoW_b0wqw7Y,19849
|
@@ -438,8 +441,8 @@ tests/support/wrapper/test_services_wrapper_docdict.py,sha256=yeVwl-VcwkWSQYyxZu
|
|
438
441
|
tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
439
442
|
tests/testing/test_testing_result.py,sha256=MrGK3ZimedL0b5Ydu69Dg8Iul017AzLTm7VPxpXlpfU,4315
|
440
443
|
tests/testing/test_testing_unit.py,sha256=A6QkiOkP7GPC1Szh_GqsrV7GxjWjK8cIwFez6YfrzmM,7683
|
441
|
-
orionis-0.
|
442
|
-
orionis-0.
|
443
|
-
orionis-0.
|
444
|
-
orionis-0.
|
445
|
-
orionis-0.
|
444
|
+
orionis-0.309.0.dist-info/METADATA,sha256=NP8L6MenHHCxaOvsCVLicSJIrg3y27Vr5T12TgE8NDw,4772
|
445
|
+
orionis-0.309.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
446
|
+
orionis-0.309.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
447
|
+
orionis-0.309.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
448
|
+
orionis-0.309.0.dist-info/RECORD,,
|
@@ -7,7 +7,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
7
7
|
|
8
8
|
async def testGetClass(self):
|
9
9
|
"""
|
10
|
-
|
10
|
+
Verifies that getClass returns the correct class.
|
11
11
|
"""
|
12
12
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
13
13
|
cls = reflect.getClass()
|
@@ -15,7 +15,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
15
15
|
|
16
16
|
async def testGetClassName(self):
|
17
17
|
"""
|
18
|
-
|
18
|
+
Verifies that getClassName returns the class name.
|
19
19
|
"""
|
20
20
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
21
21
|
class_name = reflect.getClassName()
|
@@ -23,7 +23,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
23
23
|
|
24
24
|
async def testGetModuleName(self):
|
25
25
|
"""
|
26
|
-
|
26
|
+
Verifies that getModuleName returns the module name.
|
27
27
|
"""
|
28
28
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
29
29
|
module_name = reflect.getModuleName()
|
@@ -31,7 +31,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
31
31
|
|
32
32
|
async def testGetModuleWithClassName(self):
|
33
33
|
"""
|
34
|
-
|
34
|
+
Verifies that getModuleWithClassName returns the module and class name.
|
35
35
|
"""
|
36
36
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
37
37
|
module_with_class_name = reflect.getModuleWithClassName()
|
@@ -39,7 +39,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
39
39
|
|
40
40
|
async def testGetDocstring(self):
|
41
41
|
"""
|
42
|
-
|
42
|
+
Verifies that getDocstring returns the class docstring.
|
43
43
|
"""
|
44
44
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
45
45
|
docstring = reflect.getDocstring()
|
@@ -47,7 +47,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
47
47
|
|
48
48
|
async def testGetBaseClasses(self):
|
49
49
|
"""
|
50
|
-
|
50
|
+
Verifies that getBaseClasses returns the base classes.
|
51
51
|
"""
|
52
52
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
53
53
|
base_classes = reflect.getBaseClasses()
|
@@ -55,7 +55,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
55
55
|
|
56
56
|
async def testGetSourceCode(self):
|
57
57
|
"""
|
58
|
-
|
58
|
+
Verifies that getSourceCode returns the class source code.
|
59
59
|
"""
|
60
60
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
61
61
|
source_code = reflect.getSourceCode()
|
@@ -63,7 +63,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
63
63
|
|
64
64
|
async def testGetFile(self):
|
65
65
|
"""
|
66
|
-
|
66
|
+
Verifies that getFile returns the class file path.
|
67
67
|
"""
|
68
68
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
69
69
|
file_path = reflect.getFile()
|
@@ -71,7 +71,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
71
71
|
|
72
72
|
async def testGetAnnotations(self):
|
73
73
|
"""
|
74
|
-
|
74
|
+
Verifies that getAnnotations returns the class annotations.
|
75
75
|
"""
|
76
76
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
77
77
|
annotations = reflect.getAnnotations()
|
@@ -79,7 +79,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
79
79
|
|
80
80
|
async def testHasAttribute(self):
|
81
81
|
"""
|
82
|
-
|
82
|
+
Verifies that hasAttribute identifies existing attributes.
|
83
83
|
"""
|
84
84
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
85
85
|
self.assertTrue(reflect.hasAttribute('public_attr'))
|
@@ -87,7 +87,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
87
87
|
|
88
88
|
async def testGetAttribute(self):
|
89
89
|
"""
|
90
|
-
|
90
|
+
Verifies that getAttribute gets the correct value of an attribute.
|
91
91
|
"""
|
92
92
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
93
93
|
self.assertEqual(reflect.getAttribute('public_attr'), 42)
|
@@ -95,7 +95,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
95
95
|
|
96
96
|
async def testSetAttribute(self):
|
97
97
|
"""
|
98
|
-
|
98
|
+
Verifies that setAttribute modifies attributes correctly.
|
99
99
|
"""
|
100
100
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
101
101
|
self.assertTrue(reflect.setAttribute('name', 'Orionis Framework'))
|
@@ -107,7 +107,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
107
107
|
|
108
108
|
async def testRemoveAttribute(self):
|
109
109
|
"""
|
110
|
-
|
110
|
+
Verifies that removeAttribute removes attributes correctly.
|
111
111
|
"""
|
112
112
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
113
113
|
reflect.setAttribute('new_attr', 100)
|
@@ -116,7 +116,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
116
116
|
|
117
117
|
async def testGetAttributes(self):
|
118
118
|
"""
|
119
|
-
|
119
|
+
Verifies that getAttributes returns all attributes.
|
120
120
|
"""
|
121
121
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
122
122
|
attributes = reflect.getAttributes()
|
@@ -126,7 +126,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
126
126
|
|
127
127
|
async def testGetPublicAttributes(self):
|
128
128
|
"""
|
129
|
-
|
129
|
+
Verifies that getPublicAttributes returns only public attributes.
|
130
130
|
"""
|
131
131
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
132
132
|
public_attributes = reflect.getPublicAttributes()
|
@@ -136,7 +136,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
136
136
|
|
137
137
|
async def testGetProtectedAttributes(self):
|
138
138
|
"""
|
139
|
-
|
139
|
+
Verifies that getProtectedAttributes returns only protected attributes.
|
140
140
|
"""
|
141
141
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
142
142
|
protected_attributes = reflect.getProtectedAttributes()
|
@@ -146,7 +146,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
146
146
|
|
147
147
|
async def testGetPrivateAttributes(self):
|
148
148
|
"""
|
149
|
-
|
149
|
+
Verifies that getPrivateAttributes returns only private attributes.
|
150
150
|
"""
|
151
151
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
152
152
|
private_attributes = reflect.getPrivateAttributes()
|
@@ -156,7 +156,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
156
156
|
|
157
157
|
async def testGetDunderAttributes(self):
|
158
158
|
"""
|
159
|
-
|
159
|
+
Verifies that getDunderAttributes returns dunder attributes.
|
160
160
|
"""
|
161
161
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
162
162
|
dunder_attributes = reflect.getDunderAttributes()
|
@@ -164,7 +164,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
164
164
|
|
165
165
|
async def testGetMagicAttributes(self):
|
166
166
|
"""
|
167
|
-
|
167
|
+
Verifies that getMagicAttributes returns magic attributes.
|
168
168
|
"""
|
169
169
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
170
170
|
magic_attributes = reflect.getMagicAttributes()
|
@@ -172,7 +172,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
172
172
|
|
173
173
|
async def testHasMethod(self):
|
174
174
|
"""
|
175
|
-
|
175
|
+
Verifies that hasMethod identifies existing methods.
|
176
176
|
"""
|
177
177
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
178
178
|
self.assertTrue(reflect.hasMethod('instanceSyncMethod'))
|
@@ -180,31 +180,31 @@ class TestServiceReflectionAbstract(TestCase):
|
|
180
180
|
|
181
181
|
async def testCallMethod(self):
|
182
182
|
"""
|
183
|
-
|
183
|
+
Verifies that callMethod executes methods correctly.
|
184
184
|
"""
|
185
185
|
# No aplica para ReflectionAbstract, se omite
|
186
186
|
|
187
187
|
async def testCallAsyncMethod(self):
|
188
188
|
"""
|
189
|
-
|
189
|
+
Verifies that callMethod executes async methods correctly.
|
190
190
|
"""
|
191
191
|
# No aplica para ReflectionAbstract, se omite
|
192
192
|
|
193
193
|
async def testSetMethod(self):
|
194
194
|
"""
|
195
|
-
|
195
|
+
Verifies that setMethod assigns methods correctly.
|
196
196
|
"""
|
197
197
|
# No aplica para ReflectionAbstract, se omite
|
198
198
|
|
199
199
|
async def testRemoveMethod(self):
|
200
200
|
"""
|
201
|
-
|
201
|
+
Verifies that removeMethod removes methods correctly.
|
202
202
|
"""
|
203
203
|
# No aplica para ReflectionAbstract, se omite
|
204
204
|
|
205
205
|
async def testGetMethodSignature(self):
|
206
206
|
"""
|
207
|
-
|
207
|
+
Verifies that getMethodSignature returns the method signature.
|
208
208
|
"""
|
209
209
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
210
210
|
signature = reflect.getMethodSignature('instanceSyncMethod')
|
@@ -212,7 +212,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
212
212
|
|
213
213
|
async def testGetMethods(self):
|
214
214
|
"""
|
215
|
-
|
215
|
+
Verifies that getMethods returns the class methods.
|
216
216
|
"""
|
217
217
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
218
218
|
methods = reflect.getMethods()
|
@@ -221,7 +221,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
221
221
|
|
222
222
|
async def testGetPublicMethods(self):
|
223
223
|
"""
|
224
|
-
|
224
|
+
Verifies that getPublicMethods returns only public methods.
|
225
225
|
"""
|
226
226
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
227
227
|
public_methods = reflect.getPublicMethods()
|
@@ -231,7 +231,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
231
231
|
|
232
232
|
async def testGetPublicSyncMethods(self):
|
233
233
|
"""
|
234
|
-
|
234
|
+
Verifies that getPublicSyncMethods returns only public sync methods.
|
235
235
|
"""
|
236
236
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
237
237
|
public_sync_methods = reflect.getPublicSyncMethods()
|
@@ -241,7 +241,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
241
241
|
|
242
242
|
async def testGetPublicAsyncMethods(self):
|
243
243
|
"""
|
244
|
-
|
244
|
+
Verifies that getPublicAsyncMethods returns only public async methods.
|
245
245
|
"""
|
246
246
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
247
247
|
public_async_methods = reflect.getPublicAsyncMethods()
|
@@ -251,7 +251,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
251
251
|
|
252
252
|
async def testGetProtectedMethods(self):
|
253
253
|
"""
|
254
|
-
|
254
|
+
Verifies that getProtectedMethods returns only protected methods.
|
255
255
|
"""
|
256
256
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
257
257
|
protected_methods = reflect.getProtectedMethods()
|
@@ -261,7 +261,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
261
261
|
|
262
262
|
async def testGetProtectedSyncMethods(self):
|
263
263
|
"""
|
264
|
-
|
264
|
+
Verifies that getProtectedSyncMethods returns only protected sync methods.
|
265
265
|
"""
|
266
266
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
267
267
|
protected_sync_methods = reflect.getProtectedSyncMethods()
|
@@ -271,7 +271,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
271
271
|
|
272
272
|
async def testGetProtectedAsyncMethods(self):
|
273
273
|
"""
|
274
|
-
|
274
|
+
Verifies that getProtectedAsyncMethods returns only protected async methods.
|
275
275
|
"""
|
276
276
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
277
277
|
protected_async_methods = reflect.getProtectedAsyncMethods()
|
@@ -281,7 +281,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
281
281
|
|
282
282
|
async def testGetPrivateMethods(self):
|
283
283
|
"""
|
284
|
-
|
284
|
+
Verifies that getPrivateMethods returns only private methods.
|
285
285
|
"""
|
286
286
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
287
287
|
private_methods = reflect.getPrivateMethods()
|
@@ -291,7 +291,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
291
291
|
|
292
292
|
async def testGetPrivateSyncMethods(self):
|
293
293
|
"""
|
294
|
-
|
294
|
+
Verifies that getPrivateSyncMethods returns only private sync methods.
|
295
295
|
"""
|
296
296
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
297
297
|
private_sync_methods = reflect.getPrivateSyncMethods()
|
@@ -301,7 +301,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
301
301
|
|
302
302
|
async def testGetPrivateAsyncMethods(self):
|
303
303
|
"""
|
304
|
-
|
304
|
+
Verifies that getPrivateAsyncMethods returns only private async methods.
|
305
305
|
"""
|
306
306
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
307
307
|
private_async_methods = reflect.getPrivateAsyncMethods()
|
@@ -311,7 +311,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
311
311
|
|
312
312
|
async def testGetPublicClassMethods(self):
|
313
313
|
"""
|
314
|
-
|
314
|
+
Verifies that getPublicClassMethods returns only public class methods.
|
315
315
|
"""
|
316
316
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
317
317
|
public_class_methods = reflect.getPublicClassMethods()
|
@@ -321,7 +321,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
321
321
|
|
322
322
|
async def testGetPublicClassSyncMethods(self):
|
323
323
|
"""
|
324
|
-
|
324
|
+
Verifies that getPublicClassSyncMethods returns only public class sync methods.
|
325
325
|
"""
|
326
326
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
327
327
|
public_class_sync_methods = reflect.getPublicClassSyncMethods()
|
@@ -331,7 +331,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
331
331
|
|
332
332
|
async def testGetPublicClassAsyncMethods(self):
|
333
333
|
"""
|
334
|
-
|
334
|
+
Verifies that getPublicClassAsyncMethods returns only public class async methods.
|
335
335
|
"""
|
336
336
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
337
337
|
public_class_async_methods = reflect.getPublicClassAsyncMethods()
|
@@ -341,7 +341,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
341
341
|
|
342
342
|
async def testGetProtectedClassMethods(self):
|
343
343
|
"""
|
344
|
-
|
344
|
+
Verifies that getProtectedClassMethods returns only protected class methods.
|
345
345
|
"""
|
346
346
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
347
347
|
protected_class_methods = reflect.getProtectedClassMethods()
|
@@ -351,7 +351,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
351
351
|
|
352
352
|
async def testGetProtectedClassSyncMethods(self):
|
353
353
|
"""
|
354
|
-
|
354
|
+
Verifies that getProtectedClassSyncMethods returns only protected class sync methods.
|
355
355
|
"""
|
356
356
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
357
357
|
protected_class_sync_methods = reflect.getProtectedClassSyncMethods()
|
@@ -361,7 +361,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
361
361
|
|
362
362
|
async def testGetProtectedClassAsyncMethods(self):
|
363
363
|
"""
|
364
|
-
|
364
|
+
Verifies that getProtectedClassAsyncMethods returns only protected class async methods.
|
365
365
|
"""
|
366
366
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
367
367
|
protected_class_async_methods = reflect.getProtectedClassAsyncMethods()
|
@@ -371,7 +371,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
371
371
|
|
372
372
|
async def testGetPrivateClassMethods(self):
|
373
373
|
"""
|
374
|
-
|
374
|
+
Verifies that getPrivateClassMethods returns only private class methods.
|
375
375
|
"""
|
376
376
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
377
377
|
private_class_methods = reflect.getPrivateClassMethods()
|
@@ -381,7 +381,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
381
381
|
|
382
382
|
async def testGetPrivateClassSyncMethods(self):
|
383
383
|
"""
|
384
|
-
|
384
|
+
Verifies that getPrivateClassSyncMethods returns only private class sync methods.
|
385
385
|
"""
|
386
386
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
387
387
|
private_class_methods = reflect.getPrivateClassSyncMethods()
|
@@ -391,7 +391,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
391
391
|
|
392
392
|
async def testGetPrivateClassAsyncMethods(self):
|
393
393
|
"""
|
394
|
-
|
394
|
+
Verifies that getPrivateClassAsyncMethods returns only private class async methods.
|
395
395
|
"""
|
396
396
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
397
397
|
private_class_async_methods = reflect.getPrivateClassAsyncMethods()
|
@@ -401,7 +401,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
401
401
|
|
402
402
|
async def testGetPublicStaticMethods(self):
|
403
403
|
"""
|
404
|
-
|
404
|
+
Verifies that getPublicStaticMethods returns only public static methods.
|
405
405
|
"""
|
406
406
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
407
407
|
public_static_methods = reflect.getPublicStaticMethods()
|
@@ -411,7 +411,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
411
411
|
|
412
412
|
async def testGetPublicStaticSyncMethods(self):
|
413
413
|
"""
|
414
|
-
|
414
|
+
Verifies that getPublicStaticSyncMethods returns only public static sync methods.
|
415
415
|
"""
|
416
416
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
417
417
|
public_static_sync_methods = reflect.getPublicStaticSyncMethods()
|
@@ -421,7 +421,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
421
421
|
|
422
422
|
async def testGetPublicStaticAsyncMethods(self):
|
423
423
|
"""
|
424
|
-
|
424
|
+
Verifies that getPublicStaticAsyncMethods returns only public static async methods.
|
425
425
|
"""
|
426
426
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
427
427
|
public_static_async_methods = reflect.getPublicStaticAsyncMethods()
|
@@ -431,7 +431,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
431
431
|
|
432
432
|
async def testGetProtectedStaticMethods(self):
|
433
433
|
"""
|
434
|
-
|
434
|
+
Verifies that getProtectedStaticMethods returns only protected static methods.
|
435
435
|
"""
|
436
436
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
437
437
|
protected_static_methods = reflect.getProtectedStaticMethods()
|
@@ -441,7 +441,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
441
441
|
|
442
442
|
async def testGetProtectedStaticSyncMethods(self):
|
443
443
|
"""
|
444
|
-
|
444
|
+
Verifies that getProtectedStaticSyncMethods returns only protected static sync methods.
|
445
445
|
"""
|
446
446
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
447
447
|
protected_static_sync_methods = reflect.getProtectedStaticSyncMethods()
|
@@ -451,7 +451,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
451
451
|
|
452
452
|
async def testGetProtectedStaticAsyncMethods(self):
|
453
453
|
"""
|
454
|
-
|
454
|
+
Verifies that getProtectedStaticAsyncMethods returns only protected static async methods.
|
455
455
|
"""
|
456
456
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
457
457
|
protected_static_async_methods = reflect.getProtectedStaticAsyncMethods()
|
@@ -461,7 +461,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
461
461
|
|
462
462
|
async def testGetPrivateStaticMethods(self):
|
463
463
|
"""
|
464
|
-
|
464
|
+
Verifies that getPrivateStaticMethods returns only private static methods.
|
465
465
|
"""
|
466
466
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
467
467
|
private_static_methods = reflect.getPrivateStaticMethods()
|
@@ -471,7 +471,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
471
471
|
|
472
472
|
async def testGetPrivateStaticSyncMethods(self):
|
473
473
|
"""
|
474
|
-
|
474
|
+
Verifies that getPrivateStaticSyncMethods returns only private static sync methods.
|
475
475
|
"""
|
476
476
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
477
477
|
private_static_sync_methods = reflect.getPrivateStaticSyncMethods()
|
@@ -481,7 +481,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
481
481
|
|
482
482
|
async def testGetPrivateStaticAsyncMethods(self):
|
483
483
|
"""
|
484
|
-
|
484
|
+
Verifies that getPrivateStaticAsyncMethods returns only private static async methods.
|
485
485
|
"""
|
486
486
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
487
487
|
private_static_async_methods = reflect.getPrivateStaticAsyncMethods()
|
@@ -491,7 +491,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
491
491
|
|
492
492
|
async def testGetDunderMethods(self):
|
493
493
|
"""
|
494
|
-
|
494
|
+
Verifies that getDunderMethods returns dunder methods.
|
495
495
|
"""
|
496
496
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
497
497
|
dunder_methods = reflect.getDunderMethods()
|
@@ -499,7 +499,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
499
499
|
|
500
500
|
async def testGetMagicMethods(self):
|
501
501
|
"""
|
502
|
-
|
502
|
+
Verifies that getMagicMethods returns magic methods.
|
503
503
|
"""
|
504
504
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
505
505
|
magic_methods = reflect.getMagicMethods()
|
@@ -507,7 +507,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
507
507
|
|
508
508
|
async def testGetProperties(self):
|
509
509
|
"""
|
510
|
-
|
510
|
+
Verifies that getProperties returns the class properties.
|
511
511
|
"""
|
512
512
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
513
513
|
properties = reflect.getProperties()
|
@@ -517,7 +517,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
517
517
|
|
518
518
|
async def testGetPublicProperties(self):
|
519
519
|
"""
|
520
|
-
|
520
|
+
Verifies that getPublicProperties returns only public properties.
|
521
521
|
"""
|
522
522
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
523
523
|
public_properties = reflect.getPublicProperties()
|
@@ -527,7 +527,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
527
527
|
|
528
528
|
async def testGetProtectedProperties(self):
|
529
529
|
"""
|
530
|
-
|
530
|
+
Verifies that getProtectedProperties returns only protected properties.
|
531
531
|
"""
|
532
532
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
533
533
|
protected_properties = reflect.getProtectedProperties()
|
@@ -537,7 +537,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
537
537
|
|
538
538
|
async def testGetPrivateProperties(self):
|
539
539
|
"""
|
540
|
-
|
540
|
+
Verifies that getPrivateProperties returns only private properties.
|
541
541
|
"""
|
542
542
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
543
543
|
private_properties = reflect.getPrivateProperties()
|
@@ -547,7 +547,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
547
547
|
|
548
548
|
async def testGetPropertySignature(self):
|
549
549
|
"""
|
550
|
-
|
550
|
+
Verifies that getPropertySignature returns the property signature.
|
551
551
|
"""
|
552
552
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
553
553
|
signature = reflect.getPropertySignature('computed_public_property')
|
@@ -555,7 +555,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
555
555
|
|
556
556
|
async def testGetPropertyDocstring(self):
|
557
557
|
"""
|
558
|
-
|
558
|
+
Verifies that getPropertyDocstring returns the property docstring.
|
559
559
|
"""
|
560
560
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
561
561
|
docstring = reflect.getPropertyDocstring('computed_public_property')
|
@@ -563,7 +563,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
563
563
|
|
564
564
|
async def testGetConstructorDependencies(self):
|
565
565
|
"""
|
566
|
-
|
566
|
+
Verifies that getConstructorDependencies returns the constructor dependencies.
|
567
567
|
"""
|
568
568
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
569
569
|
dependencies = reflect.getConstructorDependencies()
|
@@ -571,7 +571,7 @@ class TestServiceReflectionAbstract(TestCase):
|
|
571
571
|
|
572
572
|
async def testGetMethodDependencies(self):
|
573
573
|
"""
|
574
|
-
|
574
|
+
Verifies that getMethodDependencies returns the method dependencies.
|
575
575
|
"""
|
576
576
|
reflect = ReflectionAbstract(AbstractFakeClass)
|
577
577
|
method_deps = reflect.getMethodDependencies('instanceSyncMethod')
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|