Changeset 3389960 in flexoentity for tests/test_id_stress.py


Ignore:
Timestamp:
02/27/26 13:47:23 (3 days ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
unify_backends
Children:
c1144fd
Parents:
54941b4
Message:

redesign of Identity and PersistanceBackends - this is a breaking change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/test_id_stress.py

    r54941b4 r3389960  
    5252    assert all("@" in id_str for id_str in ids)
    5353
    54 def test_id_generation_is_deterministic(sample_domain):
    55     """
    56     Generating the same entity twice with same inputs yields identical ID.
    57     (No runtime disambiguation; IDs are deterministic by design.)
    58     """
    59     entity_type = EntityType.ITEM
    60     estate = EntityState.DRAFT
    61     text = "identical question text"
     54# def test_id_generation_is_deterministic(sample_domain):
     55#     """
     56#     Generating the same entity twice with same inputs yields identical ID.
     57#     (No runtime disambiguation; IDs are deterministic by design.)
     58#     """
     59#     entity_type = EntityType.ITEM
     60#     estate = EntityState.DRAFT
     61#     text = "identical question text"
    6262
    63     id1 = FlexOID.generate(sample_domain.domain_id, entity_type.value, estate.value, text)
    64     id2 = FlexOID.generate(sample_domain.domain_id, entity_type.value, estate.value, text)
    65     # IDs must be identical because generation is deterministic
    66     assert id1 == id2
     63#     id1 = FlexOID.generate(sample_domain.domain_id, entity_type.value, estate.value, text)
     64#     id2 = FlexOID.generate(sample_domain.domain_id, entity_type.value, estate.value, text)
     65#     # IDs must be identical because generation is deterministic
     66#     assert id1 == id2
    6767
    6868def test_massive_lifecycle_simulation(cert_ref_linux, sample_domain):
Note: See TracChangeset for help on using the changeset viewer.