From f7bc359740d8cea49c3790a38aeea13b95b00887 Mon Sep 17 00:00:00 2001 From: RoRonoa Date: Fri, 24 Feb 2023 22:46:16 +0500 Subject: [PATCH] testing db_migrator.py --- tests/db_migrator_test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/db_migrator_test.py b/tests/db_migrator_test.py index a602719eb1..f20b5e0f7a 100644 --- a/tests/db_migrator_test.py +++ b/tests/db_migrator_test.py @@ -265,10 +265,11 @@ 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') - print("dbmgtr port",dbmgtr.configDB.get_table('PORT')) - print("expected port",expected_db.configDB.get_table('PORT')) - print("dbmgtr portccc",dbmgtr.configDB.get_table('PORTCHANNEL')) - print("dbmgtrcccc portccc",expected_db.configDB.get_table('PORTCHANNEL')) + 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') + assert dbmgtr.configDB.get_table('PORT') == expected_db.cfgdb.get_table('PORT') assert dbmgtr.configDB.get_table('PORTCHANNEL') == expected_db.cfgdb.get_table('PORTCHANNEL') assert dbmgtr.configDB.get_table('VERSIONS') == expected_db.cfgdb.get_table('VERSIONS')