Skip to content

Commit

Permalink
warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JibrilExe committed Feb 23, 2024
1 parent f91ce9d commit ad43b13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/tests/models/course_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def test_foreignkey_coursestudents_uid(

db_session.add(course)
db_session.commit()
for s in course_students_relation:
s.course_id = course.course_id

with pytest.raises(
IntegrityError
Expand Down

0 comments on commit ad43b13

Please sign in to comment.