orionis 0.233.0__py3-none-any.whl → 0.235.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/framework.py +1 -1
- orionis/luminate/support/introspection/__init__.py +7 -0
- orionis/luminate/support/introspection/dependencies/contracts/reflect_dependencies.py +43 -0
- orionis/luminate/support/introspection/dependencies/entities/__init__.py +0 -0
- orionis/luminate/support/introspection/dependencies/entities/class_dependencies.py +10 -0
- orionis/luminate/support/introspection/dependencies/entities/method_dependencies.py +10 -0
- orionis/luminate/support/introspection/dependencies/entities/resolved_dependencies.py +12 -0
- orionis/luminate/support/introspection/dependencies/reflect_dependencies.py +176 -0
- orionis/luminate/support/introspection/helpers/__init__.py +0 -0
- orionis/luminate/support/introspection/helpers/functions.py +281 -0
- orionis/luminate/support/{inspection/reflexion_abstract.py → introspection/reflect_abstract.py} +1 -1
- orionis/luminate/support/introspection/reflect_decorators.py +335 -0
- orionis/luminate/support/{inspection → introspection}/reflection.py +21 -27
- orionis/luminate/support/introspection/reflection_instance.py +801 -0
- orionis/luminate/support/{inspection → introspection}/reflexion_concrete_with_abstract.py +2 -2
- orionis/luminate/support/{inspection → introspection}/reflexion_instance_with_abstract.py +4 -4
- orionis/luminate/test/__init__.py +13 -0
- orionis/luminate/test/cases/__init__.py +0 -0
- orionis/luminate/test/cases/test_async.py +32 -0
- orionis/luminate/test/cases/test_case.py +23 -0
- orionis/luminate/test/cases/test_sync.py +10 -0
- orionis/luminate/test/core/__init__.py +0 -0
- orionis/luminate/test/core/contracts/__init__.py +0 -0
- orionis/luminate/test/{test_suite.py → core/test_suite.py} +2 -2
- orionis/luminate/test/{test_unit.py → core/test_unit.py} +4 -4
- orionis/luminate/test/entities/__init__.py +0 -0
- orionis/luminate/test/{test_result.py → entities/test_result.py} +2 -2
- orionis/luminate/test/enums/__init__.py +0 -0
- orionis/luminate/test/exceptions/__init__.py +0 -0
- orionis/luminate/test/output/__init__.py +0 -0
- orionis/luminate/test/{test_std_out.py → output/test_std_out.py} +1 -1
- {orionis-0.233.0.dist-info → orionis-0.235.0.dist-info}/METADATA +1 -1
- {orionis-0.233.0.dist-info → orionis-0.235.0.dist-info}/RECORD +64 -52
- tests/example/test_example.py +1 -1
- tests/support/adapters/test_doct_dict.py +1 -1
- tests/support/async_io/test_async_coroutine.py +1 -1
- tests/support/environment/test_env.py +1 -1
- tests/support/inspection/test_reflection_abstract.py +20 -2
- tests/support/inspection/test_reflection_concrete.py +3 -3
- tests/support/inspection/test_reflection_concrete_with_abstract.py +2 -2
- tests/support/inspection/test_reflection_instance.py +41 -17
- tests/support/inspection/test_reflection_instance_with_abstract.py +2 -2
- tests/support/parsers/test_exception_parser.py +1 -1
- tests/support/path/test_resolver.py +6 -6
- tests/support/patterns/test_singleton.py +1 -1
- tests/support/standard/test_std.py +1 -1
- orionis/luminate/support/inspection/functions.py +0 -263
- orionis/luminate/support/inspection/reflexion_instance.py +0 -580
- orionis/luminate/test/test_case.py +0 -62
- orionis/static/favicon/OrionisFrameworkFavicon.png +0 -0
- orionis/static/logos/OrionisFramework.jpg +0 -0
- orionis/static/logos/OrionisFramework.png +0 -0
- orionis/static/logos/OrionisFramework.psd +0 -0
- orionis/static/logos/OrionisFramework2.png +0 -0
- orionis/static/logos/OrionisFramework3.png +0 -0
- /orionis/luminate/support/{inspection → introspection}/container_integrity.py +0 -0
- /orionis/luminate/support/{inspection → introspection/contracts}/__init__.py +0 -0
- /orionis/luminate/support/{inspection → introspection}/contracts/reflection.py +0 -0
- /orionis/luminate/support/{inspection → introspection}/contracts/reflexion_abstract.py +0 -0
- /orionis/luminate/support/{inspection/contracts → introspection/dependencies}/__init__.py +0 -0
- /orionis/luminate/{test → support/introspection/dependencies}/contracts/__init__.py +0 -0
- /orionis/luminate/support/{inspection → introspection}/reflexion_concrete.py +0 -0
- /orionis/luminate/support/{inspection → introspection}/reflexion_module.py +0 -0
- /orionis/luminate/support/{inspection → introspection}/reflexion_module_with_classname.py +0 -0
- /orionis/luminate/test/{contracts → core/contracts}/test_suite.py +0 -0
- /orionis/luminate/test/{contracts → core/contracts}/test_unit.py +0 -0
- /orionis/luminate/test/{test_status.py → enums/test_status.py} +0 -0
- /orionis/luminate/test/{test_exception.py → exceptions/test_exception.py} +0 -0
- /orionis/luminate/test/{contracts → output/contracts}/test_std_out.py +0 -0
- {orionis-0.233.0.dist-info → orionis-0.235.0.dist-info}/LICENCE +0 -0
- {orionis-0.233.0.dist-info → orionis-0.235.0.dist-info}/WHEEL +0 -0
- {orionis-0.233.0.dist-info → orionis-0.235.0.dist-info}/entry_points.txt +0 -0
- {orionis-0.233.0.dist-info → orionis-0.235.0.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
import abc
|
2
2
|
import inspect
|
3
3
|
from typing import Any, Dict, List, Tuple, Type, TypeVar, Union
|
4
|
-
from orionis.luminate.support.
|
5
|
-
from orionis.luminate.support.
|
4
|
+
from orionis.luminate.support.introspection.reflect_abstract import ReflexionAbstract
|
5
|
+
from orionis.luminate.support.introspection.reflexion_concrete import ReflexionConcrete
|
6
6
|
|
7
7
|
T = TypeVar('T')
|
8
8
|
ABC = TypeVar('ABC', bound=abc.ABC)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import abc
|
2
2
|
import inspect
|
3
3
|
from typing import Any, Dict, List, Tuple, Type, TypeVar, Union
|
4
|
-
from orionis.luminate.support.
|
5
|
-
from orionis.luminate.support.
|
4
|
+
from orionis.luminate.support.introspection.reflect_abstract import ReflexionAbstract
|
5
|
+
from orionis.luminate.support.introspection.reflection_instance import ReflectionInstance
|
6
6
|
|
7
7
|
T = TypeVar('T')
|
8
8
|
ABC = TypeVar('ABC', bound=abc.ABC)
|
@@ -35,11 +35,11 @@ class ReflexionInstanceWithAbstract:
|
|
35
35
|
def __init__(self, instance: Any, abstract: Type[ABC]) -> None:
|
36
36
|
self._instance = instance
|
37
37
|
self._abstract = abstract
|
38
|
-
self._concrete_reflexion =
|
38
|
+
self._concrete_reflexion = ReflectionInstance(instance)
|
39
39
|
self._abstract_reflexion = ReflexionAbstract(abstract)
|
40
40
|
|
41
41
|
@property
|
42
|
-
def concrete(self) ->
|
42
|
+
def concrete(self) -> ReflectionInstance:
|
43
43
|
"""Access the concrete instance reflection helper."""
|
44
44
|
return self._concrete_reflexion
|
45
45
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
from orionis.luminate.test.cases.test_async import AsyncTestCase
|
2
|
+
from orionis.luminate.test.cases.test_case import TestCase
|
3
|
+
from orionis.luminate.test.cases.test_sync import SyncTestCase
|
4
|
+
from orionis.luminate.test.core.test_suite import TestSuite
|
5
|
+
from orionis.luminate.test.core.test_unit import UnitTest
|
6
|
+
|
7
|
+
__all__ = [
|
8
|
+
"TestSuite",
|
9
|
+
"UnitTest",
|
10
|
+
"AsyncTestCase",
|
11
|
+
"TestCase",
|
12
|
+
"SyncTestCase",
|
13
|
+
]
|
File without changes
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import unittest
|
2
|
+
from orionis.luminate.test.output.test_std_out import TestStdOut
|
3
|
+
|
4
|
+
class AsyncTestCase(unittest.IsolatedAsyncioTestCase, TestStdOut):
|
5
|
+
"""
|
6
|
+
AsyncTestCase is a test case class designed for asynchronous unit testing.
|
7
|
+
It inherits from `unittest.IsolatedAsyncioTestCase` to provide support for
|
8
|
+
async test methods and `TestStdOut` for additional functionality.
|
9
|
+
Methods
|
10
|
+
-------
|
11
|
+
asyncSetUp()
|
12
|
+
Asynchronous setup method called before each test. It ensures that the
|
13
|
+
parent class's asyncSetUp method is invoked to initialize any required
|
14
|
+
resources.
|
15
|
+
asyncTearDown()
|
16
|
+
Asynchronous teardown method called after each test. It ensures that the
|
17
|
+
parent class's asyncTearDown method is invoked to clean up any resources
|
18
|
+
used during the test.
|
19
|
+
"""
|
20
|
+
async def asyncSetUp(self):
|
21
|
+
"""
|
22
|
+
Asynchronous setup method called before each test.
|
23
|
+
It ensures that the parent class's asyncSetUp method is invoked to initialize
|
24
|
+
"""
|
25
|
+
await super().asyncSetUp()
|
26
|
+
|
27
|
+
async def asyncTearDown(self):
|
28
|
+
"""
|
29
|
+
Asynchronous teardown method called after each test.
|
30
|
+
It ensures that the parent class's asyncTearDown method is invoked to clean up
|
31
|
+
"""
|
32
|
+
await super().asyncTearDown()
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import unittest
|
2
|
+
from orionis.luminate.test.output.test_std_out import TestStdOut
|
3
|
+
|
4
|
+
class TestCase(unittest.IsolatedAsyncioTestCase, TestStdOut):
|
5
|
+
"""
|
6
|
+
TestCase is a base class for unit tests that provides support for asynchronous
|
7
|
+
testing using `unittest.IsolatedAsyncioTestCase` and additional functionality
|
8
|
+
from `TestStdOut`."""
|
9
|
+
async def asyncSetUp(self):
|
10
|
+
"""
|
11
|
+
Asynchronous setup method called before each test.
|
12
|
+
It ensures that the parent class's asyncSetUp method is invoked to initialize
|
13
|
+
any required resources.
|
14
|
+
"""
|
15
|
+
await super().asyncSetUp()
|
16
|
+
|
17
|
+
async def asyncTearDown(self):
|
18
|
+
"""
|
19
|
+
Asynchronous teardown method called after each test.
|
20
|
+
It ensures that the parent class's asyncTearDown method is invoked to clean up
|
21
|
+
any resources used during the test.
|
22
|
+
"""
|
23
|
+
await super().asyncTearDown()
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import unittest
|
2
|
+
from orionis.luminate.test.output.test_std_out import TestStdOut
|
3
|
+
|
4
|
+
class SyncTestCase(unittest.TestCase, TestStdOut):
|
5
|
+
"""
|
6
|
+
SyncTestCase is a test case class designed for synchronous unit testing.
|
7
|
+
It inherits from `unittest.TestCase` to provide support for standard test methods
|
8
|
+
and `TestStdOut` for additional functionality.
|
9
|
+
"""
|
10
|
+
pass
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import re
|
2
2
|
from os import walk
|
3
|
-
from orionis.luminate.test.contracts.test_suite import ITestSuite
|
4
|
-
from orionis.luminate.test.test_unit import UnitTest as UnitTestClass
|
3
|
+
from orionis.luminate.test.core.contracts.test_suite import ITestSuite
|
4
|
+
from orionis.luminate.test.core.test_unit import UnitTest as UnitTestClass
|
5
5
|
|
6
6
|
class TestSuite(ITestSuite):
|
7
7
|
"""
|
@@ -7,10 +7,10 @@ from contextlib import redirect_stdout, redirect_stderr
|
|
7
7
|
from dataclasses import asdict
|
8
8
|
from typing import Any, Dict, List, Optional, Tuple
|
9
9
|
from orionis.luminate.console.output.console import Console
|
10
|
-
from orionis.luminate.test.contracts.test_unit import IUnitTest
|
11
|
-
from orionis.luminate.test.test_exception import OrionisTestFailureException
|
12
|
-
from orionis.luminate.test.test_result import TestResult
|
13
|
-
from orionis.luminate.test.test_status import TestStatus
|
10
|
+
from orionis.luminate.test.core.contracts.test_unit import IUnitTest
|
11
|
+
from orionis.luminate.test.exceptions.test_exception import OrionisTestFailureException
|
12
|
+
from orionis.luminate.test.entities.test_result import TestResult
|
13
|
+
from orionis.luminate.test.enums.test_status import TestStatus
|
14
14
|
|
15
15
|
class UnitTest(IUnitTest):
|
16
16
|
"""
|
File without changes
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from dataclasses import dataclass
|
2
2
|
from typing import Optional
|
3
|
-
from orionis.luminate.test.test_status import TestStatus
|
3
|
+
from orionis.luminate.test.enums.test_status import TestStatus
|
4
4
|
|
5
|
-
@dataclass
|
5
|
+
@dataclass(frozen=True)
|
6
6
|
class TestResult:
|
7
7
|
"""
|
8
8
|
Data class containing detailed information about a test result.
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import os
|
2
2
|
import sys
|
3
3
|
from orionis.luminate.console.output.console import Console
|
4
|
-
from orionis.luminate.test.contracts.test_std_out import ITestStdOut
|
4
|
+
from orionis.luminate.test.output.contracts.test_std_out import ITestStdOut
|
5
5
|
|
6
6
|
class TestStdOut(ITestStdOut):
|
7
7
|
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
orionis/console.py,sha256=4gYWxf0fWYgJ4RKwARvnTPh06FL3GJ6SAZ7R2NzOICw,1342
|
3
|
-
orionis/framework.py,sha256=
|
3
|
+
orionis/framework.py,sha256=AQlcpFBST_73jM6cBIxZNbiPpse9YZFTADdCrTHAHXQ,1458
|
4
4
|
orionis/installer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
orionis/installer/manager.py,sha256=Li4TVziRXWfum02xNG4JHwbnLk-u8xzHjdqKz-D894k,2755
|
6
6
|
orionis/installer/output.py,sha256=7O9qa2xtXMB_4ZvVi-Klneom9YazwygAd_4uYAoxhbU,8548
|
@@ -166,20 +166,30 @@ orionis/luminate/support/environment/functions.py,sha256=L6gL4z3c89ZU17IWvOXyQ2_
|
|
166
166
|
orionis/luminate/support/environment/helper.py,sha256=G1670w1xkI1pj-rW_inv6D3XmU4oliwnWnrJO5CBm2E,818
|
167
167
|
orionis/luminate/support/environment/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
168
168
|
orionis/luminate/support/environment/contracts/env.py,sha256=buJfzebBOUuq2CnhQCWlnJuzJAEo06-S0_SPR4N_mOY,1647
|
169
|
-
orionis/luminate/support/
|
170
|
-
orionis/luminate/support/
|
171
|
-
orionis/luminate/support/
|
172
|
-
orionis/luminate/support/
|
173
|
-
orionis/luminate/support/
|
174
|
-
orionis/luminate/support/
|
175
|
-
orionis/luminate/support/
|
176
|
-
orionis/luminate/support/
|
177
|
-
orionis/luminate/support/
|
178
|
-
orionis/luminate/support/
|
179
|
-
orionis/luminate/support/
|
180
|
-
orionis/luminate/support/
|
181
|
-
orionis/luminate/support/
|
182
|
-
orionis/luminate/support/
|
169
|
+
orionis/luminate/support/introspection/__init__.py,sha256=jYIlYv5a8cmifzet7ozzxt2fJEmqJSamlJFTbWhYeUU,227
|
170
|
+
orionis/luminate/support/introspection/container_integrity.py,sha256=6d9FsGk-Rm1AXgqBS3Nww49dR7n1ptXTTNyGUuBHgNY,10111
|
171
|
+
orionis/luminate/support/introspection/reflect_abstract.py,sha256=vcPy5r33WeyTzFEXGMmGeI7C23_S4nGS_VXBBODAfng,10851
|
172
|
+
orionis/luminate/support/introspection/reflect_decorators.py,sha256=fnxnkEcRSU8TxDGdjCNlvXMNHEKzW7AwO_aPOVCbs9w,11548
|
173
|
+
orionis/luminate/support/introspection/reflection.py,sha256=z9yTQvMKNGjvWh59HH-AEwPXq-3s4hT4ciXbw4FIfKo,7823
|
174
|
+
orionis/luminate/support/introspection/reflection_instance.py,sha256=XQnNTYuN9aLWyTJIu-sc1OYbaj3XtihOIeVuSHVIiQE,24862
|
175
|
+
orionis/luminate/support/introspection/reflexion_concrete.py,sha256=1ISuy2L6Oser-EhmpuGALmbauh7Z-X8Rx1YYgt5CabQ,7543
|
176
|
+
orionis/luminate/support/introspection/reflexion_concrete_with_abstract.py,sha256=9DYldzJZcx1fgdDkZsMj63zLVSTPYlhygphRjAtJY3k,7484
|
177
|
+
orionis/luminate/support/introspection/reflexion_instance_with_abstract.py,sha256=h4E_PxCR7F2ImjVfJFyDPgHA2SSUeQnrbmdUVvuavYo,9414
|
178
|
+
orionis/luminate/support/introspection/reflexion_module.py,sha256=OgBXpqNJHkmq-gX4rqFStv-WVNe9R38RsgUgfHpak8k,405
|
179
|
+
orionis/luminate/support/introspection/reflexion_module_with_classname.py,sha256=YZHZI0XUZkSWnq9wrGxrIXtI64nY9yVSZoMe7PZXq8Y,620
|
180
|
+
orionis/luminate/support/introspection/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
181
|
+
orionis/luminate/support/introspection/contracts/reflection.py,sha256=zF9OLiEdgWJtJWvfrmWCQhbDjgYmm-QvAkFv9OLb3rE,4959
|
182
|
+
orionis/luminate/support/introspection/contracts/reflexion_abstract.py,sha256=u8SiBTvcWltwR9g64akCNCzsTq8YkkZIPPEPwbyroQU,6396
|
183
|
+
orionis/luminate/support/introspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
184
|
+
orionis/luminate/support/introspection/dependencies/reflect_dependencies.py,sha256=Udg4eUDehJiJNaiZOwGvpomNA2OvEQRwbKQk6OPb1sw,7027
|
185
|
+
orionis/luminate/support/introspection/dependencies/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
186
|
+
orionis/luminate/support/introspection/dependencies/contracts/reflect_dependencies.py,sha256=RnwRP_3uBM0ivE3Y9bgx3chGSmTFhCAcVtKucwEOs0U,1688
|
187
|
+
orionis/luminate/support/introspection/dependencies/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
188
|
+
orionis/luminate/support/introspection/dependencies/entities/class_dependencies.py,sha256=aUr8AIWn5R2X_kpdBOnin_dbg7NkkGcxUSZXosx9Xqk,257
|
189
|
+
orionis/luminate/support/introspection/dependencies/entities/method_dependencies.py,sha256=ZYmCrvhtTeIORFpNuK4h_CgnT2AEpf1MmGnBH0w_roo,263
|
190
|
+
orionis/luminate/support/introspection/dependencies/entities/resolved_dependencies.py,sha256=yhnJC7lwdTtemRSIjxc2HschBOUp6Nf2rNky6zI5oos,284
|
191
|
+
orionis/luminate/support/introspection/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
192
|
+
orionis/luminate/support/introspection/helpers/functions.py,sha256=JC2_t732LqcJn3zoRZwFAqcm6kT6HvsJmupysjH3aiY,8537
|
183
193
|
orionis/luminate/support/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
184
194
|
orionis/luminate/support/parsers/exception_parser.py,sha256=6MTeql76c1Muh9Nn-jz2jJdzb9_F7SLdoFjqBD5F8lY,3642
|
185
195
|
orionis/luminate/support/parsers/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -194,45 +204,47 @@ orionis/luminate/support/standard/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
194
204
|
orionis/luminate/support/standard/std.py,sha256=t6dkZxOmSsu3yaIwlvRwdTcV-6KS8lZE5YuYv7FpCb0,3573
|
195
205
|
orionis/luminate/support/standard/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
196
206
|
orionis/luminate/support/standard/contracts/std.py,sha256=x9sVir2yg4hve56cCklIdVSr8utruIO_sUdlTNfZ1Ds,3109
|
197
|
-
orionis/luminate/test/__init__.py,sha256=
|
198
|
-
orionis/luminate/test/
|
199
|
-
orionis/luminate/test/
|
200
|
-
orionis/luminate/test/
|
201
|
-
orionis/luminate/test/
|
202
|
-
orionis/luminate/test/
|
203
|
-
orionis/luminate/test/test_suite.py,sha256=
|
204
|
-
orionis/luminate/test/test_unit.py,sha256=
|
205
|
-
orionis/luminate/test/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
206
|
-
orionis/luminate/test/contracts/
|
207
|
-
orionis/luminate/test/contracts/
|
208
|
-
orionis/luminate/test/
|
207
|
+
orionis/luminate/test/__init__.py,sha256=mvFsupq5S36CmD7PJwDqz39ZO9_Cfdac6ihK8kFpmiE,421
|
208
|
+
orionis/luminate/test/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
209
|
+
orionis/luminate/test/cases/test_async.py,sha256=1wbeGkzlD4Q_e1BsSzhkiEjffIWx7d173l0Sx500FjQ,1335
|
210
|
+
orionis/luminate/test/cases/test_case.py,sha256=YhhPxOBd-_eZz8xBtbcKtnQxEhEU151IHc3bL6aCSiA,922
|
211
|
+
orionis/luminate/test/cases/test_sync.py,sha256=XnA3eC6xvfBXD3h7xqt6db5rIhYbhSlYaUWotatBxdg,380
|
212
|
+
orionis/luminate/test/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
213
|
+
orionis/luminate/test/core/test_suite.py,sha256=fY_fWDDKGgN2i-SFZ__kT4yVx2VewTZyPRm6Nz5YWok,3292
|
214
|
+
orionis/luminate/test/core/test_unit.py,sha256=J1h2gu8SH0Ss4Iw5BZMkOQyj3XiyOBXyT4n_B6AE0jo,12189
|
215
|
+
orionis/luminate/test/core/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
216
|
+
orionis/luminate/test/core/contracts/test_suite.py,sha256=TOIys-Z1HllUJe-qMY9mOfZGiZPXlKRuAZtJ-B2iDz8,1375
|
217
|
+
orionis/luminate/test/core/contracts/test_unit.py,sha256=CD4FHslmWt1yPbfBhZBsG1QPzGmwKQPkL5cFvJgeilo,2624
|
218
|
+
orionis/luminate/test/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
219
|
+
orionis/luminate/test/entities/test_result.py,sha256=RhnB6m7iJNsygmrhkwa04ZY2dx9vWTmIMKhr24Tg_VU,1018
|
220
|
+
orionis/luminate/test/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
221
|
+
orionis/luminate/test/enums/test_status.py,sha256=vNKRmp1lud_ZGTayf3A8wO_0vEYdFABy_oMw-RcEc1c,673
|
222
|
+
orionis/luminate/test/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
223
|
+
orionis/luminate/test/exceptions/test_exception.py,sha256=21PILTXnMuL5-wT3HGKjIklt8VeIYDcQDN346i-BbJw,1336
|
224
|
+
orionis/luminate/test/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
225
|
+
orionis/luminate/test/output/test_std_out.py,sha256=IPYaCH_iwDjdc-dz99cR7X1U7fnGo5uBekF8RUfyANQ,2858
|
226
|
+
orionis/luminate/test/output/contracts/test_std_out.py,sha256=ryvMotj-rpVKOsyGqW0B0IEHuF8DdQj1Rn0K8xiyBOE,489
|
209
227
|
orionis/static/ascii/icon.ascii,sha256=IgrlVjcYxcCrr0cJuJkOnEz0aEdAQBTyLzO5ainKsWc,398
|
210
228
|
orionis/static/ascii/info.ascii,sha256=HF_o2eXaiw5iqcOhHfnPByn5GJ_O2eBwSK3IpTfYOwY,457
|
211
229
|
orionis/static/bg/galaxy.jpg,sha256=_FuPghOe9LBrIWv1eKZ9fiZR72sEz5obvXGDnD7MzTc,172244
|
212
|
-
orionis/static/favicon/OrionisFrameworkFavicon.png,sha256=bvkLzn0PfYHY9f-AfgRzclt4RNSFaKhMCH_TgwqsMKU,31301
|
213
|
-
orionis/static/logos/OrionisFramework.jpg,sha256=ezZlrcoknKvtl6YFwSIVfecRFm9fjAMKXHmuabMpImM,716918
|
214
|
-
orionis/static/logos/OrionisFramework.png,sha256=nmS5HoYu4NwmrcTtVj8gtjutgnW8EstgRkli_Ks1Chs,291370
|
215
|
-
orionis/static/logos/OrionisFramework.psd,sha256=QFMRe_HENaIgQi9VWMvNV3OHKOFofFGOGwQk6fqebrU,2904849
|
216
|
-
orionis/static/logos/OrionisFramework2.png,sha256=Z_-yBHNSo33QeSTyi-8GfiFozdRqUomIZ28bGx6Py5c,256425
|
217
|
-
orionis/static/logos/OrionisFramework3.png,sha256=BPG9ZB58vDALavI9OMmr8Ym0DQa44s5NL_3M4M6dIYs,193734
|
218
230
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
219
231
|
tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
220
|
-
tests/example/test_example.py,sha256=
|
232
|
+
tests/example/test_example.py,sha256=pzVMpvFXxmSep0FeRiZQqMKV8dlf1lM_7cLUAkc5YTI,576
|
221
233
|
tests/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
222
234
|
tests/support/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
223
|
-
tests/support/adapters/test_doct_dict.py,sha256=
|
235
|
+
tests/support/adapters/test_doct_dict.py,sha256=YOYXdYZngSwZfesqTDfYtwb1I_HaUKyfruxz6Njli1c,796
|
224
236
|
tests/support/adapters/fakes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
225
237
|
tests/support/adapters/fakes/fake_dict.py,sha256=KD48_xBc8pqj3LAe1_v1esu-1Fdz8fL5eZ70LSqkcbg,393
|
226
238
|
tests/support/async_io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
227
|
-
tests/support/async_io/test_async_coroutine.py,sha256=
|
239
|
+
tests/support/async_io/test_async_coroutine.py,sha256=rMpjIH3DDjMDIqZkaDGv1q1yGlDI3vjfbnAGLZKkAp8,1522
|
228
240
|
tests/support/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
229
|
-
tests/support/environment/test_env.py,sha256=
|
241
|
+
tests/support/environment/test_env.py,sha256=fcMyvGnDnP2qamhG7yDRN9MyUDjeYN-oSmlno2mc7dQ,2652
|
230
242
|
tests/support/inspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
231
|
-
tests/support/inspection/test_reflection_abstract.py,sha256=
|
232
|
-
tests/support/inspection/test_reflection_concrete.py,sha256=
|
233
|
-
tests/support/inspection/test_reflection_concrete_with_abstract.py,sha256=
|
234
|
-
tests/support/inspection/test_reflection_instance.py,sha256=
|
235
|
-
tests/support/inspection/test_reflection_instance_with_abstract.py,sha256=
|
243
|
+
tests/support/inspection/test_reflection_abstract.py,sha256=447L7TCQ5-08QKWuzpIlx0EZ9b9LjEOpR5ZMU5N2Kz0,9340
|
244
|
+
tests/support/inspection/test_reflection_concrete.py,sha256=OXUG4EDW0Xa8c7TWeUuGdwRc3eQ4hoP67ZGbevg8BdU,6778
|
245
|
+
tests/support/inspection/test_reflection_concrete_with_abstract.py,sha256=7QPHwZZOpBaRTlpiXWIQ4DPYQBlnD1-XxNMtjEfMPu4,4673
|
246
|
+
tests/support/inspection/test_reflection_instance.py,sha256=XIPGzQUFXewkcTNVT1vvmDBgx0oqOfJ4dHavOF_Jb-k,14015
|
247
|
+
tests/support/inspection/test_reflection_instance_with_abstract.py,sha256=GmY2W9S84uFCBIRsEjAAVhWbqWR7ZgOPD-AN8sAmhSM,4082
|
236
248
|
tests/support/inspection/fakes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
237
249
|
tests/support/inspection/fakes/fake_reflection_abstract.py,sha256=7qtz44brfFzE4oNYi9kIsvdWP79nP2FnzSz-0bU__pg,5045
|
238
250
|
tests/support/inspection/fakes/fake_reflection_concrete.py,sha256=j6gzsxE3xq5oJ30H_Hm1RsUwEY3jOYBu4sclxtD1ayo,1047
|
@@ -240,18 +252,18 @@ tests/support/inspection/fakes/fake_reflection_concrete_with_abstract.py,sha256=
|
|
240
252
|
tests/support/inspection/fakes/fake_reflection_instance.py,sha256=P5lSFiGPLLAPOIRmw4VE3YWctxlqmXARRiWMSGLrg3E,1382
|
241
253
|
tests/support/inspection/fakes/fake_reflection_instance_with_abstract.py,sha256=SfL8FuFmr650RlzXTrP4tGMfsPVZLhOxVnBXu_g1POg,1471
|
242
254
|
tests/support/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
243
|
-
tests/support/parsers/test_exception_parser.py,sha256=
|
255
|
+
tests/support/parsers/test_exception_parser.py,sha256=0z3wanBtrLyGa6T9z2u5juqy8F5ZEHhwa3zOwiQIPGk,2353
|
244
256
|
tests/support/parsers/fakes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
245
257
|
tests/support/parsers/fakes/fake_custom_error.py,sha256=BD8tQPhmIYFYVcaeMpEQ6uK1d6pcU4EGbwRkVfCZp7c,802
|
246
258
|
tests/support/path/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
247
|
-
tests/support/path/test_resolver.py,sha256=
|
259
|
+
tests/support/path/test_resolver.py,sha256=tcgKwxBRIWK6JEK18Va99GEOui3XTWoCh8x2n1MDkGQ,1238
|
248
260
|
tests/support/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
249
|
-
tests/support/patterns/test_singleton.py,sha256=
|
261
|
+
tests/support/patterns/test_singleton.py,sha256=I0Cawq0C5mV5v2I1mLmxJeXw9Vt3B1iq1RgLePsG30I,624
|
250
262
|
tests/support/standard/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
251
|
-
tests/support/standard/test_std.py,sha256=
|
252
|
-
orionis-0.
|
253
|
-
orionis-0.
|
254
|
-
orionis-0.
|
255
|
-
orionis-0.
|
256
|
-
orionis-0.
|
257
|
-
orionis-0.
|
263
|
+
tests/support/standard/test_std.py,sha256=g_iU9Pa6W9XDnxwdLB_NAmD60547VAReXe_Vhyrhf4M,2032
|
264
|
+
orionis-0.235.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
265
|
+
orionis-0.235.0.dist-info/METADATA,sha256=MFM5Mfynnri0silIoZwOaM5uc4Znj3Z_2NMctYCeQjo,3003
|
266
|
+
orionis-0.235.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
267
|
+
orionis-0.235.0.dist-info/entry_points.txt,sha256=a_e0faeSqyUCVZd0MqljQ2oaHHdlsz6g9sU_bMqi5zQ,49
|
268
|
+
orionis-0.235.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
269
|
+
orionis-0.235.0.dist-info/RECORD,,
|
tests/example/test_example.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
from abc import ABC
|
2
|
-
from orionis.luminate.support.
|
3
|
-
from orionis.luminate.test
|
2
|
+
from orionis.luminate.support.introspection.reflection import Reflection
|
3
|
+
from orionis.luminate.test import TestCase
|
4
4
|
from tests.support.inspection.fakes.fake_reflection_abstract import FakeAbstractClass
|
5
5
|
|
6
6
|
class TestReflexionAbstract(TestCase):
|
@@ -41,6 +41,24 @@ class TestReflexionAbstract(TestCase):
|
|
41
41
|
self.assertTrue(module_name == 'tests.support.inspection.fakes.fake_reflection_abstract')
|
42
42
|
self.assertIsInstance(module_name, str)
|
43
43
|
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
44
62
|
async def testReflectionAbstractGetAbstractMethods(self):
|
45
63
|
"""Test getAbstractMethods() method.
|
46
64
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
from orionis.luminate.support.
|
2
|
-
from orionis.luminate.support.
|
3
|
-
from orionis.luminate.test
|
1
|
+
from orionis.luminate.support.introspection.reflection import Reflection
|
2
|
+
from orionis.luminate.support.introspection.reflexion_concrete import ReflexionConcrete
|
3
|
+
from orionis.luminate.test import TestCase
|
4
4
|
from tests.support.inspection.fakes.fake_reflection_concrete import BaseExample, FakeExample
|
5
5
|
|
6
6
|
class TestReflectionConcrete(TestCase):
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from orionis.luminate.support.
|
2
|
-
from orionis.luminate.test
|
1
|
+
from orionis.luminate.support.introspection.reflexion_concrete_with_abstract import ReflexionConcreteWithAbstract
|
2
|
+
from orionis.luminate.test import TestCase
|
3
3
|
from tests.support.inspection.fakes.fake_reflection_concrete_with_abstract import AbstractService, PartiallyImplementedService
|
4
4
|
|
5
5
|
class TestReflexionConcreteWithAbstract(TestCase):
|
@@ -1,8 +1,7 @@
|
|
1
|
-
from orionis.luminate.support.inspection.reflection import Reflection
|
2
|
-
from orionis.luminate.support.inspection.reflexion_instance import ReflexionInstance
|
3
|
-
from orionis.luminate.test.test_case import TestCase
|
4
|
-
from tests.support.inspection.fakes.fake_reflection_instance import BaseFakeClass, FakeClass
|
5
1
|
import asyncio
|
2
|
+
from orionis.luminate.support.introspection import Reflection, ReflectionInstance
|
3
|
+
from orionis.luminate.test import TestCase
|
4
|
+
from tests.support.inspection.fakes.fake_reflection_instance import BaseFakeClass, FakeClass
|
6
5
|
|
7
6
|
class TestReflectionInstance(TestCase):
|
8
7
|
"""
|
@@ -15,8 +14,8 @@ class TestReflectionInstance(TestCase):
|
|
15
14
|
Reflection.instance(str)
|
16
15
|
|
17
16
|
async def testReflectionInstance(self):
|
18
|
-
"""Verify Reflection.instance returns an instance of
|
19
|
-
self.assertIsInstance(Reflection.instance(FakeClass()),
|
17
|
+
"""Verify Reflection.instance returns an instance of ReflectionInstance."""
|
18
|
+
self.assertIsInstance(Reflection.instance(FakeClass()), ReflectionInstance)
|
20
19
|
|
21
20
|
async def testReflectionInstanceGetClassName(self):
|
22
21
|
"""Check that getClassName returns the correct class name."""
|
@@ -33,6 +32,14 @@ class TestReflectionInstance(TestCase):
|
|
33
32
|
reflex = Reflection.instance(FakeClass())
|
34
33
|
self.assertEqual(reflex.getModuleName(), "tests.support.inspection.fakes.fake_reflection_instance")
|
35
34
|
|
35
|
+
async def testReflectionInstanceGetAllAttributes(self):
|
36
|
+
"""Check that getAllAttributes returns all attributes of the class."""
|
37
|
+
reflex = Reflection.instance(FakeClass())
|
38
|
+
attributes = reflex.getAllAttributes()
|
39
|
+
self.assertTrue("public_attr" in attributes.public)
|
40
|
+
self.assertTrue("__private_attr" in attributes.private)
|
41
|
+
self.assertTrue("_protected_attr" in attributes.protected)
|
42
|
+
|
36
43
|
async def testReflectionInstanceGetAttributes(self):
|
37
44
|
"""Check that getAttributes returns all attributes of the class."""
|
38
45
|
reflex = Reflection.instance(FakeClass())
|
@@ -60,6 +67,15 @@ class TestReflectionInstance(TestCase):
|
|
60
67
|
attributes = reflex.getPrivateAttributes()
|
61
68
|
self.assertTrue("__private_attr" in attributes)
|
62
69
|
|
70
|
+
async def testReflectionInstanceGetAllMethods(self):
|
71
|
+
"""Check that getAllMethods returns all methods of the class."""
|
72
|
+
reflex = Reflection.instance(FakeClass())
|
73
|
+
methods = reflex.getAllMethods()
|
74
|
+
self.assertTrue("__privateMethod" in methods.private)
|
75
|
+
self.assertTrue("_protectedMethod" in methods.protected)
|
76
|
+
self.assertTrue("asyncMethod" in methods.asynchronous)
|
77
|
+
self.assertTrue("classMethod" in methods.class_methods)
|
78
|
+
|
63
79
|
async def testReflectionInstanceGetMethods(self):
|
64
80
|
"""Ensure getMethods returns all methods of the class."""
|
65
81
|
reflex = Reflection.instance(FakeClass())
|
@@ -94,7 +110,6 @@ class TestReflectionInstance(TestCase):
|
|
94
110
|
methods = reflex.getSyncMethods()
|
95
111
|
self.assertTrue("__privateMethod" in methods)
|
96
112
|
self.assertTrue("_protectedMethod" in methods)
|
97
|
-
self.assertTrue("classMethod" in methods)
|
98
113
|
self.assertTrue("instanceMethod" in methods)
|
99
114
|
|
100
115
|
async def testReflectionInstanceGetClassMethods(self):
|
@@ -122,6 +137,12 @@ class TestReflectionInstance(TestCase):
|
|
122
137
|
methods = reflex.getSyncStaticMethods()
|
123
138
|
self.assertTrue("staticMethod" in methods)
|
124
139
|
|
140
|
+
async def testReflectionInstanceGetAllProperties(self):
|
141
|
+
"""Check that getAllProperties returns all properties of the class."""
|
142
|
+
reflex = Reflection.instance(FakeClass())
|
143
|
+
properties = reflex.getAllProperties()
|
144
|
+
self.assertTrue("computed_property" in properties.keys())
|
145
|
+
|
125
146
|
async def testReflectionInstanceGetPropertyNames(self):
|
126
147
|
"""Check that getPropertyNames returns all property names."""
|
127
148
|
reflex = Reflection.instance(FakeClass())
|
@@ -134,15 +155,23 @@ class TestReflectionInstance(TestCase):
|
|
134
155
|
property_value = reflex.getProperty("computed_property")
|
135
156
|
self.assertEqual(property_value, "Value: 42")
|
136
157
|
|
158
|
+
async def testReflectionInstanceGetPropertyDoc(self):
|
159
|
+
"""Check that getPropertyDoc returns the correct property docstring."""
|
160
|
+
reflex = Reflection.instance(FakeClass())
|
161
|
+
doc = reflex.getPropertyDoc("computed_property")
|
162
|
+
self.assertIn("A computed property", doc)
|
163
|
+
|
164
|
+
async def testReflectionInstanceGetPropertySignature(self):
|
165
|
+
"""Ensure getPropertySignature returns the correct property signature."""
|
166
|
+
reflex = Reflection.instance(FakeClass())
|
167
|
+
signature = reflex.getPropertySignature("computed_property")
|
168
|
+
self.assertEqual(str(signature), "(self) -> str")
|
169
|
+
|
137
170
|
async def testReflectionInstanceCallMethod(self):
|
138
171
|
"""Ensure callMethod correctly invokes a method with arguments."""
|
139
172
|
reflex = Reflection.instance(FakeClass())
|
140
|
-
|
141
|
-
# Execute Sync Method
|
142
173
|
result = reflex.callMethod("instanceMethod", 1, 2)
|
143
174
|
self.assertEqual(result, 3)
|
144
|
-
|
145
|
-
# Execute Async Method
|
146
175
|
result = await reflex.callMethod("asyncMethod")
|
147
176
|
self.assertEqual(result, "This is async")
|
148
177
|
|
@@ -158,7 +187,7 @@ class TestReflectionInstance(TestCase):
|
|
158
187
|
"""Check that getDocstring returns the correct class docstring."""
|
159
188
|
reflex = Reflection.instance(FakeClass())
|
160
189
|
docstring = reflex.getDocstring()
|
161
|
-
self.assertIn("This is a test class for
|
190
|
+
self.assertIn("This is a test class for", docstring)
|
162
191
|
|
163
192
|
async def testReflectionInstanceGetBaseClasses(self):
|
164
193
|
"""Ensure getBaseClasses returns the correct base classes."""
|
@@ -256,8 +285,3 @@ class TestReflectionInstance(TestCase):
|
|
256
285
|
reflex.removeMacro("asyncMacro")
|
257
286
|
with self.assertRaises(Exception):
|
258
287
|
await reflex.callMethod("asyncMacro", reflex._instance, 3)
|
259
|
-
|
260
|
-
def testReflectionInstanceGetPropertySignature(self):
|
261
|
-
"""Ensure getPropertySignature returns the correct property signature."""
|
262
|
-
signature = Reflection.instance(FakeClass()).getPropertySignature('computed_property')
|
263
|
-
self.assertEqual(str(signature), '(self) -> str')
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from orionis.luminate.support.
|
2
|
-
from orionis.luminate.test
|
1
|
+
from orionis.luminate.support.introspection.reflexion_instance_with_abstract import ReflexionInstanceWithAbstract
|
2
|
+
from orionis.luminate.test import TestCase
|
3
3
|
from tests.support.inspection.fakes.fake_reflection_instance_with_abstract import FakeDataProcessor, IDataProcessor
|
4
4
|
|
5
5
|
class TestReflexionInstanceWithAbstract(TestCase):
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from orionis.luminate.support.parsers.exception_parser import ExceptionParser
|
2
|
-
from orionis.luminate.test
|
2
|
+
from orionis.luminate.test import TestCase
|
3
3
|
from tests.support.parsers.fakes.fake_custom_error import CustomError
|
4
4
|
|
5
5
|
class TestsExceptionParser(TestCase):
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from orionis.luminate.support.paths.resolver import Resolver
|
2
|
-
from orionis.luminate.test
|
2
|
+
from orionis.luminate.test import TestCase
|
3
3
|
|
4
4
|
class TestsResolver(TestCase):
|
5
5
|
|
@@ -15,19 +15,19 @@ class TestsResolver(TestCase):
|
|
15
15
|
"""
|
16
16
|
Test the Resolver class for a valid file path.
|
17
17
|
"""
|
18
|
-
path = Resolver().relativePath('orionis/luminate/test/
|
19
|
-
self.assertTrue(path.endswith('
|
18
|
+
path = Resolver().relativePath('orionis/luminate/test/__init__.py').toString()
|
19
|
+
self.assertTrue(path.endswith('__init__.py'))
|
20
20
|
|
21
21
|
async def testOtherBasePath(self):
|
22
22
|
"""
|
23
23
|
Test the Resolver class for a different base path.
|
24
24
|
"""
|
25
|
-
path = Resolver('orionis/luminate/test').relativePath('
|
26
|
-
self.assertTrue(path.endswith('
|
25
|
+
path = Resolver('orionis/luminate/test').relativePath('__init__.py').toString()
|
26
|
+
self.assertTrue(path.endswith('__init__.py'))
|
27
27
|
|
28
28
|
async def testEqualOutputString(self):
|
29
29
|
"""
|
30
30
|
Test the Resolver class for a string representation of the resolved path.
|
31
31
|
"""
|
32
|
-
path = Resolver().relativePath('orionis/luminate/test/
|
32
|
+
path = Resolver().relativePath('orionis/luminate/test/__init__.py')
|
33
33
|
self.assertEqual(path.toString(), str(path))
|