From f1beefe681240113c6ec856b01e55dc646f52294 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 26 Feb 2020 07:27:52 +0100 Subject: cli: remove superfluous imports (we never use Config()) Every test hat a Config() instance but it was never referenced. It has been introduced by simple means of copy/pasting the first nameserver test. --- scripts/cli/base_interfaces_test.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'scripts/cli/base_interfaces_test.py') diff --git a/scripts/cli/base_interfaces_test.py b/scripts/cli/base_interfaces_test.py index 6c558795a..180a11bfb 100644 --- a/scripts/cli/base_interfaces_test.py +++ b/scripts/cli/base_interfaces_test.py @@ -15,7 +15,6 @@ import os import unittest -from vyos.config import Config from vyos.configsession import ConfigSession, ConfigSessionError from netifaces import ifaddresses, AF_INET, AF_INET6 from vyos.validate import is_intf_addr_assigned, is_ipv6_link_local @@ -25,8 +24,6 @@ class BasicInterfaceTest: class BaseTest(unittest.TestCase): def setUp(self): self.session = ConfigSession(os.getpid()) - env = self.session.get_session_env() - self.config = Config(session_env=env) self._test_addr = ['192.0.2.1/25', '2001:db8:1::ffff/64'] self._test_mtu = False -- cgit v1.2.3