summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/args_handler_test.py2
-rw-r--r--tests/cli_test.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/args_handler_test.py b/tests/args_handler_test.py
index ebf500f3..e6500862 100644
--- a/tests/args_handler_test.py
+++ b/tests/args_handler_test.py
@@ -13,7 +13,7 @@ import func.args_handler
class TestClass:
@pytest.mark.parametrize("test_input, expected", [
- (['fuel', '/home', './test_cases/zte-pod1/network/iperf_bm.yaml'],
+ (['fuel', '/home', './test_cases/default/network/iperf_bm.yaml'],
['fuel', '/home', "iperf",
[('1-server', ['10.20.0.23']), ('2-host', ['10.20.0.24'])],
"iperf_bm.yaml",
diff --git a/tests/cli_test.py b/tests/cli_test.py
index fe05327d..12d0abb0 100644
--- a/tests/cli_test.py
+++ b/tests/cli_test.py
@@ -1,7 +1,7 @@
import pytest
import mock
import os
-from func.cli import cli
+from func.cli import Cli
class TestClass:
@@ -19,7 +19,7 @@ class TestClass:
k = mock.patch.dict(os.environ, {'INSTALLER_TYPE': 'fuel', 'PWD': '/home'})
with pytest.raises(SystemExit):
k.start()
- cli(test_input)
+ Cli(test_input)
k.stop()
resout, reserr = capfd.readouterr()
assert expected in resout
@@ -35,7 +35,7 @@ class TestClass:
def test_cli_successful(self, mock_args_handler, test_input, expected):
k = mock.patch.dict(os.environ, {'INSTALLER_TYPE': 'fuel', 'PWD': '/home'})
k.start()
- cli(test_input)
+ Cli(test_input)
k.stop()
call_list = map(lambda x: mock_args_handler.call_args_list[x][0], range(len(expected)))
assert sorted(call_list) == sorted(expected)