testit-adapter-robotframework 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.
Potentially problematic release.
This version of testit-adapter-robotframework might be problematic. Click here for more details.
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/PKG-INFO +2 -2
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/setup.py +1 -1
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/src/testit_adapter_robotframework.egg-info/PKG-INFO +2 -2
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/src/testit_adapter_robotframework.egg-info/SOURCES.txt +2 -1
- testit_adapter_robotframework-3.6.2/src/testit_adapter_robotframework.egg-info/requires.txt +3 -0
- testit_adapter_robotframework-3.6.2/tests/test_listeners.py +47 -0
- testit_adapter_robotframework-3.6.1.post530/src/testit_adapter_robotframework.egg-info/requires.txt +0 -3
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/README.md +0 -0
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/setup.cfg +0 -0
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/src/testit_adapter_robotframework/TMSLibrary.py +0 -0
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/src/testit_adapter_robotframework/__init__.py +0 -0
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/src/testit_adapter_robotframework/listeners.py +0 -0
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/src/testit_adapter_robotframework/models.py +0 -0
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/src/testit_adapter_robotframework/utils.py +0 -0
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/src/testit_adapter_robotframework.egg-info/dependency_links.txt +0 -0
- {testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/src/testit_adapter_robotframework.egg-info/top_level.txt +0 -0
{testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testit-adapter-robotframework
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.2
|
|
4
4
|
Summary: Robot Framework 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: robotframework
|
|
20
|
-
Requires-Dist: testit-python-commons==3.6.
|
|
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
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testit-adapter-robotframework
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.2
|
|
4
4
|
Summary: Robot Framework 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: robotframework
|
|
20
|
-
Requires-Dist: testit-python-commons==3.6.
|
|
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_robotframework.egg-info/PKG-INFO
|
|
|
9
9
|
src/testit_adapter_robotframework.egg-info/SOURCES.txt
|
|
10
10
|
src/testit_adapter_robotframework.egg-info/dependency_links.txt
|
|
11
11
|
src/testit_adapter_robotframework.egg-info/requires.txt
|
|
12
|
-
src/testit_adapter_robotframework.egg-info/top_level.txt
|
|
12
|
+
src/testit_adapter_robotframework.egg-info/top_level.txt
|
|
13
|
+
tests/test_listeners.py
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import re
|
|
2
|
+
from pytest_mock import MockerFixture
|
|
3
|
+
from unittest.mock import MagicMock
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TestAutotestAdapter:
|
|
7
|
+
def test_parse_arguments(self, mocker: MockerFixture):
|
|
8
|
+
mock_builtin_class = mocker.Mock()
|
|
9
|
+
mock_builtin_instance = mocker.Mock()
|
|
10
|
+
mock_builtin_class.return_value = mock_builtin_instance
|
|
11
|
+
|
|
12
|
+
mock_builtin_instance.get_variable_value.side_effect = [
|
|
13
|
+
"value1",
|
|
14
|
+
"value2",
|
|
15
|
+
"a" * 2500 # A value longer than 2000 characters
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
def parse_arguments(args):
|
|
19
|
+
parameters = {}
|
|
20
|
+
for arg in args:
|
|
21
|
+
variables = re.findall(r'\${[a-zA-Z-_\\ \d]*}', arg)
|
|
22
|
+
for arg_var in variables:
|
|
23
|
+
value = str(mock_builtin_instance.get_variable_value(arg_var))
|
|
24
|
+
if len(value) > 2000:
|
|
25
|
+
value = value[:2000]
|
|
26
|
+
parameters[arg_var] = value
|
|
27
|
+
return parameters if parameters else None
|
|
28
|
+
|
|
29
|
+
# Arrange
|
|
30
|
+
args = ["${var1}", "prefix_${var2}_suffix", "${var3_with_long_value}"]
|
|
31
|
+
|
|
32
|
+
# Act
|
|
33
|
+
parameters = parse_arguments(args)
|
|
34
|
+
|
|
35
|
+
# Assert
|
|
36
|
+
assert parameters == {
|
|
37
|
+
"${var1}": "value1",
|
|
38
|
+
"${var2}": "value2",
|
|
39
|
+
"${var3_with_long_value}": "a" * 2000 # Should be truncated
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
expected_calls = [
|
|
43
|
+
mocker.call("${var1}"),
|
|
44
|
+
mocker.call("${var2}"),
|
|
45
|
+
mocker.call("${var3_with_long_value}")
|
|
46
|
+
]
|
|
47
|
+
mock_builtin_instance.get_variable_value.assert_has_calls(expected_calls, any_order=True)
|
{testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/README.md
RENAMED
|
File without changes
|
{testit_adapter_robotframework-3.6.1.post530 → testit_adapter_robotframework-3.6.2}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|