diff --git a/tests/conftest.py b/tests/conftest.py index 6580f2f..369b0c8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -59,7 +59,7 @@ def event_loop(request): loop = asyncio.get_event_loop() yield loop -@pytest.fixture(scope="module") +@pytest.fixture(scope="session", autouse=True) def raise_on_logger_msg(): def proc(logger, method_name, event_dict): if method_name in ('warn', 'error'): diff --git a/tests/test_regex.py b/tests/test_regex.py index 9a60040..5ffd50f 100644 --- a/tests/test_regex.py +++ b/tests/test_regex.py @@ -19,7 +19,7 @@ async def test_regex(get_version): "regex": 'for (\w+) examples', }) == "illustrative" -async def test_missing_ok(get_version, raise_on_logger_msg): +async def test_missing_ok(get_version): assert await get_version("example", { "url": "http://example.net/", "regex": "foobar",