mark 30-times runs tests as ignored by default

This commit is contained in:
holger krekel
2020-06-05 16:43:21 +02:00
parent be573767f4
commit 186512b356
3 changed files with 4 additions and 3 deletions

View File

@@ -33,9 +33,6 @@ def pytest_addoption(parser):
def pytest_configure(config):
config.addinivalue_line(
"markers", "ignored: Mark test as bing slow, skipped unless --ignored is used."
)
cfg = config.getoption('--liveconfig')
if not cfg:
cfg = os.getenv('DCC_NEW_TMP_EMAIL')

View File

@@ -637,6 +637,7 @@ class TestOnlineAccount:
ev_msg = ac1_clone._evtracker.wait_next_messages_changed()
assert ev_msg.text == msg_out.text
@pytest.mark.ignored
@pytest.mark.parametrize('i', range(30))
def test_mark_read_on_server(self, acfactory, lp, i):
ac1 = acfactory.get_online_configuring_account()
@@ -680,6 +681,7 @@ class TestOnlineAccount:
time.sleep(1) # We might need to wait because Imaplib is slower than DC-Core
assert imap2.get_unread_cnt() == 0
@pytest.mark.ignored
@pytest.mark.parametrize('i', range(30))
def test_mark_bcc_read_on_server(self, acfactory, lp, i):
ac1 = acfactory.get_online_configuring_account(mvbox=True, move=True)

View File

@@ -71,6 +71,8 @@ norecursedirs = .tox
xfail_strict=true
timeout = 90
timeout_method = thread
markers =
ignored: ignore this test in default test runs, use --ignored to run.
[flake8]
max-line-length = 120