mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
python tests: remove peek_online_config()
Using peek_online_config() results in a message being sent to some other account, used by previous test. If tests are run in parallel, for example with pytest-xdist, we could be sending a message to a still online DC client.
This commit is contained in:
committed by
holger krekel
parent
cabb58a9aa
commit
c4d5f657da
@@ -194,11 +194,6 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig, datadir):
|
||||
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, pre_generated_key=True):
|
||||
if not session_liveconfig:
|
||||
pytest.skip("specify DCC_PY_LIVECONFIG or --liveconfig")
|
||||
|
||||
Reference in New Issue
Block a user