Skip to content

Commit de30bec

Browse files
Fix pre-commit failures
Signed-off-by: Patrick MacArthur <[email protected]>
1 parent dc300f8 commit de30bec

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

tests/common/helpers/dut_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def create_linecard_console(supervisor, linecard_duthost, inv_files, creds):
477477

478478
if not slot_num:
479479
pytest.skip(f"Could not determine slot number for linecard {linecard_duthost.hostname} from inventory. "
480-
f"Ensure 'slot_num' variable is defined in inventory.")
480+
f"Ensure 'slot_num' variable is defined in inventory.")
481481

482482
try:
483483
return ConsoleHost(

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
from tests.common.helpers.dut_utils import is_supervisor_node, is_frontend_node, create_duthost_console, creds_on_dut, \
6565
is_enabled_nat_for_dpu, get_dpu_names_and_ssh_ports, enable_nat_for_dpus, is_macsec_capable_node, \
6666
get_supervisor_for_linecard, create_linecard_console
67-
from tests.common.connections.console_host import ConsoleHost, CONSOLE_LINECARD
6867
from tests.common.cache import FactsCache
6968
from tests.common.config_reload import config_reload
7069
from tests.common.helpers.assertions import pytest_assert as pt_assert

tests/dut_console/test_console_stress.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def test_console_stress_output(duthost_console):
4747
for line_idx, line in enumerate(pattern_lines):
4848
expected_line = f"LINE_{line_idx:04d}: " + '0123456789' * 10
4949
pytest_assert(line == expected_line,
50-
f"Line {line_idx}: Content mismatch\n"
51-
f"Expected: '{expected_line}'\n"
52-
f"Got: '{line}'")
50+
f"Line {line_idx}: Content mismatch\n"
51+
f"Expected: '{expected_line}'\n"
52+
f"Got: '{line}'")
5353

5454
# Verify console is still responsive
5555
response = duthost_console.send_command("echo test_responsive")

0 commit comments

Comments
 (0)