updates to session.clear to clear out all configuration data as well, updated session.shutdown to use clear, updated tests to account for this

This commit is contained in:
bharnden 2019-10-24 13:05:02 -07:00
parent dc27fadb10
commit 5c12651e4e
5 changed files with 18 additions and 26 deletions

View file

@ -120,10 +120,6 @@ def session(global_session):
global_session.set_state(EventTypes.CONFIGURATION_STATE)
yield global_session
global_session.clear()
global_session.location.reset()
global_session.services.reset()
global_session.mobility.config_reset()
global_session.emane.config_reset()
@pytest.fixture
@ -133,11 +129,6 @@ def coretlv(module_coretlv):
coreemu.sessions[session.id] = session
yield module_coretlv
coreemu.shutdown()
session.clear()
session.location.reset()
session.services.reset()
session.mobility.config_reset()
session.emane.config_reset()
def pytest_addoption(parser):