Changeset 3d16c35 in flexoentity


Ignore:
Timestamp:
10/22/25 14:30:35 (3 months ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
master
Children:
524040a
Parents:
2f650ac
Message:

exam fixture added to conftest.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/conftest.py

    r2f650ac r3d16c35  
    3838        state=EntityState.DRAFT,
    3939    )
     40
     41@pytest.fixture
     42def sample_exam():
     43    """Reusable Exam fixture with default metadata for tests."""
     44    exam = Exam(
     45        domain="AF",
     46        etype=EntityType.EXAM,
     47        state=EntityState.DRAFT,
     48        title="Signals Exam",
     49        duration="30 min",
     50        allowed_aids="none",
     51        headline="Basics of Signals",
     52        intro_note="Welcome to the exam",
     53        submit_note="Submit carefully",
     54        author="Tester",
     55    )
     56    return exam
Note: See TracChangeset for help on using the changeset viewer.