File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import inspect
4
- import logging
5
4
import os
6
5
from typing import Any , Iterator , List
7
6
8
7
import pyalect .builtins .pytest # noqa
9
8
import pytest
10
9
from _pytest .config import Config
11
10
from _pytest .config .argparsing import Parser
12
- from _pytest .logging import LogCaptureFixture
13
- from _pytest .logging import caplog as _caplog # noqa
14
11
from selenium .webdriver import Chrome , ChromeOptions
15
12
from selenium .webdriver .support .ui import WebDriverWait
16
13
@@ -107,16 +104,6 @@ def driver_is_headless(pytestconfig: Config):
107
104
return bool (pytestconfig .option .headless )
108
105
109
106
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
-
120
107
@pytest .fixture (scope = "session" , autouse = True )
121
108
def _restore_client (pytestconfig : Config ) -> Iterator [None ]:
122
109
"""Restore the client's state before and after testing
You can’t perform that action at this time.
0 commit comments