[+] Add tests

This commit is contained in:
Hykilpikonna
2021-10-03 16:25:47 -04:00
parent e43f05c49a
commit ed15fda103
+4 -5
View File
@@ -256,23 +256,22 @@ def test_course_compatible() -> None:
"""
Test is_course_compatible with compatible course
"""
# TODO: Create a test
assert a2_courses.is_course_compatible(SCHEDULE_1, CON123)
def test_course_not_compatible() -> None:
"""
Test is_course_compatible with incompatible course
"""
# TODO: Create a test
assert not a2_courses.is_course_compatible(SCHEDULE_1, TMP000)
assert not a2_courses.is_course_compatible(SCHEDULE_1, CON333)
def test_compatible_sections() -> None:
"""
Test compatible_sections with compatible sections
"""
actual = a2_courses.compatible_sections(SCHEDULE_1, CON123) == {CON123_LEC0123}
expected = True
assert actual == expected
assert a2_courses.compatible_sections(SCHEDULE_1, CON123) == {CON123_LEC0123}
# TODO: Create more tests