Skip to content

Commit

Permalink
Change the method name to align with master, reduce diverge issue (#1703
Browse files Browse the repository at this point in the history
)

What I did
Change the method name to align with master, reduce diverge issue
  • Loading branch information
xumia authored Jun 30, 2021
1 parent 12b68b5 commit e840c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic-utilities-tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def setup_single_bgp_instance(request):
bgp_mocked_json = os.path.join(
test_path, 'mock_tables', 'dummy.json')

def mock_show_bgp_command(vtysh_cmd, bgp_namespace, vtysh_shell_cmd=constants.RVTYSH_COMMAND):
def mock_show_bgp_summary(vtysh_cmd, bgp_namespace, vtysh_shell_cmd=constants.RVTYSH_COMMAND):
if os.path.isfile(bgp_mocked_json):
with open(bgp_mocked_json) as json_data:
mock_frr_data = json_data.read()
Expand Down Expand Up @@ -74,7 +74,7 @@ def mock_run_show_ip_route_commands(request):
return_value=mock_show_bgp_network_single_asic(request))
else:
bgp_util.run_bgp_command = mock.MagicMock(
return_value=mock_show_bgp_command("", ""))
return_value=mock_show_bgp_summary("", ""))


@pytest.fixture
Expand Down

0 comments on commit e840c42

Please sign in to comment.