Skip to content

Commit f2021ef

Browse files
committed
remove check error logs
we do this in the ServerMountPoint class now
1 parent ef263c2 commit f2021ef

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/conftest.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
from __future__ import annotations
22

33
import inspect
4-
import logging
54
import os
65
from typing import Any, Iterator, List
76

87
import pyalect.builtins.pytest # noqa
98
import pytest
109
from _pytest.config import Config
1110
from _pytest.config.argparsing import Parser
12-
from _pytest.logging import LogCaptureFixture
13-
from _pytest.logging import caplog as _caplog # noqa
1411
from selenium.webdriver import Chrome, ChromeOptions
1512
from selenium.webdriver.support.ui import WebDriverWait
1613

@@ -107,16 +104,6 @@ def driver_is_headless(pytestconfig: Config):
107104
return bool(pytestconfig.option.headless)
108105

109106

110-
@pytest.fixture(autouse=True)
111-
def caplog(_caplog: LogCaptureFixture) -> Iterator[LogCaptureFixture]:
112-
yield _caplog
113-
# check that there are no ERROR level log messages
114-
for record in _caplog.records:
115-
if record.exc_info:
116-
raise record.exc_info[1]
117-
assert record.levelno < logging.ERROR
118-
119-
120107
@pytest.fixture(scope="session", autouse=True)
121108
def _restore_client(pytestconfig: Config) -> Iterator[None]:
122109
"""Restore the client's state before and after testing

0 commit comments

Comments
 (0)