Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /HKUDS_LightRAG /tests /kg /test_reservation_architecture.py
| """Architecture guards for centralized pipeline reservation coordination.""" | |
| from pathlib import Path | |
| import pytest | |
| PROJECT_ROOT = Path(__file__).resolve().parents[2] | |
| LIGHTRAG_ROOT = PROJECT_ROOT / "lightrag" | |
| SHARED_STORAGE = LIGHTRAG_ROOT / "kg" / "shared_storage.py" | |
| def _production_python_sources(): | |
| for path in LIGHTRAG_ROOT.rglob("*.py"): | |
| if path != SHARED_STORAGE: | |
| yield path | |
| def test_dead_reservation_reconcile_is_shared_storage_private(): | |
| offenders = [ | |
| str(path.relative_to(PROJECT_ROOT)) | |
| for path in _production_python_sources() | |
| if "reconcile_dead_pipeline_reservations" in path.read_text() | |
| ] | |
| assert offenders == [] | |
| def test_reservation_owner_records_are_created_only_in_shared_storage(): | |
| offenders = [ | |
| str(path.relative_to(PROJECT_ROOT)) | |
| for path in _production_python_sources() | |
| if "make_owner_record(" in path.read_text() | |
| ] | |
| assert offenders == [] | |
Xet Storage Details
- Size:
- 1.01 kB
- Xet hash:
- f943ca295e0b39839b5797dd74929a73d2da0cda75179391930aa69f45695e3b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.