Changeset b24d72e in flexoentity for tests/conftest.py
- Timestamp:
- 11/21/25 11:01:43 (8 weeks ago)
- Branches:
- master
- Children:
- a475496
- Parents:
- 9592936
- File:
-
- 1 edited
-
tests/conftest.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/conftest.py
r9592936 rb24d72e 4 4 from dataclasses import dataclass, field 5 5 from typing import List 6 from flexoentity import FlexOID, FlexoEntity, EntityType, EntityState, Domain , DomainManager6 from flexoentity import FlexOID, FlexoEntity, EntityType, EntityState, Domain 7 7 8 8 @pytest.fixture … … 14 14 monkeypatch.setattr("flexoentity.id_factory.datetime", FixedDate) 15 15 return FixedDate 16 17 @pytest.fixture(autouse=True)18 def reset_domain_manager():19 DomainManager.clear() # You need to implement this20 yield21 DomainManager.clear()22 23 @pytest.fixture(autouse=True)24 def auto_domains():25 Domain.with_domain_id("GENERAL", fullname="General Domain")26 Domain.with_domain_id("TEST", fullname="Test Domain")27 16 28 17 @dataclass
Note:
See TracChangeset
for help on using the changeset viewer.
