testit-python-commons 3.5.3__tar.gz → 3.5.4__tar.gz
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.
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/PKG-INFO +1 -1
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/setup.py +1 -1
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/app_properties.py +15 -3
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons.egg-info/PKG-INFO +1 -1
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/README.md +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/setup.cfg +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/__init__.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/client/__init__.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/client/api_client.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/client/client_configuration.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/client/converter.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/decorators.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/dynamic_methods.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/__init__.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/adapter_mode.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/fixture.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/link.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/link_type.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/outcome_type.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/step_result.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/test_result.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/__init__.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/adapter_manager.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/fixture_manager.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/fixture_storage.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/logger.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/plugin_manager.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/retry.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/step_manager.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/step_result_storage.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/services/utils.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/step.py +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons.egg-info/requires.txt +0 -0
- {testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons.egg-info/top_level.txt +0 -0
|
@@ -10,7 +10,10 @@ from testit_python_commons.models.adapter_mode import AdapterMode
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class AppProperties:
|
|
13
|
-
|
|
13
|
+
__project_metadata_file = 'pyproject.toml'
|
|
14
|
+
__properties_file = 'connection_config.ini'
|
|
15
|
+
__available_extensions = ['.ini', '.toml']
|
|
16
|
+
|
|
14
17
|
__env_prefix = 'TMS'
|
|
15
18
|
|
|
16
19
|
@staticmethod
|
|
@@ -35,16 +38,25 @@ class AppProperties:
|
|
|
35
38
|
root = path[:path.index(os.sep)]
|
|
36
39
|
|
|
37
40
|
if file_name:
|
|
41
|
+
_, extension = os.path.splitext(file_name)
|
|
42
|
+
if extension not in cls.__available_extensions:
|
|
43
|
+
raise FileNotFoundError(
|
|
44
|
+
f'{file_name} is not a valid file. Available extensions: {cls.__available_extensions}'
|
|
45
|
+
)
|
|
38
46
|
cls.__properties_file = file_name
|
|
39
47
|
|
|
40
48
|
if os.environ.get(f'{cls.__env_prefix}_CONFIG_FILE'):
|
|
41
49
|
cls.__properties_file = os.environ.get(f'{cls.__env_prefix}_CONFIG_FILE')
|
|
42
50
|
|
|
51
|
+
if os.path.isfile(cls.__project_metadata_file):
|
|
52
|
+
# https://peps.python.org/pep-0621/
|
|
53
|
+
cls.__properties_file = cls.__project_metadata_file
|
|
54
|
+
|
|
43
55
|
while not os.path.isfile(
|
|
44
|
-
path + os.sep +
|
|
56
|
+
path + os.sep + cls.__properties_file) and path != root:
|
|
45
57
|
path = path[:path.rindex(os.sep)]
|
|
46
58
|
|
|
47
|
-
path = path + os.sep +
|
|
59
|
+
path = path + os.sep + cls.__properties_file
|
|
48
60
|
|
|
49
61
|
if os.path.isfile(path):
|
|
50
62
|
parser = configparser.RawConfigParser()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/decorators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/models/link.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.5.3 → testit_python_commons-3.5.4}/src/testit_python_commons/step.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|