orionis 0.347.0__py3-none-any.whl → 0.362.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/__init__.py +0 -70
- orionis/container/container.py +2 -2
- orionis/container/context/__init__.py +0 -9
- orionis/container/contracts/__init__.py +0 -9
- orionis/container/entities/__init__.py +0 -7
- orionis/container/entities/binding.py +1 -1
- orionis/container/enums/__init__.py +0 -2
- orionis/container/exceptions/__init__.py +0 -2
- orionis/container/facades/__init__.py +0 -7
- orionis/container/facades/facade.py +1 -2
- orionis/container/providers/__init__.py +0 -7
- orionis/container/resolver/__init__.py +0 -0
- orionis/container/{resolver.py → resolver/resolver.py} +1 -1
- orionis/container/validators/__init__.py +0 -23
- orionis/container/validators/implements.py +8 -1
- orionis/container/validators/is_abstract_class.py +1 -1
- orionis/container/validators/is_callable.py +1 -1
- orionis/container/validators/is_concrete_class.py +1 -1
- orionis/container/validators/is_instance.py +1 -1
- orionis/container/validators/is_not_subclass.py +1 -1
- orionis/container/validators/is_subclass.py +1 -1
- orionis/container/validators/is_valid_alias.py +1 -1
- orionis/container/validators/lifetime.py +1 -1
- orionis/foundation/__init__.py +0 -52
- orionis/foundation/config/__init__.py +0 -128
- orionis/foundation/config/app/__init__.py +0 -10
- orionis/foundation/config/app/entities/__init__.py +0 -7
- orionis/foundation/config/app/entities/app.py +2 -3
- orionis/foundation/config/app/enums/__init__.py +1 -3
- orionis/foundation/config/auth/__init__.py +0 -7
- orionis/foundation/config/auth/entities/__init__.py +0 -7
- orionis/foundation/config/cache/__init__.py +0 -11
- orionis/foundation/config/cache/entities/__init__.py +0 -11
- orionis/foundation/config/cache/entities/cache.py +2 -2
- orionis/foundation/config/cache/entities/file.py +1 -1
- orionis/foundation/config/cache/entities/stores.py +1 -1
- orionis/foundation/config/cache/enums/__init__.py +1 -3
- orionis/foundation/config/cors/__init__.py +0 -7
- orionis/foundation/config/cors/entities/__init__.py +0 -7
- orionis/foundation/config/cors/entities/cors.py +1 -1
- orionis/foundation/config/database/__init__.py +0 -61
- orionis/foundation/config/database/entities/__init__.py +0 -17
- orionis/foundation/config/database/entities/connections.py +1 -1
- orionis/foundation/config/database/entities/database.py +1 -1
- orionis/foundation/config/database/entities/mysql.py +6 -4
- orionis/foundation/config/database/entities/oracle.py +5 -3
- orionis/foundation/config/database/entities/pgsql.py +5 -3
- orionis/foundation/config/database/entities/sqlite.py +5 -3
- orionis/foundation/config/database/enums/__init__.py +8 -8
- orionis/foundation/config/filesystems/__init__.py +0 -17
- orionis/foundation/config/filesystems/entitites/__init__.py +0 -15
- orionis/foundation/config/filesystems/entitites/aws.py +1 -1
- orionis/foundation/config/filesystems/entitites/disks.py +1 -1
- orionis/foundation/config/filesystems/entitites/filesystems.py +1 -1
- orionis/foundation/config/filesystems/entitites/local.py +1 -1
- orionis/foundation/config/filesystems/entitites/public.py +1 -1
- orionis/foundation/config/logging/__init__.py +0 -30
- orionis/foundation/config/logging/entities/__init__.py +0 -21
- orionis/foundation/config/logging/entities/channels.py +1 -1
- orionis/foundation/config/logging/entities/chunked.py +2 -2
- orionis/foundation/config/logging/entities/daily.py +2 -2
- orionis/foundation/config/logging/entities/hourly.py +2 -2
- orionis/foundation/config/logging/entities/logging.py +1 -1
- orionis/foundation/config/logging/entities/monthly.py +2 -2
- orionis/foundation/config/logging/entities/stack.py +2 -2
- orionis/foundation/config/logging/entities/weekly.py +2 -2
- orionis/foundation/config/logging/enums/__init__.py +0 -2
- orionis/foundation/config/mail/__init__.py +0 -15
- orionis/foundation/config/mail/entities/__init__.py +0 -13
- orionis/foundation/config/mail/entities/file.py +1 -1
- orionis/foundation/config/mail/entities/mail.py +1 -1
- orionis/foundation/config/mail/entities/mailers.py +1 -1
- orionis/foundation/config/mail/entities/smtp.py +1 -1
- orionis/foundation/config/queue/__init__.py +0 -20
- orionis/foundation/config/queue/entities/__init__.py +0 -11
- orionis/foundation/config/queue/entities/brokers.py +1 -1
- orionis/foundation/config/queue/entities/database.py +2 -2
- orionis/foundation/config/queue/entities/queue.py +1 -1
- orionis/foundation/config/queue/enums/__init__.py +1 -3
- orionis/foundation/config/roots/__init__.py +0 -7
- orionis/foundation/config/roots/paths.py +1 -1
- orionis/foundation/config/session/__init__.py +0 -20
- orionis/foundation/config/session/entities/__init__.py +0 -7
- orionis/foundation/config/session/entities/session.py +2 -2
- orionis/foundation/config/session/enums/__init__.py +1 -3
- orionis/foundation/config/session/helpers/__init__.py +0 -7
- orionis/foundation/config/startup.py +1 -1
- orionis/foundation/config/testing/__init__.py +0 -14
- orionis/foundation/config/testing/entities/__init__.py +0 -7
- orionis/foundation/config/testing/entities/testing.py +1 -1
- orionis/foundation/config/testing/enums/__init__.py +1 -3
- orionis/foundation/contracts/__init__.py +0 -7
- orionis/foundation/exceptions/__init__.py +2 -4
- orionis/foundation/providers/__init__.py +0 -0
- orionis/metadata/__init__.py +0 -46
- orionis/metadata/framework.py +1 -1
- orionis/patterns/singleton/__init__.py +0 -7
- orionis/services/asynchrony/__init__.py +0 -7
- orionis/services/asynchrony/contracts/__init__.py +0 -7
- orionis/services/asynchrony/coroutines.py +2 -2
- orionis/services/asynchrony/exceptions/__init__.py +1 -3
- orionis/services/environment/__init__.py +0 -7
- orionis/services/environment/contracts/__init__.py +0 -9
- orionis/services/environment/{core/dot_env.py → dot_env.py} +3 -2
- orionis/services/environment/env.py +2 -2
- orionis/services/environment/exceptions/__init__.py +0 -9
- orionis/services/environment/{types/env_types.py → types.py} +2 -1
- orionis/services/introspection/__init__.py +0 -68
- orionis/services/introspection/abstract/__init__.py +0 -7
- orionis/services/introspection/callables/__init__.py +0 -7
- orionis/services/introspection/concretes/__init__.py +0 -7
- orionis/services/introspection/contracts/__init__.py +0 -15
- orionis/services/introspection/dependencies/__init__.py +0 -22
- orionis/services/introspection/dependencies/entities/__init__.py +0 -13
- orionis/services/introspection/exceptions/__init__.py +0 -11
- orionis/services/introspection/instances/__init__.py +0 -7
- orionis/services/introspection/modules/__init__.py +0 -7
- orionis/services/log/__init__.py +0 -7
- orionis/services/parsers/__init__.py +0 -20
- orionis/services/parsers/contracts/__init__.py +0 -7
- orionis/services/parsers/exceptions/__init__.py +0 -7
- orionis/services/paths/__init__.py +0 -24
- orionis/services/paths/contracts/__init__.py +0 -7
- orionis/services/paths/exceptions/__init__.py +0 -9
- orionis/services/system/__init__.py +0 -17
- orionis/services/system/contracts/__init__.py +0 -9
- orionis/support/standard/__init__.py +0 -9
- orionis/support/standard/contracts/__init__.py +0 -5
- orionis/support/standard/exceptions/__init__.py +0 -5
- orionis/support/standard/std.py +2 -2
- orionis/support/wrapper/__init__.py +0 -5
- orionis/support/wrapper/dicts/__init__.py +0 -5
- orionis/test/__init__.py +0 -63
- orionis/test/cases/__init__.py +0 -9
- orionis/test/cases/test_async.py +1 -1
- orionis/test/cases/test_case.py +1 -1
- orionis/test/cases/test_sync.py +1 -1
- orionis/test/contracts/__init__.py +0 -11
- orionis/test/contracts/{unit_test.py → test_unit.py} +2 -2
- orionis/test/entities/__init__.py +0 -5
- orionis/test/entities/test_result.py +1 -1
- orionis/test/enums/__init__.py +0 -7
- orionis/test/exceptions/__init__.py +0 -13
- orionis/test/logs/__init__.py +0 -5
- orionis/test/logs/history.py +4 -3
- orionis/test/output/__init__.py +0 -7
- orionis/test/output/dumper.py +2 -2
- orionis/test/output/printer.py +3 -3
- orionis/test/suite/__init__.py +0 -5
- orionis/test/suite/{unit_test.py → test_unit.py} +10 -7
- orionis/test/test_suite.py +1 -1
- orionis/test/view/__init__.py +0 -5
- orionis/test/view/render.py +2 -2
- orionis/unittesting.py +64 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/METADATA +1 -1
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/RECORD +221 -222
- tests/example/test_example.py +1 -1
- tests/foundation/config/app/test_foundation_config_app.py +1 -1
- tests/foundation/config/auth/test_foundation_config_auth.py +1 -1
- tests/foundation/config/cache/test_foundation_config_cache.py +1 -1
- tests/foundation/config/cache/test_foundation_config_cache_file.py +1 -1
- tests/foundation/config/cache/test_foundation_config_cache_stores.py +1 -1
- tests/foundation/config/cors/test_foundation_config_cors.py +1 -1
- tests/foundation/config/database/test_foundation_config_database.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_connections.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_mysql.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_oracle.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_pgsql.py +1 -1
- tests/foundation/config/database/test_foundation_config_database_sqlite.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems_aws.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems_disks.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems_local.py +1 -1
- tests/foundation/config/filesystems/test_foundation_config_filesystems_public.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_channels.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_chunked.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_daily.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_hourly.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_monthly.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_stack.py +1 -1
- tests/foundation/config/logging/test_foundation_config_logging_weekly.py +1 -1
- tests/foundation/config/mail/test_foundation_config_mail.py +1 -1
- tests/foundation/config/mail/test_foundation_config_mail_file.py +1 -1
- tests/foundation/config/mail/test_foundation_config_mail_mailers.py +1 -1
- tests/foundation/config/mail/test_foundation_config_mail_smtp.py +1 -1
- tests/foundation/config/queue/test_foundation_config_queue.py +1 -1
- tests/foundation/config/queue/test_foundation_config_queue_brokers.py +1 -1
- tests/foundation/config/queue/test_foundation_config_queue_database.py +1 -1
- tests/foundation/config/root/test_foundation_config_root_paths.py +1 -1
- tests/foundation/config/session/test_foundation_config_session.py +1 -1
- tests/foundation/config/startup/test_foundation_config_startup.py +1 -1
- tests/foundation/config/testing/test_foundation_config_testing.py +1 -1
- tests/foundation/exceptions/test_foundation_config_exceptions.py +1 -1
- tests/metadata/test_metadata_framework.py +2 -2
- tests/metadata/test_metadata_package.py +1 -1
- tests/patterns/singleton/test_patterns_singleton.py +2 -2
- tests/services/asynchrony/test_services_asynchrony_coroutine.py +3 -3
- tests/services/environment/test_services_environment.py +3 -3
- tests/services/inspection/dependencies/test_reflect_dependencies.py +1 -1
- tests/services/inspection/reflection/test_reflection_abstract.py +1 -1
- tests/services/inspection/reflection/test_reflection_callable.py +1 -1
- tests/services/inspection/reflection/test_reflection_concrete.py +1 -1
- tests/services/inspection/reflection/test_reflection_instance.py +1 -1
- tests/services/inspection/reflection/test_reflection_module.py +1 -1
- tests/services/inspection/test_reflection.py +1 -1
- tests/services/parsers/test_services_parser_exceptions.py +1 -1
- tests/services/path/test_services_resolver.py +1 -1
- tests/services/system/test_services_system_imports.py +1 -1
- tests/services/system/test_services_system_workers.py +1 -1
- tests/support/standard/test_services_std.py +2 -2
- tests/support/wrapper/test_services_wrapper_docdict.py +2 -2
- tests/testing/test_testing_result.py +1 -1
- tests/testing/test_testing_unit.py +2 -1
- orionis/services/environment/core/__init__.py +0 -7
- orionis/services/environment/helpers/__init__.py +0 -7
- orionis/services/environment/helpers/functions.py +0 -21
- orionis/services/environment/types/__init__.py +0 -7
- /orionis/foundation/exceptions/{value_error.py → value.py} +0 -0
- /orionis/patterns/singleton/{meta_class.py → meta.py} +0 -0
- /orionis/services/asynchrony/exceptions/{coroutine_exception.py → exception.py} +0 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/WHEEL +0 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/top_level.txt +0 -0
- {orionis-0.347.0.dist-info → orionis-0.362.0.dist-info}/zip-safe +0 -0
tests/example/test_example.py
CHANGED
|
@@ -2,7 +2,7 @@ from orionis.foundation.config.app.entities.app import App
|
|
|
2
2
|
from orionis.foundation.config.app.enums.ciphers import Cipher
|
|
3
3
|
from orionis.foundation.config.app.enums.environments import Environments
|
|
4
4
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
5
|
-
from orionis.
|
|
5
|
+
from orionis.unittesting import TestCase
|
|
6
6
|
|
|
7
7
|
class TestFoundationConfigApp(TestCase):
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from orionis.
|
|
1
|
+
from orionis.unittesting import TestCase
|
|
2
2
|
from orionis.foundation.config.cache.entities.cache import Cache
|
|
3
3
|
from orionis.foundation.config.cache.enums.drivers import Drivers
|
|
4
4
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from orionis.foundation.config.cache.entities.file import File
|
|
2
2
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
3
|
-
from orionis.
|
|
3
|
+
from orionis.unittesting import TestCase
|
|
4
4
|
|
|
5
5
|
class TestFoundationConfigCacheFile(TestCase):
|
|
6
6
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.cache.entities.stores import Stores
|
|
2
2
|
from orionis.foundation.config.cache.entities.file import File
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigCacheStores(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from orionis.foundation.config.cors.entities.cors import Cors
|
|
2
2
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
3
|
-
from orionis.
|
|
3
|
+
from orionis.unittesting import TestCase
|
|
4
4
|
|
|
5
5
|
class TestFoundationConfigCors(TestCase):
|
|
6
6
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.database.entities.database import Database
|
|
2
2
|
from orionis.foundation.config.database.entities.connections import Connections
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigDatabase(TestCase):
|
|
7
7
|
"""
|
|
@@ -4,7 +4,7 @@ from orionis.foundation.config.database.entities.oracle import Oracle
|
|
|
4
4
|
from orionis.foundation.config.database.entities.pgsql import PGSQL
|
|
5
5
|
from orionis.foundation.config.database.entities.sqlite import SQLite
|
|
6
6
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
7
|
-
from orionis.
|
|
7
|
+
from orionis.unittesting import TestCase
|
|
8
8
|
|
|
9
9
|
class TestFoundationConfigDatabaseConnections(TestCase):
|
|
10
10
|
"""
|
|
@@ -3,7 +3,7 @@ from orionis.foundation.config.database.enums.mysql_charsets import MySQLCharset
|
|
|
3
3
|
from orionis.foundation.config.database.enums.mysql_collations import MySQLCollation
|
|
4
4
|
from orionis.foundation.config.database.enums.mysql_engine import MySQLEngine
|
|
5
5
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
6
|
-
from orionis.
|
|
6
|
+
from orionis.unittesting import TestCase
|
|
7
7
|
|
|
8
8
|
class TestFoundationConfigDatabaseMysql(TestCase):
|
|
9
9
|
"""
|
|
@@ -2,7 +2,7 @@ from orionis.foundation.config.database.entities.oracle import Oracle
|
|
|
2
2
|
from orionis.foundation.config.database.enums.oracle_encoding import OracleEncoding
|
|
3
3
|
from orionis.foundation.config.database.enums.oracle_nencoding import OracleNencoding
|
|
4
4
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
5
|
-
from orionis.
|
|
5
|
+
from orionis.unittesting import TestCase
|
|
6
6
|
|
|
7
7
|
class TestFoundationConfigDatabaseOracle(TestCase):
|
|
8
8
|
"""
|
|
@@ -2,7 +2,7 @@ from orionis.foundation.config.database.entities.pgsql import PGSQL
|
|
|
2
2
|
from orionis.foundation.config.database.enums.pgsql_charsets import PGSQLCharset
|
|
3
3
|
from orionis.foundation.config.database.enums.pgsql_mode import PGSQLSSLMode
|
|
4
4
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
5
|
-
from orionis.
|
|
5
|
+
from orionis.unittesting import TestCase
|
|
6
6
|
|
|
7
7
|
class TestFoundationConfigDatabasePgsql(TestCase):
|
|
8
8
|
"""
|
|
@@ -3,7 +3,7 @@ from orionis.foundation.config.database.enums.sqlite_foreign_key import SQLiteFo
|
|
|
3
3
|
from orionis.foundation.config.database.enums.sqlite_journal import SQLiteJournalMode
|
|
4
4
|
from orionis.foundation.config.database.enums.sqlite_synchronous import SQLiteSynchronous
|
|
5
5
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
6
|
-
from orionis.
|
|
6
|
+
from orionis.unittesting import TestCase
|
|
7
7
|
|
|
8
8
|
class TestFoundationConfigDatabaseSqlite(TestCase):
|
|
9
9
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.filesystems.entitites.disks import Disks
|
|
2
2
|
from orionis.foundation.config.filesystems.entitites.filesystems import Filesystems
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigFilesystems(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
2
2
|
from orionis.foundation.config.filesystems.entitites.aws import S3
|
|
3
|
-
from orionis.
|
|
3
|
+
from orionis.unittesting import TestCase
|
|
4
4
|
|
|
5
5
|
class TestFoundationConfigFilesystemsAws(TestCase):
|
|
6
6
|
"""
|
|
@@ -3,7 +3,7 @@ from orionis.foundation.config.filesystems.entitites.disks import Disks
|
|
|
3
3
|
from orionis.foundation.config.filesystems.entitites.local import Local
|
|
4
4
|
from orionis.foundation.config.filesystems.entitites.public import Public
|
|
5
5
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
6
|
-
from orionis.
|
|
6
|
+
from orionis.unittesting import TestCase
|
|
7
7
|
|
|
8
8
|
class TestFoundationConfigFilesystemsDisks(TestCase):
|
|
9
9
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from orionis.foundation.config.filesystems.entitites.local import Local
|
|
2
2
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
3
|
-
from orionis.
|
|
3
|
+
from orionis.unittesting import TestCase
|
|
4
4
|
|
|
5
5
|
class TestFoundationConfigFilesystemsLocal(TestCase):
|
|
6
6
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
2
2
|
from orionis.foundation.config.filesystems.entitites.public import Public
|
|
3
|
-
from orionis.
|
|
3
|
+
from orionis.unittesting import TestCase
|
|
4
4
|
|
|
5
5
|
class TestFoundationConfigFilesystemsPublic(TestCase):
|
|
6
6
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.logging.entities.logging import Logging
|
|
2
2
|
from orionis.foundation.config.logging.entities.channels import Channels
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigLogging(TestCase):
|
|
7
7
|
"""
|
|
@@ -6,7 +6,7 @@ from orionis.foundation.config.logging.entities.weekly import Weekly
|
|
|
6
6
|
from orionis.foundation.config.logging.entities.monthly import Monthly
|
|
7
7
|
from orionis.foundation.config.logging.entities.chunked import Chunked
|
|
8
8
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
9
|
-
from orionis.
|
|
9
|
+
from orionis.unittesting import TestCase
|
|
10
10
|
|
|
11
11
|
class TestFoundationConfigLoggingChannels(TestCase):
|
|
12
12
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.logging.entities.chunked import Chunked
|
|
2
2
|
from orionis.foundation.config.logging.enums.levels import Level
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigLoggingChunked(TestCase):
|
|
7
7
|
"""
|
|
@@ -2,7 +2,7 @@ from datetime import time
|
|
|
2
2
|
from orionis.foundation.config.logging.entities.daily import Daily
|
|
3
3
|
from orionis.foundation.config.logging.enums.levels import Level
|
|
4
4
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
5
|
-
from orionis.
|
|
5
|
+
from orionis.unittesting import TestCase
|
|
6
6
|
|
|
7
7
|
class TestFoundationConfigLoggingDaily(TestCase):
|
|
8
8
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.logging.entities.hourly import Hourly
|
|
2
2
|
from orionis.foundation.config.logging.enums.levels import Level
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigLoggingHourly(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.logging.entities.monthly import Monthly
|
|
2
2
|
from orionis.foundation.config.logging.enums.levels import Level
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigLoggingMonthly(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.logging.entities.stack import Stack
|
|
2
2
|
from orionis.foundation.config.logging.enums.levels import Level
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigLoggingStack(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.logging.entities.weekly import Weekly
|
|
2
2
|
from orionis.foundation.config.logging.enums.levels import Level
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigLoggingWeekly(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.mail.entities.mail import Mail
|
|
2
2
|
from orionis.foundation.config.mail.entities.mailers import Mailers
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigMail(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from orionis.foundation.config.mail.entities.file import File
|
|
2
2
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
3
|
-
from orionis.
|
|
3
|
+
from orionis.unittesting import TestCase
|
|
4
4
|
|
|
5
5
|
class TestFoundationConfigMailFile(TestCase):
|
|
6
6
|
"""
|
|
@@ -2,7 +2,7 @@ from orionis.foundation.config.mail.entities.mailers import Mailers
|
|
|
2
2
|
from orionis.foundation.config.mail.entities.smtp import Smtp
|
|
3
3
|
from orionis.foundation.config.mail.entities.file import File
|
|
4
4
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
5
|
-
from orionis.
|
|
5
|
+
from orionis.unittesting import TestCase
|
|
6
6
|
|
|
7
7
|
class TestFoundationConfigMailMailers(TestCase):
|
|
8
8
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from orionis.foundation.config.mail.entities.smtp import Smtp
|
|
2
2
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
3
|
-
from orionis.
|
|
3
|
+
from orionis.unittesting import TestCase
|
|
4
4
|
|
|
5
5
|
class TestFoundationConfigMailSmtp(TestCase):
|
|
6
6
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.queue.entities.queue import Queue
|
|
2
2
|
from orionis.foundation.config.queue.entities.brokers import Brokers
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigQueue(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.queue.entities.brokers import Brokers
|
|
2
2
|
from orionis.foundation.config.queue.entities.database import Database
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigQueueBrokers(TestCase):
|
|
7
7
|
async def testDefaultInitialization(self):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.queue.entities.database import Database
|
|
2
2
|
from orionis.foundation.config.queue.enums.strategy import Strategy
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigQueueDatabase(TestCase):
|
|
7
7
|
async def testDefaultInitialization(self):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
3
3
|
from orionis.foundation.config.roots.paths import Paths
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigRootPaths(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.session.entities.session import Session
|
|
2
2
|
from orionis.foundation.config.session.enums.same_site_policy import SameSitePolicy
|
|
3
3
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigSession(TestCase):
|
|
7
7
|
async def testDefaultInitialization(self):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from dataclasses import is_dataclass
|
|
2
2
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
3
3
|
from orionis.foundation.config.startup import Configuration
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase, Mock
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigStartup(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.foundation.config.testing.entities.testing import Testing
|
|
2
2
|
from orionis.foundation.exceptions.integrity import OrionisIntegrityException
|
|
3
3
|
from orionis.test.enums.test_mode import ExecutionMode
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestFoundationConfigTesting(TestCase):
|
|
7
7
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
from orionis.services.asynchrony import Coroutine
|
|
3
|
-
from orionis.services.asynchrony.exceptions import OrionisCoroutineException
|
|
4
|
-
from orionis.
|
|
2
|
+
from orionis.services.asynchrony.coroutines import Coroutine
|
|
3
|
+
from orionis.services.asynchrony.exceptions.exception import OrionisCoroutineException
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestServicesAsynchronyCoroutine(TestCase):
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
from orionis.services.environment import Env
|
|
2
|
-
from orionis.
|
|
1
|
+
from orionis.services.environment.env import Env
|
|
2
|
+
from orionis.unittesting import TestCase
|
|
3
3
|
|
|
4
4
|
class TestServicesEnvironment(TestCase):
|
|
5
5
|
|
|
@@ -16,7 +16,7 @@ class TestServicesEnvironment(TestCase):
|
|
|
16
16
|
- `Env.set` returns True for each constant.
|
|
17
17
|
- `Env.get` returns the correct value for each constant.
|
|
18
18
|
"""
|
|
19
|
-
from orionis.metadata import (
|
|
19
|
+
from orionis.metadata.framework import (
|
|
20
20
|
NAME, VERSION, AUTHOR, AUTHOR_EMAIL, DESCRIPTION,
|
|
21
21
|
SKELETON, FRAMEWORK, DOCS, API, PYTHON_REQUIRES
|
|
22
22
|
)
|
|
@@ -6,7 +6,7 @@ from orionis.services.introspection.dependencies.reflect_dependencies import (
|
|
|
6
6
|
MethodDependency,
|
|
7
7
|
ResolvedDependency
|
|
8
8
|
)
|
|
9
|
-
from orionis.
|
|
9
|
+
from orionis.unittesting import TestCase
|
|
10
10
|
from tests.services.inspection.dependencies.mocks.mock_user import FakeUser
|
|
11
11
|
from tests.services.inspection.dependencies.mocks.mock_user_controller import UserController
|
|
12
12
|
from tests.services.inspection.dependencies.mocks.mock_users_permissions import FakeUserWithPermissions
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.services.introspection.abstract.reflection_abstract import ReflectionAbstract
|
|
2
2
|
from orionis.services.introspection.dependencies.entities.class_dependencies import ClassDependency
|
|
3
3
|
from tests.services.inspection.reflection.mock.fake_reflect_instance import AbstractFakeClass
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestServiceReflectionAbstract(TestCase):
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from orionis.services.introspection.callables.reflection_callable import ReflectionCallable
|
|
2
2
|
from orionis.services.introspection.dependencies.entities.callable_dependencies import CallableDependency
|
|
3
|
-
from orionis.
|
|
3
|
+
from orionis.unittesting import TestCase
|
|
4
4
|
from orionis.services.introspection.exceptions.reflection_type_error import ReflectionTypeError
|
|
5
5
|
|
|
6
6
|
class TestReflectionCallable(TestCase):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.services.introspection.concretes.reflection_concrete import ReflectionConcrete
|
|
2
2
|
from orionis.services.introspection.dependencies.entities.class_dependencies import ClassDependency
|
|
3
3
|
from tests.services.inspection.reflection.mock.fake_reflect_instance import FakeClass
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestServiceReflectionConcrete(TestCase):
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from orionis.services.introspection.dependencies.entities.class_dependencies import ClassDependency
|
|
2
2
|
from tests.services.inspection.reflection.mock.fake_reflect_instance import FakeClass
|
|
3
3
|
from orionis.services.introspection.instances.reflection_instance import ReflectionInstance
|
|
4
|
-
from orionis.
|
|
4
|
+
from orionis.unittesting import TestCase
|
|
5
5
|
|
|
6
6
|
class TestServiceReflectionInstance(TestCase):
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from orionis.
|
|
1
|
+
from orionis.unittesting import TestCase
|
|
2
2
|
from orionis.services.introspection.modules.reflection_module import ReflectionModule
|
|
3
3
|
from orionis.services.introspection.exceptions.reflection_type_error import ReflectionTypeError
|
|
4
4
|
from orionis.services.introspection.exceptions.reflection_value_error import ReflectionValueError
|
|
@@ -3,7 +3,7 @@ import tempfile
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
from orionis.services.paths.exceptions.not_found_exceptions import OrionisFileNotFoundException
|
|
5
5
|
from orionis.services.paths.resolver import Resolver
|
|
6
|
-
from orionis.
|
|
6
|
+
from orionis.unittesting import TestCase
|
|
7
7
|
|
|
8
8
|
class TestServicesResolver(TestCase):
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from orionis.support.standard.exceptions.std_value_exception import OrionisStdValueException
|
|
2
|
-
from orionis.support.standard import StdClass
|
|
3
|
-
from orionis.
|
|
2
|
+
from orionis.support.standard.std import StdClass
|
|
3
|
+
from orionis.unittesting import TestCase
|
|
4
4
|
|
|
5
5
|
class TestSupportStd(TestCase):
|
|
6
6
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
from orionis.test import TestCase
|
|
1
|
+
from orionis.test.cases.test_case import TestCase
|
|
2
|
+
from orionis.unittesting import UnitTest, ExecutionMode, TestLoader, StandardTestSuite, patch, MagicMock, StandardTestResult
|
|
2
3
|
|
|
3
4
|
class TestTestingUnit(TestCase):
|
|
4
5
|
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
from typing import Any
|
|
2
|
-
from orionis.services.environment.core import DotEnv
|
|
3
|
-
|
|
4
|
-
def env(key: str, default: Any = None) -> Any:
|
|
5
|
-
"""
|
|
6
|
-
Retrieve the value of an environment variable.
|
|
7
|
-
|
|
8
|
-
Parameters
|
|
9
|
-
----------
|
|
10
|
-
key : str
|
|
11
|
-
The name of the environment variable to retrieve.
|
|
12
|
-
default : Any, optional
|
|
13
|
-
The value to return if the environment variable is not found. Default is None.
|
|
14
|
-
|
|
15
|
-
Returns
|
|
16
|
-
-------
|
|
17
|
-
Any
|
|
18
|
-
The value of the environment variable if it exists, otherwise the default value.
|
|
19
|
-
"""
|
|
20
|
-
dotenv = DotEnv()
|
|
21
|
-
return dotenv.get(key, default)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|