def test_validate_meeting(meeting, date, expected): try: actual = validate_meeting(meeting, date) assert actual == expected except ValueError: with pytest.raises(ValueError) as excinfo: actual = validate_meeting(meeting, date) assert str(excinfo.value) == expected
def sout(self): rc = self.rc if rc.test: print('Meeting validator helper') return date = dt.date.today() collection = self.gtx["meetings"] for meeting in collection: validate_meeting(meeting, date) return