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 11from __future__ import annotations
22
33import inspect
4- import logging
54import os
65from typing import Any , Iterator , List
76
87import pyalect .builtins .pytest # noqa
98import pytest
109from _pytest .config import Config
1110from _pytest .config .argparsing import Parser
12- from _pytest .logging import LogCaptureFixture
13- from _pytest .logging import caplog as _caplog # noqa
1411from selenium .webdriver import Chrome , ChromeOptions
1512from 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 )
121108def _restore_client (pytestconfig : Config ) -> Iterator [None ]:
122109 """Restore the client's state before and after testing
You can’t perform that action at this time.
0 commit comments