Changeset 5c72356 in flexoentity for tests/test_id_stress.py


Ignore:
Timestamp:
11/02/25 18:49:14 (2 months ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
master
Children:
bf30018
Parents:
8aa20c7
Message:

fix tests due to simplifying state and type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/test_id_stress.py

    r8aa20c7 r5c72356  
    8282
    8383
    84 def test_version_ceiling_enforcement(sample_question):
    85     """Simulate approaching @999 to trigger obsolescence guard."""
    86     q = sample_question
    87     q.approve()
    88 
    89     # artificially bump version number to near ceiling
    90     q.flexo_id = FlexOID.from_oid_and_version(q.flexo_id, 998)
    91 
    92     # 998 → 999 is allowed
    93     q.sign()
    94     assert q.flexo_id.version == 999
    95 
    96     # 999 → 1000 should raise RuntimeError
    97     with pytest.raises(ValueError):
    98         q.publish()
    99 
    100 
    10184def test_massive_lifecycle_simulation(sample_question):
    10285    """
Note: See TracChangeset for help on using the changeset viewer.