Buckets:
| """Shared test fixtures and configuration.""" | |
| from pathlib import Path | |
| import pytest | |
| FIXTURES_DIR = Path(__file__).parent / "fixtures" / "skills" | |
| BENIGN_DIR = FIXTURES_DIR / "benign" | |
| MALICIOUS_DIR = FIXTURES_DIR / "malicious" | |
| def benign_dir() -> Path: | |
| return BENIGN_DIR | |
| def malicious_dir() -> Path: | |
| return MALICIOUS_DIR | |
| def _clear_rate_limit_state(): | |
| """Reset the in-memory rate-limit state between tests.""" | |
| from malwar.api.middleware import _request_log | |
| _request_log.clear() | |
| yield | |
| _request_log.clear() | |
| def _clear_cache(): | |
| """Reset the scan cache singleton between tests.""" | |
| from malwar.cache.manager import reset_cache_manager | |
| reset_cache_manager() | |
| yield | |
| reset_cache_manager() | |
Xet Storage Details
- Size:
- 832 Bytes
- Xet hash:
- a22d1491fd71d421f6ca004fcc3c7cda1d4fc16a1f4c1cc8dad23e44b40bb0f5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.