Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vucis committed Mar 14, 2024
1 parent f4e6eb8 commit 0f21ab9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions backend/tests/endpoints/course/share_link_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ def test_post_share_links_404(self, client):
response = client.post("courses/0/join_codes", json={"for_admins": True}, headers={"Authorization":"teacher2"})
assert response.status_code == 404

def test_delete_share_links_404(self, valid_course_entry, client):
"""Test whether the share links are accessible to delete"""
response = client.delete(f"courses/{valid_course_entry.course_id}/join_codes/7", headers={"Authorization":"teacher2"})
assert response.status_code == 404

def test_for_admins_required(self, valid_course_entry, client):
"""Test whether the for_admins field is required"""
response = client.post(f"courses/{valid_course_entry.course_id}/join_codes", json={}, headers={"Authorization":"teacher2"})
Expand Down

0 comments on commit 0f21ab9

Please sign in to comment.