Changeset 5c72356 in flexoentity for tests/test_id_stress.py
- Timestamp:
- 11/02/25 18:49:14 (2 months ago)
- Branches:
- master
- Children:
- bf30018
- Parents:
- 8aa20c7
- File:
-
- 1 edited
-
tests/test_id_stress.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/test_id_stress.py
r8aa20c7 r5c72356 82 82 83 83 84 def test_version_ceiling_enforcement(sample_question):85 """Simulate approaching @999 to trigger obsolescence guard."""86 q = sample_question87 q.approve()88 89 # artificially bump version number to near ceiling90 q.flexo_id = FlexOID.from_oid_and_version(q.flexo_id, 998)91 92 # 998 → 999 is allowed93 q.sign()94 assert q.flexo_id.version == 99995 96 # 999 → 1000 should raise RuntimeError97 with pytest.raises(ValueError):98 q.publish()99 100 101 84 def test_massive_lifecycle_simulation(sample_question): 102 85 """
Note:
See TracChangeset
for help on using the changeset viewer.
