From 6861d631de350b12e8eac86440dcbecc4aba59fe Mon Sep 17 00:00:00 2001 From: RoRonoa Date: Fri, 24 Feb 2023 23:09:39 +0500 Subject: [PATCH] testing db_migrator.py --- tests/db_migrator_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/db_migrator_test.py b/tests/db_migrator_test.py index af314dbced..fec87f9d74 100644 --- a/tests/db_migrator_test.py +++ b/tests/db_migrator_test.py @@ -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"