fix(tests):

This commit is contained in:
Alexander Myasoedov
2025-04-02 13:31:36 +03:00
parent a8e80e85e1
commit f2b95a0040
3 changed files with 44 additions and 200 deletions
+8
View File
@@ -1,8 +1,16 @@
import os
import pytest
from cache_to_disk import delete_old_disk_caches
from agentic_security.logutils import logger
def pytest_runtest_setup(item):
if "slow" in item.keywords and not os.getenv("RUN_SLOW_TESTS"):
pytest.skip("Skipping slow test")
@pytest.fixture(autouse=True, scope="session")
def setup_delete_old_disk_caches():
logger.info("delete_old_disk_caches")
delete_old_disk_caches()