testit-adapter-nose 3.6.1.post530__tar.gz → 3.6.2__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 (16) hide show
  1. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/PKG-INFO +2 -2
  2. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/setup.py +1 -1
  3. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/src/testit_adapter_nose.egg-info/PKG-INFO +2 -2
  4. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/src/testit_adapter_nose.egg-info/SOURCES.txt +2 -1
  5. testit_adapter_nose-3.6.2/src/testit_adapter_nose.egg-info/requires.txt +3 -0
  6. testit_adapter_nose-3.6.2/tests/test_plugin.py +24 -0
  7. testit_adapter_nose-3.6.1.post530/src/testit_adapter_nose.egg-info/requires.txt +0 -3
  8. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/README.md +0 -0
  9. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/setup.cfg +0 -0
  10. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/src/testit_adapter_nose/__init__.py +0 -0
  11. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/src/testit_adapter_nose/listener.py +0 -0
  12. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/src/testit_adapter_nose/plugin.py +0 -0
  13. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/src/testit_adapter_nose/utils.py +0 -0
  14. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/src/testit_adapter_nose.egg-info/dependency_links.txt +0 -0
  15. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/src/testit_adapter_nose.egg-info/entry_points.txt +0 -0
  16. {testit_adapter_nose-3.6.1.post530 → testit_adapter_nose-3.6.2}/src/testit_adapter_nose.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-adapter-nose
3
- Version: 3.6.1.post530
3
+ Version: 3.6.2
4
4
  Summary: Nose adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: attrs
19
19
  Requires-Dist: nose2
20
- Requires-Dist: testit-python-commons==3.6.1.post530
20
+ Requires-Dist: testit-python-commons==3.6.2
21
21
  Dynamic: author
22
22
  Dynamic: author-email
23
23
  Dynamic: classifier
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- VERSION = "3.6.1.post530"
3
+ VERSION = "3.6.2"
4
4
 
5
5
  setup(
6
6
  name='testit-adapter-nose',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-adapter-nose
3
- Version: 3.6.1.post530
3
+ Version: 3.6.2
4
4
  Summary: Nose adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: attrs
19
19
  Requires-Dist: nose2
20
- Requires-Dist: testit-python-commons==3.6.1.post530
20
+ Requires-Dist: testit-python-commons==3.6.2
21
21
  Dynamic: author
22
22
  Dynamic: author-email
23
23
  Dynamic: classifier
@@ -9,4 +9,5 @@ src/testit_adapter_nose.egg-info/SOURCES.txt
9
9
  src/testit_adapter_nose.egg-info/dependency_links.txt
10
10
  src/testit_adapter_nose.egg-info/entry_points.txt
11
11
  src/testit_adapter_nose.egg-info/requires.txt
12
- src/testit_adapter_nose.egg-info/top_level.txt
12
+ src/testit_adapter_nose.egg-info/top_level.txt
13
+ tests/test_plugin.py
@@ -0,0 +1,3 @@
1
+ attrs
2
+ nose2
3
+ testit-python-commons==3.6.2
@@ -0,0 +1,24 @@
1
+ import pytest
2
+ from pytest_mock import MockerFixture
3
+
4
+ from testit_adapter_nose.plugin import TmsPlugin
5
+
6
+
7
+ class TestTmsPlugin:
8
+ def test_handleDir(self, mocker: MockerFixture):
9
+ plugin = TmsPlugin()
10
+ mock_event = mocker.Mock()
11
+ mock_event.topLevelDirectory = "/test/directory"
12
+
13
+ assert plugin._TmsPlugin__top_level_directory is None
14
+
15
+ plugin.handleDir(mock_event)
16
+
17
+ assert plugin._TmsPlugin__top_level_directory == "/test/directory"
18
+
19
+ # Calling it again should not change the value
20
+ mock_event_another = mocker.Mock()
21
+ mock_event_another.topLevelDirectory = "/another/directory"
22
+ plugin.handleDir(mock_event_another)
23
+
24
+ assert plugin._TmsPlugin__top_level_directory == "/test/directory"
@@ -1,3 +0,0 @@
1
- attrs
2
- nose2
3
- testit-python-commons==3.6.1.post530