feat: parse class view

This commit is contained in:
莘权 马 2024-01-02 23:09:09 +08:00
parent 49a95e6608
commit 718dd0fd9e
10 changed files with 272 additions and 30 deletions

View file

@ -9,6 +9,7 @@
import asyncio
import logging
import re
import uuid
from unittest.mock import Mock
import pytest
@ -90,9 +91,9 @@ def loguru_caplog(caplog):
# init & dispose git repo
@pytest.fixture(scope="session", autouse=True)
@pytest.fixture(scope="function", autouse=True)
def setup_and_teardown_git_repo(request):
CONFIG.git_repo = GitRepository(local_path=DEFAULT_WORKSPACE_ROOT / "unittest")
CONFIG.git_repo = GitRepository(local_path=DEFAULT_WORKSPACE_ROOT / f"unittest/{uuid.uuid4().hex}")
CONFIG.git_reinit = True
# Destroy git repo at the end of the test session.