Skip to content

Commit 87588d3

Browse files
committed
Unit test improvements
1 parent 33d36ae commit 87588d3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

utest/test_get_keyword_types.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,11 @@ def test_keyword_with_decorator_arguments(lib_types):
187187

188188
@pytest.mark.skipif(RF32, reason='Only for RF4+')
189189
def test_keyword_optional_with_none_rf4(lib_types):
190-
lib = DynamicTypesAnnotationsLibrary("111")
191-
types = lib.get_keyword_types('keyword_optional_with_none')
190+
types = lib_types.get_keyword_types('keyword_optional_with_none')
192191
assert types == {'arg': typing.Union[str, type(None)]}
193192

194193

195194
@pytest.mark.skipif(not RF32, reason='Only for RF3.2+')
196195
def test_keyword_optional_with_none_rf32(lib_types):
197-
lib = DynamicTypesAnnotationsLibrary("111")
198-
types = lib.get_keyword_types('keyword_optional_with_none')
196+
types = lib_types.get_keyword_types('keyword_optional_with_none')
199197
assert types == {'arg': str}

0 commit comments

Comments
 (0)