H2OTest / tests /ui /conftest.py
elineve's picture
Upload 301 files
07423df
raw
history blame
435 Bytes
import logging
from functools import partial, partialmethod
import pytest
logging.TRACE = 5 # type: ignore
logging.addLevelName(logging.TRACE, "TRACE") # type: ignore
logging.Logger.trace = partialmethod(logging.Logger.log, logging.TRACE) # type: ignore
logging.trace = partial(logging.log, logging.TRACE) # type: ignore
@pytest.fixture(scope="session")
def logger() -> logging.Logger:
return logging.getLogger("ui-tests")