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/test_service_snmp.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'scripts/cli/test_service_snmp.py') diff --git a/scripts/cli/test_service_snmp.py b/scripts/cli/test_service_snmp.py index d2e5fff27..d4bbdc0b1 100755 --- a/scripts/cli/test_service_snmp.py +++ b/scripts/cli/test_service_snmp.py @@ -21,7 +21,6 @@ import unittest from vyos.validate import is_ipv4 from psutil import process_iter -from vyos.config import Config from vyos.configsession import ConfigSession, ConfigSessionError from vyos.util import read_file @@ -36,9 +35,6 @@ def get_config_value(key): class TestSNMPService(unittest.TestCase): def setUp(self): self.session = ConfigSession(os.getpid()) - env = self.session.get_session_env() - self.config = Config(session_env=env) - # ensure we can also run this test on a live system - so lets clean # out the current configuration :) self.session.delete(base_path) -- cgit v1.2.3