Don't use hard-coded email addresses in tests

This commit is contained in:
VP-
2019-10-14 15:04:29 +02:00
committed by Floris Bruynooghe
parent 9bf8bed0c3
commit cfe3c69f00
2 changed files with 7 additions and 1 deletions

View File

@@ -150,6 +150,11 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig):
lib.dc_set_config(ac._dc_context, b"configured", b"1")
return ac
def peek_online_config(self):
if not session_liveconfig:
pytest.skip("specify DCC_PY_LIVECONFIG or --liveconfig")
return session_liveconfig.get(self.live_count)
def get_online_config(self):
if not session_liveconfig:
pytest.skip("specify DCC_PY_LIVECONFIG or --liveconfig")