Skip to content

Commit 5c766c3

Browse files
committed
tmp12
1 parent bad5f59 commit 5c766c3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/multi_asic_fdbshow_test.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
from click.testing import CliRunner
55

6-
import show.main as show
76
from tests.fdbshow_input.fdbshow_masic_test_vectors import show_mac_masic_asic0_output, test_data
87
from tests.utils import get_result_and_return_code
98

9+
import show.main as show
10+
1011
test_path = os.path.dirname(os.path.abspath(__file__))
1112
modules_path = os.path.dirname(test_path)
1213
scripts_path = os.path.join(modules_path, "scripts")
@@ -23,7 +24,7 @@ def setup_class(cls):
2324
print("SETUP")
2425

2526
def test_show_mac_masic_asic0(self):
26-
self.command_executor(test_data["show_mac_masic_asic0"])
27+
# self.command_executor(test_data["show_mac_masic_asic0"])
2728

2829
return_code, result = get_result_and_return_code([
2930
'fdbshow', '-n', 'asic0'
@@ -41,10 +42,10 @@ def teardown_class(cls):
4142
print("TEARDOWN")
4243

4344
@staticmethod
44-
def command_executor(test_case):
45+
def command_executor(test_case_data):
4546
runner = CliRunner()
46-
result = runner.invoke(show.cli.commands[test_case["cmd"]], test_case["args"])
47+
result = runner.invoke(show.cli.commands["mac"], test_case_data["args"])
4748
print("result.exit_code: {}".format(result.exit_code))
4849
print("result.output: {}".format(result.output))
4950
assert result.exit_code == 0
50-
assert result.output == test_case["expected_output"]
51+
assert result.output == test_case_data["expected_output"]

0 commit comments

Comments
 (0)