Changeset 3389960 in flexoentity for tests/test_composite_backend.py
- Timestamp:
- 02/27/26 13:47:23 (3 days ago)
- Branches:
- unify_backends
- Children:
- c1144fd
- Parents:
- 54941b4
- File:
-
- 1 edited
-
tests/test_composite_backend.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/test_composite_backend.py
r54941b4 r3389960 10 10 backend = CompositeBackend(authoritative_backend=primary, sync_backends=[secondary]) 11 11 12 backend.save(sample_domain )12 backend.save(sample_domain.to_dict()) 13 13 14 14 fid = sample_domain.flexo_id … … 25 25 backend = CompositeBackend(authoritative_backend=primary, sync_backends=[secondary]) 26 26 27 primary.save(sample_domain )27 primary.save(sample_domain.to_dict()) 28 28 29 29 # secondary has nothing, but composite should still load from primary 30 30 fid = sample_domain.flexo_id 31 loaded = backend.load(fid)31 loaded = Domain.from_dict(backend.load(fid)) 32 32 assert isinstance(loaded, Domain) 33 33 … … 39 39 backend = CompositeBackend(authoritative_backend=primary, sync_backends=[secondary]) 40 40 41 backend.save(sample_domain )41 backend.save(sample_domain.to_dict()) 42 42 43 43 backend.clear()
Note:
See TracChangeset
for help on using the changeset viewer.
