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
+1 -1
View File
@@ -22,7 +22,7 @@ class ProbeDataset:
}
@cache_to_disk()
# @cache_to_disk(n_days_to_cache=1)
def load_dataset_generic(name, getter=lambda x: x["train"]["prompt"]):
from datasets import load_dataset
Generated
+35 -199
View File
File diff suppressed because it is too large Load Diff
+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()