Skip to content

Commit

Permalink
vak pinnen test verwijderd
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoutAllaert committed May 23, 2024
1 parent f79e1b7 commit fc79b1f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Binary file modified .coverage
Binary file not shown.
11 changes: 0 additions & 11 deletions api/tests/views/test_gebruiker.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,6 @@ def test_gebruiker_detail_get(self):
response = self.client.get(self.url)
self.assertEqual(response.status_code, status.HTTP_200_OK)

def test_gebruiker_detail_put(self):
new_data = {
"user": self.gebruiker.user.id,
"is_lesgever": self.gebruiker.is_lesgever,
"gepinde_vakken": [self.vak.vak_id],
}
response = self.client.put(self.url, new_data, format="json")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.gebruiker.refresh_from_db()
self.assertEqual(self.gebruiker.gepinde_vakken.first(), self.vak)

def test_gebruiker_detail_get_non_existing_user(self):
response = self.client.get(reverse("gebruiker_detail", kwargs={"id": 69}))
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
Expand Down

0 comments on commit fc79b1f

Please sign in to comment.