- Timestamp:
- 12/05/25 12:01:08 (6 weeks ago)
- Branches:
- master
- Children:
- 1f5bf2d
- Parents:
- 753855a
- Location:
- tests
- Files:
-
- 3 edited
-
conftest.py (modified) (1 diff)
-
test_composite_backend.py (modified) (3 diffs)
-
test_persistance_integrity.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/conftest.py
r753855a rea28ca0 33 33 34 34 @pytest.fixture 35 def sample_domain_manager(): 36 return DomainManager(CompositeBackend(Domain), EntityRegistry()) 35 def sample_domain_manager(backend): 36 return DomainManager(CompositeBackend(authoritative_backend=backend, 37 sync_backends=None), EntityRegistry()) 37 38 38 39 # ───────────────────────────────────────────────────────────── -
tests/test_composite_backend.py
r753855a rea28ca0 8 8 secondary = InMemoryBackend(Domain) 9 9 10 backend = CompositeBackend( Domain, primary, secondary)10 backend = CompositeBackend(authoritative_backend=primary, sync_backends=[secondary]) 11 11 12 12 backend.save(sample_domain) … … 23 23 secondary = InMemoryBackend(Domain) 24 24 25 backend = CompositeBackend( Domain, primary, secondary)25 backend = CompositeBackend(authoritative_backend=primary, sync_backends=[secondary]) 26 26 27 27 primary.save(sample_domain) … … 37 37 secondary = InMemoryBackend(Domain) 38 38 39 backend = CompositeBackend( Domain, primary, secondary)39 backend = CompositeBackend(authoritative_backend=primary, sync_backends=[secondary]) 40 40 41 41 backend.save(sample_domain) -
tests/test_persistance_integrity.py
r753855a rea28ca0 49 49 file = tmp_path / "question.json" 50 50 json_str = approved_domain.to_json() 51 print("JSON", json_str)52 51 file.write_text(json_str) 53 52
Note:
See TracChangeset
for help on using the changeset viewer.
