testit-cli 2.1.3__tar.gz → 2.1.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.
Files changed (33) hide show
  1. {testit_cli-2.1.3 → testit_cli-2.1.4}/PKG-INFO +1 -1
  2. {testit_cli-2.1.3 → testit_cli-2.1.4}/setup.py +1 -1
  3. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/apiclient.py +7 -6
  4. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli.egg-info/PKG-INFO +1 -1
  5. {testit_cli-2.1.3 → testit_cli-2.1.4}/LICENSE +0 -0
  6. {testit_cli-2.1.3 → testit_cli-2.1.4}/README.md +0 -0
  7. {testit_cli-2.1.3 → testit_cli-2.1.4}/setup.cfg +0 -0
  8. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/__init__.py +0 -0
  9. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/__main__.py +0 -0
  10. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/autotests_filter.py +0 -0
  11. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/click_commands.py +0 -0
  12. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/converter.py +0 -0
  13. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/dir_worker.py +0 -0
  14. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/file_worker.py +0 -0
  15. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/filter_factory.py +0 -0
  16. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/importer.py +0 -0
  17. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/logger.py +0 -0
  18. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/models/__init__.py +0 -0
  19. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/models/config.py +0 -0
  20. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/models/mode.py +0 -0
  21. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/models/status.py +0 -0
  22. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/models/testcase.py +0 -0
  23. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/models/testrun.py +0 -0
  24. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/parser.py +0 -0
  25. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/service.py +0 -0
  26. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/service_factory.py +0 -0
  27. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli/validation.py +0 -0
  28. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli.egg-info/SOURCES.txt +0 -0
  29. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli.egg-info/dependency_links.txt +0 -0
  30. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli.egg-info/entry_points.txt +0 -0
  31. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli.egg-info/requires.txt +0 -0
  32. {testit_cli-2.1.3 → testit_cli-2.1.4}/src/testit_cli.egg-info/top_level.txt +0 -0
  33. {testit_cli-2.1.3 → testit_cli-2.1.4}/tests/test_click.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: testit-cli
3
- Version: 2.1.3
3
+ Version: 2.1.4
4
4
  Summary: This tool is the command line wrapper of Test IT allowing you to upload the test results in real time to Test IT
5
5
  Home-page: https://pypi.org/project/testit-cli/
6
6
  Author: Integration team
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name='testit-cli',
5
- version='2.1.3',
5
+ version='2.1.4',
6
6
  description='This tool is the command line wrapper of Test IT allowing you to upload the test results in real time '
7
7
  'to Test IT',
8
8
  long_description=open('README.md', "r").read(),
@@ -125,14 +125,15 @@ class ApiClient:
125
125
 
126
126
  for attachment in attachments:
127
127
  if os.path.isfile(attachment):
128
- try:
129
- attachment_response = self.__attachments_api.api_v2_attachments_post(file=open(attachment, "rb"))
128
+ with open(attachment, "rb+") as file:
129
+ try:
130
+ attachment_response = self.__attachments_api.api_v2_attachments_post(file=(file.name, file.read()))
130
131
 
131
- attachment_ids.append(AttachmentPutModel(id=attachment_response.id))
132
+ attachment_ids.append(AttachmentPutModel(id=attachment_response.id))
132
133
 
133
- logging.debug(f'Attachment "{attachment}" was uploaded')
134
- except Exception as exc:
135
- logging.error(f'Upload attachment "{attachment}" status: {exc}')
134
+ logging.debug(f'Attachment "{attachment}" was uploaded')
135
+ except Exception as exc:
136
+ logging.error(f'Upload attachment "{attachment}" status: {exc}')
136
137
  else:
137
138
  logging.error(f'File "{attachment}" was not found!')
138
139
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: testit-cli
3
- Version: 2.1.3
3
+ Version: 2.1.4
4
4
  Summary: This tool is the command line wrapper of Test IT allowing you to upload the test results in real time to Test IT
5
5
  Home-page: https://pypi.org/project/testit-cli/
6
6
  Author: Integration team
File without changes
File without changes
File without changes