testit-adapter-pytest 3.0.0__tar.gz → 3.0.1__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_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/PKG-INFO +2 -2
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/setup.py +2 -2
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/listener.py +9 -7
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest.egg-info/PKG-INFO +2 -2
- testit_adapter_pytest-3.0.1/src/testit_adapter_pytest.egg-info/requires.txt +4 -0
- testit_adapter_pytest-3.0.0/src/testit_adapter_pytest.egg-info/requires.txt +0 -4
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/README.md +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/setup.cfg +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/__init__.py +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/fixture_context.py +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/fixture_manager.py +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/fixture_storage.py +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/models/__init__.py +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/models/fixture.py +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/plugin.py +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/utils.py +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest.egg-info/SOURCES.txt +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest.egg-info/dependency_links.txt +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest.egg-info/entry_points.txt +0 -0
- {testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-adapter-pytest
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1
|
|
4
4
|
Summary: Pytest adapter for Test IT
|
|
5
5
|
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
6
|
Author: Integration team
|
|
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
Requires-Dist: pytest
|
|
19
19
|
Requires-Dist: pytest-xdist
|
|
20
20
|
Requires-Dist: attrs
|
|
21
|
-
Requires-Dist: testit-python-commons==3.0.
|
|
21
|
+
Requires-Dist: testit-python-commons==3.0.1
|
|
22
22
|
|
|
23
23
|
# Test IT TMS adapter for Pytest
|
|
24
24
|
|
|
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='testit-adapter-pytest',
|
|
5
|
-
version='3.0.
|
|
5
|
+
version='3.0.1',
|
|
6
6
|
description='Pytest adapter for Test IT',
|
|
7
7
|
long_description=open('README.md', "r").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
@@ -23,6 +23,6 @@ setup(
|
|
|
23
23
|
py_modules=['testit_adapter_pytest'],
|
|
24
24
|
packages=find_packages(where='src'),
|
|
25
25
|
package_dir={'': 'src'},
|
|
26
|
-
install_requires=['pytest', 'pytest-xdist', 'attrs', 'testit-python-commons==3.0.
|
|
26
|
+
install_requires=['pytest', 'pytest-xdist', 'attrs', 'testit-python-commons==3.0.1'],
|
|
27
27
|
entry_points={'pytest11': ['testit_adapter_pytest = testit_adapter_pytest.plugin']}
|
|
28
28
|
)
|
{testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/listener.py
RENAMED
|
@@ -128,8 +128,10 @@ class TmsListener(object):
|
|
|
128
128
|
index = 0
|
|
129
129
|
|
|
130
130
|
for item in items:
|
|
131
|
-
if
|
|
132
|
-
item.
|
|
131
|
+
if hasattr(item.function, 'test_external_id'):
|
|
132
|
+
item.test_external_id = item.function.test_external_id
|
|
133
|
+
else:
|
|
134
|
+
item.test_external_id = utils.get_hash(item.parent.nodeid + item.function.__name__)
|
|
133
135
|
|
|
134
136
|
if item.own_markers:
|
|
135
137
|
for mark in item.own_markers:
|
|
@@ -140,8 +142,8 @@ class TmsListener(object):
|
|
|
140
142
|
item.own_markers.index(mark))
|
|
141
143
|
|
|
142
144
|
params = utils.get_all_parameters(item)
|
|
143
|
-
item.
|
|
144
|
-
item.
|
|
145
|
+
item.test_external_id = utils.collect_parameters_in_string_attribute(
|
|
146
|
+
item.test_external_id,
|
|
145
147
|
params)
|
|
146
148
|
|
|
147
149
|
item.index = index
|
|
@@ -149,7 +151,7 @@ class TmsListener(object):
|
|
|
149
151
|
index = index + 1 if len(items) > item_id + 1 and items[item_id + 1].originalname == item.originalname \
|
|
150
152
|
else 0
|
|
151
153
|
|
|
152
|
-
if cls.__check_external_id_in_resolved_autotests(item.
|
|
154
|
+
if cls.__check_external_id_in_resolved_autotests(item.test_external_id, resolved_autotests):
|
|
153
155
|
separation_of_tests.add_item_to_selected_items(item)
|
|
154
156
|
else:
|
|
155
157
|
separation_of_tests.add_item_to_deselected_items(item)
|
|
@@ -320,8 +322,8 @@ class TmsListener(object):
|
|
|
320
322
|
group_uuid = self._cache.push(fixturedef)
|
|
321
323
|
group = FixturesContainer(uuid=group_uuid)
|
|
322
324
|
self.fixture_manager.start_group(group_uuid, group)
|
|
323
|
-
if item.
|
|
324
|
-
self.fixture_manager.update_group(group_uuid, external_ids=item.
|
|
325
|
+
if item.test_external_id not in group.external_ids:
|
|
326
|
+
self.fixture_manager.update_group(group_uuid, external_ids=item.test_external_id)
|
|
325
327
|
|
|
326
328
|
|
|
327
329
|
def _test_fixtures(item):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-adapter-pytest
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1
|
|
4
4
|
Summary: Pytest adapter for Test IT
|
|
5
5
|
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
6
|
Author: Integration team
|
|
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
Requires-Dist: pytest
|
|
19
19
|
Requires-Dist: pytest-xdist
|
|
20
20
|
Requires-Dist: attrs
|
|
21
|
-
Requires-Dist: testit-python-commons==3.0.
|
|
21
|
+
Requires-Dist: testit-python-commons==3.0.1
|
|
22
22
|
|
|
23
23
|
# Test IT TMS adapter for Pytest
|
|
24
24
|
|
|
File without changes
|
|
File without changes
|
{testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/plugin.py
RENAMED
|
File without changes
|
{testit_adapter_pytest-3.0.0 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|