diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-17 21:22:37 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-17 21:22:37 +0100 |
commit | 963825a3a32e3bff4f298b2accf2b7e3ed13b91b (patch) | |
tree | 4f93091401451527fd71ae540ea9acb80ea71fa7 /scripts | |
parent | e38c7397d4a7f427bef1dfebf3e7d329d895ec1e (diff) | |
download | vyos-1x-963825a3a32e3bff4f298b2accf2b7e3ed13b91b.tar.gz vyos-1x-963825a3a32e3bff4f298b2accf2b7e3ed13b91b.zip |
snmp: clean out current configuration in setUp()
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/cli/test_service_snmp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cli/test_service_snmp.py b/scripts/cli/test_service_snmp.py index e46b4b588..d2e5fff27 100755 --- a/scripts/cli/test_service_snmp.py +++ b/scripts/cli/test_service_snmp.py @@ -39,11 +39,11 @@ class TestSNMPService(unittest.TestCase): env = self.session.get_session_env() self.config = Config(session_env=env) - def tearDown(self): - # Delete SNNP configuration + # ensure we can also run this test on a live system - so lets clean + # out the current configuration :) self.session.delete(base_path) - self.session.commit() + def tearDown(self): del self.session def test_snmp(self): |