Skip to content

Commit

Permalink
Fixed test broken when converting to structured design
Browse files Browse the repository at this point in the history
  • Loading branch information
KYDronePilot committed Dec 12, 2019
1 parent 779f6d9 commit c1a3f7b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from grades.models.requirement import get_requirements_structure
from grades.serializers import RequirementStructureSerializer
from grades.tests.test_model_relationships import TestDatabaseSetup

Expand Down Expand Up @@ -25,7 +26,7 @@ def setUp(self) -> None:

def test_requirements_structure_serializer(self):
self.csc_494_instance.students.add(self.student_william)
struct = self.csg_concentration_sub_req.get_requirements_structure(self.student_william)
struct = get_requirements_structure(self.csg_concentration_sub_req, self.student_william)
serialized = RequirementStructureSerializer(struct)
self.assertEqual(
serialized.data,
Expand Down

0 comments on commit c1a3f7b

Please sign in to comment.