solve test startup.py

This commit is contained in:
geekan 2023-12-28 15:46:17 +08:00
parent 25c42890b8
commit 58c8a38fc3
5 changed files with 8 additions and 8 deletions

View file

@ -89,6 +89,7 @@ def loguru_caplog(caplog):
@pytest.fixture(scope="session", autouse=True)
def setup_and_teardown_git_repo(request):
CONFIG.git_repo = GitRepository(local_path=DEFAULT_WORKSPACE_ROOT / "unittest")
CONFIG.git_reinit = True
# Destroy git repo at the end of the test session.
def fin():