Skip to content

Commit

Permalink
db_migrator switchport test update
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUmarAsad committed Feb 24, 2023
1 parent 1458610 commit ae00297
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/db_migrator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,6 @@ def test_switchport_mode_migrator(self):
dbconnector.dedicated_dbs['CONFIG_DB'] = os.path.join(mock_db_path, 'config_db', 'switchport-expected')
expected_db = Db()
advance_version_for_expected_database(dbmgtr.configDB, expected_db.cfgdb, 'version_4_0_1')
test = str(dbmgtr.configDB.get_table('PORT'))
test += str(expected_db.cfgdb.get_table('PORT'))
test += str(expected_db.cfgdb.get_table('PORTCHANNEL'))
test += str(expected_db.cfgdb.get_table('PORTCHANNEL'))

assert test == "1"

assert dbmgtr.configDB.get_table('PORT') == expected_db.cfgdb.get_table('PORT')
assert dbmgtr.configDB.get_table('PORTCHANNEL') == expected_db.cfgdb.get_table('PORTCHANNEL')
Expand Down

0 comments on commit ae00297

Please sign in to comment.