From 186512b356ed5079c2d7c3e19fb8dc6d759b4441 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 5 Jun 2020 16:43:21 +0200 Subject: [PATCH] mark 30-times runs tests as ignored by default --- python/src/deltachat/testplugin.py | 3 --- python/tests/test_account.py | 2 ++ python/tox.ini | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/python/src/deltachat/testplugin.py b/python/src/deltachat/testplugin.py index 334db8cb5..939e892e9 100644 --- a/python/src/deltachat/testplugin.py +++ b/python/src/deltachat/testplugin.py @@ -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') diff --git a/python/tests/test_account.py b/python/tests/test_account.py index f8603f897..73c3736dd 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -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) diff --git a/python/tox.ini b/python/tox.ini index 3309b08a3..91180223a 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -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