diff options
Diffstat (limited to 'tests/vnfreq')
-rw-r--r-- | tests/vnfreq/test_pkg_reqs.py | 10 | ||||
-rw-r--r-- | tests/vnfreq/test_vnfreq.py | 3 |
2 files changed, 5 insertions, 8 deletions
diff --git a/tests/vnfreq/test_pkg_reqs.py b/tests/vnfreq/test_pkg_reqs.py index 109e85c..42f812a 100644 --- a/tests/vnfreq/test_pkg_reqs.py +++ b/tests/vnfreq/test_pkg_reqs.py @@ -13,8 +13,6 @@ # under the License. # -import pytest - from vnfsdk_pkgtools import vnfreq @@ -63,6 +61,7 @@ def test_R04298(mocker, tmpdir): check_result('R-04298', reader, None, 'No testing scripts found') + def test_R26881(mocker, tmpdir): p1 = tmpdir.join('entry.yaml') p1.write("") @@ -78,9 +77,9 @@ def test_R26881(mocker, tmpdir): validator.tosca.nodetemplates = [node] node.entity_tpl = {'artifacts': {'sw_image': {'file': 'image', 'type': 'tosca.artifacts.nfv.SwImage', - } - } - } + } + } + } check_result('R-26881', reader, validator, None) @@ -89,4 +88,3 @@ def test_R35851(mocker): node = mocker.Mock() validator.tosca.nodetemplates = [node] check_result('R-35851', None, validator, None) - diff --git a/tests/vnfreq/test_vnfreq.py b/tests/vnfreq/test_vnfreq.py index 03404fc..30cca1b 100644 --- a/tests/vnfreq/test_vnfreq.py +++ b/tests/vnfreq/test_vnfreq.py @@ -13,10 +13,9 @@ # under the License. # -import pytest - from vnfsdk_pkgtools import vnfreq + class FakeTester(vnfreq.TesterBase): ID = 'fake' DESC = 'fake' |