mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-17 09:36:33 +03:00
fix(ci): stabilize and speed up CI (#5145)
This commit is contained in:
+11
@@ -9,6 +9,17 @@ from collections.abc import Iterator
|
||||
|
||||
import certifi
|
||||
import pytest
|
||||
from loguru import logger
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _isolate_nanobot_log_activation() -> Iterator[None]:
|
||||
"""Keep CLI log settings from leaking into later tests in the same process."""
|
||||
logger.enable("nanobot")
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
logger.enable("nanobot")
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
|
||||
Reference in New Issue
Block a user