Skip to content

Commit

Permalink
Fixing the trainig tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rutvikrj26 committed May 1, 2024
1 parent 53243bb commit c5a86bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions physionet-django/training/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def setUp(self):
def test_take_training_get(self):
"""test if the training page loads"""

response = self.client.get(reverse("platform_training", kwargs={'training_id': 2}))
response = self.client.get(reverse("platform_training", kwargs={'training_slug': "world-101-introduction-to-continents-and-countries"}))
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, "training/course.html")

Expand All @@ -189,7 +189,7 @@ def test_take_training_post_redirect_valid(self):

response = self.client.post(reverse("start_training"), {"training_type": 2})
self.assertRedirects(response, reverse("platform_training",
kwargs={'training_id': 2}), status_code=302)
kwargs={'training_slug': "world-101-introduction-to-continents-and-countries"}), status_code=302)

def test_create_course_get(self):
"""test if admin can access the courses page"""
Expand Down

0 comments on commit c5a86bc

Please sign in to comment.