docker-dhcp-relay: Fix test call to MockConfigDb (#9903)

*docker-dhcp-relay: Fix test call to MockConfigDb

Signed-off-by: Christian Svensson <blue@cmd.nu>
This commit is contained in:
Christian Svensson 2022-02-02 03:52:52 +01:00 committed by GitHub
parent bc88535b88
commit 660c0cbe7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,8 @@ class TestDhcpRelayHelper(object):
fs.create_file(DBCONFIG_PATH)
MockConfigDb.set_config_db(test_data["config_db"])
runner = CliRunner()
table = MockConfigDb.get_table(self, "DHCP_RELAY")
config_db = MockConfigDb()
table = config_db.get_table("DHCP_RELAY")
result = show.get_data(table, "Vlan1000")
assert result == expected_table