testit-python-commons 3.5.3__tar.gz → 3.5.5.post530__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.
Files changed (40) hide show
  1. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/PKG-INFO +2 -2
  2. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/setup.py +2 -2
  3. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/app_properties.py +15 -3
  4. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons.egg-info/PKG-INFO +2 -2
  5. testit_python_commons-3.5.5.post530/src/testit_python_commons.egg-info/requires.txt +2 -0
  6. testit_python_commons-3.5.3/src/testit_python_commons.egg-info/requires.txt +0 -2
  7. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/README.md +0 -0
  8. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/setup.cfg +0 -0
  9. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit.py +0 -0
  10. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/__init__.py +0 -0
  11. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/client/__init__.py +0 -0
  12. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/client/api_client.py +0 -0
  13. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/client/client_configuration.py +0 -0
  14. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/client/converter.py +0 -0
  15. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/decorators.py +0 -0
  16. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/dynamic_methods.py +0 -0
  17. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/models/__init__.py +0 -0
  18. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/models/adapter_mode.py +0 -0
  19. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/models/fixture.py +0 -0
  20. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/models/link.py +0 -0
  21. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/models/link_type.py +0 -0
  22. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/models/outcome_type.py +0 -0
  23. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/models/step_result.py +0 -0
  24. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/models/test_result.py +0 -0
  25. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
  26. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/__init__.py +0 -0
  27. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/adapter_manager.py +0 -0
  28. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
  29. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/fixture_manager.py +0 -0
  30. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/fixture_storage.py +0 -0
  31. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/logger.py +0 -0
  32. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/plugin_manager.py +0 -0
  33. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/retry.py +0 -0
  34. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/step_manager.py +0 -0
  35. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/step_result_storage.py +0 -0
  36. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/services/utils.py +0 -0
  37. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons/step.py +0 -0
  38. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
  39. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
  40. {testit_python_commons-3.5.3 → testit_python_commons-3.5.5.post530}/src/testit_python_commons.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 3.5.3
3
+ Version: 3.5.5.post530
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
- Requires-Dist: testit-api-client==6.0.0
19
+ Requires-Dist: testit-api-client==6.0.1.post530
20
20
  Dynamic: author
21
21
  Dynamic: author-email
22
22
  Dynamic: classifier
@@ -1,6 +1,6 @@
1
1
  from setuptools import find_packages, setup
2
2
 
3
- VERSION = "3.5.3"
3
+ VERSION = "3.5.5.post530"
4
4
 
5
5
  setup(
6
6
  name='testit-python-commons',
@@ -25,5 +25,5 @@ setup(
25
25
  py_modules=['testit', 'testit_python_commons'],
26
26
  packages=find_packages(where='src'),
27
27
  package_dir={'': 'src'},
28
- install_requires=['pluggy', 'testit-api-client==6.0.0']
28
+ install_requires=['pluggy', 'testit-api-client==6.0.1.post530']
29
29
  )
@@ -10,7 +10,10 @@ from testit_python_commons.models.adapter_mode import AdapterMode
10
10
 
11
11
 
12
12
  class AppProperties:
13
- __properties_file = 'connection_config'
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 + f'{cls.__properties_file}.ini') and path != root:
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 + f'{cls.__properties_file}.ini'
59
+ path = path + os.sep + cls.__properties_file
48
60
 
49
61
  if os.path.isfile(path):
50
62
  parser = configparser.RawConfigParser()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 3.5.3
3
+ Version: 3.5.5.post530
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
- Requires-Dist: testit-api-client==6.0.0
19
+ Requires-Dist: testit-api-client==6.0.1.post530
20
20
  Dynamic: author
21
21
  Dynamic: author-email
22
22
  Dynamic: classifier
@@ -0,0 +1,2 @@
1
+ pluggy
2
+ testit-api-client==6.0.1.post530
@@ -1,2 +0,0 @@
1
- pluggy
2
- testit-api-client==6.0.0