Skip to content

Commit

Permalink
testing db_migrator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUmarAsad committed Feb 24, 2023
1 parent d856425 commit 6861d63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/db_migrator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ 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 = dbmgtr.configDB.get_table('PORT')
test += expected_db.cfgdb.get_table('PORT')
test += expected_db.cfgdb.get_table('PORTCHANNEL')
test += expected_db.cfgdb.get_table('PORTCHANNEL')
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"

Expand Down

0 comments on commit 6861d63

Please sign in to comment.