Skip to content

Commit

Permalink
Fixed syntax issues in ut
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshraghupathy committed Sep 2, 2024
1 parent 77d3901 commit e0a5570
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sonic-chassisd/tests/test_chassisd.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def test_smartswitch_moduleupdater_check_invalid_name():
fvs = module_updater.module_table.get(name)
assert fvs == None

config_updater = SmartSwitchModuleConfigUpdater(SYSLOG_IDENTIFIER, chassis)
admin_state = 0
config_updater.module_config_update(name, admin_state)

Expand Down Expand Up @@ -350,11 +351,11 @@ def test_smartswitch_configupdater_check_admin_state():
config_updater = SmartSwitchModuleConfigUpdater(SYSLOG_IDENTIFIER, chassis)
admin_state = 0
config_updater.module_config_update(name, admin_state)
#assert module.get_admin_state() == admin_state
assert module.get_admin_state() == admin_state

admin_state = 1
config_updater.module_config_update(name, admin_state)
#assert module.get_admin_state() == admin_state
assert module.get_admin_state() == admin_state


def test_configupdater_check_num_modules():
Expand Down

0 comments on commit e0a5570

Please sign in to comment.