Changeset e92c42d in flexograder


Ignore:
Timestamp:
01/19/26 15:49:49 (2 months ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
fake-data, main, master
Children:
7d9089b
Parents:
11cf70d
Message:

fix a failing test

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • flexograder/core_entities/media_items.py

    r11cf70d re92c42d  
    5252            "title": self.title,
    5353            "caption": self.caption,
    54             "mtype": self.mtype,
     54            "type": self.mtype,
    5555        })
    5656        return base
  • tests/test_load_exam.py

    r11cf70d re92c42d  
    77    @pytest.fixture(scope="class")
    88    def sample_exam_path(self):
    9         return "./examples/demo/example_exam.json"
     9        return "./examples/demo/new_export.json"
    1010
    1111    @pytest.fixture(scope="class")
     
    2323    def test_element_count(self, exam):
    2424        assert len(exam.elements) == 7
    25 
    26 #    def test_question_type(self, exam):
    27 #        assert exam.elements.values()[0].subtype == "IDForm"
    28 #        assert exam.elements.values()[1].subtype == "InstructionBlock"
    29 
    30 #    def test_question_text(self, exam):
    31 #        question = exam.elements.values()[1]
    32 #        assert "Laden Sie hier die verlinkte Referenz herunter" in question.text_seed
Note: See TracChangeset for help on using the changeset viewer.