コード例 #1
0
 def test_remove_lecturer_from_db(self, fill_db):
     remove_lecturer_from_db("Moshe", "A", "math")
     assert checkAddInput("Moshe", "A", "math")
コード例 #2
0
 def test_checkAddInput_wrong_institution(self, fill_db):
     assert checkAddInput("Yosi Yosef", "Aasdasd", "math") is False
コード例 #3
0
 def test_checkAddInput_wrong_faculty(self, fill_db):
     assert checkAddInput("Yosi Yosef", "A", "mathasdasd") is False
コード例 #4
0
 def test_checkAddInput_name_surname(self, fill_db):
     assert checkAddInput("Yosi Yosef", "A", "math")
コード例 #5
0
 def test_checkAddInput_bad_name(self, fill_db):
     assert checkAddInput("Moshe123", "A", "math") is False
コード例 #6
0
 def test_checkAddInput_empty_db(self):
     assert checkAddInput("Moshe", "A", "math") is False