Beispiel #1
0
    def test_removing_item_from_wrong_section_fails(self):
        rezume = Rezume()

        item = Education(institution="edX",
                         area="humanity",
                         start_date="2020-07-05")
        rezume.add_item("education", item)

        with pytest.raises(RezumeError):
            rezume.discard_item("work", item)
Beispiel #2
0
 def test_removing_item_from_unknown_section_fails(self):
     rezume = Rezume()
     with pytest.raises(RezumeError):
         rezume.discard_item("-work-", Experience.construct())