Skip to content

Commit

Permalink
tests/portstat_test.py: formatting fix for pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BYGX-wcr committed Aug 26, 2024
1 parent 5a46fcd commit e2c9522
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/portstat_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ def test_show_intf_counters_on_sup_no_counters(self):
assert result == intf_counters_on_sup_no_counters

os.environ["UTILITIES_UNIT_TESTING_IS_SUP"] = "0"
os.system("cp /tmp/chassis_state_db.json {}".format(os.path.join(test_path, "mock_tables/chassis_state_db.json")))
os.system("cp /tmp/chassis_state_db.json {}"
.format(os.path.join(test_path, "mock_tables/chassis_state_db.json")))

def test_show_intf_counters_on_sup_partial_lc(self):
remove_tmp_cnstat_file()
Expand All @@ -478,7 +479,8 @@ def test_show_intf_counters_on_sup_partial_lc(self):
assert result == intf_counters_on_sup_partial_lc

os.environ["UTILITIES_UNIT_TESTING_IS_SUP"] = "0"
os.system("cp /tmp/chassis_state_db.json {}".format(os.path.join(test_path, "mock_tables/chassis_state_db.json")))
os.system("cp /tmp/chassis_state_db.json {}"
.format(os.path.join(test_path, "mock_tables/chassis_state_db.json")))

@classmethod
def teardown_class(cls):
Expand All @@ -488,7 +490,8 @@ def teardown_class(cls):
os.environ["UTILITIES_UNIT_TESTING"] = "0"
os.environ["UTILITIES_UNIT_TESTING_IS_SUP"] = "0"
remove_tmp_cnstat_file()
os.system("cp /tmp/chassis_state_db.json {}".format(os.path.join(test_path, "mock_tables/chassis_state_db.json")))
os.system("cp /tmp/chassis_state_db.json {}"
.format(os.path.join(test_path,"mock_tables/chassis_state_db.json")))


class TestMultiAsicPortStat(object):
Expand Down

0 comments on commit e2c9522

Please sign in to comment.