- Timestamp:
- 12/03/25 16:24:38 (6 weeks ago)
- Branches:
- master
- Children:
- 4459fa4
- Parents:
- 4f91fed
- Location:
- tests
- Files:
-
- 2 edited
-
conftest.py (modified) (2 diffs)
-
test_domain.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/conftest.py
r4f91fed rc296f76 3 3 from pathlib import Path 4 4 from datetime import datetime 5 from flexoentity import Domain, FlexoSignature, DomainManager, EntityRegistry 5 from flexoentity import Domain, FlexoSignature, DomainManager, EntityRegistry, CompositeBackend 6 6 from flexoentity import get_signing_backend, CertificateReference 7 7 … … 30 30 @pytest.fixture 31 31 def sample_domain_manager(): 32 return DomainManager( EntityRegistry())32 return DomainManager(CompositeBackend(Domain), EntityRegistry()) 33 33 34 34 # ───────────────────────────────────────────────────────────── -
tests/test_domain.py
r4f91fed rc296f76 20 20 sample_domain_manager.add(sample_domain) 21 21 # Manager must know it now 22 assert sample_domain_manager.get ("PY_ARITHM") is sample_domain22 assert sample_domain_manager.get_by_domain_id("PY_ARITHM") is sample_domain 23 23 24 24 … … 38 38 def test_lookup_by_oid(sample_domain, sample_domain_manager): 39 39 sample_domain_manager.add(sample_domain) 40 found = sample_domain_manager.get (sample_domain.domain_id)40 found = sample_domain_manager.get_by_domain_id(sample_domain.domain_id) 41 41 assert found is sample_domain 42 43 42 44 43 # ---------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.
