Bugfix/emit background error (#4156)

* print the test name when it runs

* type hints

* can't reuse session after an exception

* better logging

---------

Co-authored-by: Richard Kuo (Danswer) <rkuo@onyx.app>
This commit is contained in:
rkuo-danswer
2025-02-28 10:35:24 -08:00
committed by GitHub
parent ed9989282f
commit f6a75c86c6
2 changed files with 32 additions and 5 deletions

View File

@ -108,3 +108,13 @@ def admin_user() -> DATestUser:
@pytest.fixture
def reset_multitenant() -> None:
reset_all_multitenant()
def pytest_runtest_logstart(nodeid: str, location: tuple[str, int | None, str]) -> None:
print(f"\nTest start: {nodeid}")
def pytest_runtest_logfinish(
nodeid: str, location: tuple[str, int | None, str]
) -> None:
print(f"\nTest end: {nodeid}")