Skip to content

Commit

Permalink
updated module_order in test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Rutvikrj26 committed Jun 11, 2024
1 parent 9d4aba0 commit 8fa5d07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions physionet-django/training/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_current_module_block(self):

response = self.client.get(reverse("platform_training_module_block", kwargs={
'training_slug': "world-101-introduction-to-continents-and-countries",
'module_id': 1, 'order': 1}))
'module_order': 1, 'order': 1}))
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, "training/course_block.html")

Expand All @@ -106,13 +106,13 @@ def test_next_module_block(self):

response = self.client.get(reverse("next_module_block", kwargs={
'training_slug': "world-101-introduction-to-continents-and-countries",
'module_id': 1, 'order': 1}))
'module_order': 1, 'order': 1}))
self.assertEqual(response.status_code, 302)

def test_previous_module_block(self):
"""test if the previous module block page loads"""

response = self.client.get(reverse("previous_module_block", kwargs={
'training_slug': "world-101-introduction-to-continents-and-countries",
'module_id': 1, 'order': 1}))
'module_order': 1, 'order': 1}))
self.assertEqual(response.status_code, 302)
8 changes: 4 additions & 4 deletions physionet-django/training/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# # Parameters for testing URLs
TEST_DEFAULTS = {
'training_slug': 'world-101-introduction-to-continents-and-countries',
'module_id': 1,
'module_order': 1,
'order': 1
}
TEST_CASES = {
Expand All @@ -27,19 +27,19 @@
'platform_training_module_block': {
'_user_': 'tompollard',
'training_slug': 'world-101-introduction-to-continents-and-countries',
'module_id': 1,
'module_order': 1,
'order': 1
},
'next_module_block': {
'_user_': 'tompollard',
'training_slug': 'world-101-introduction-to-continents-and-countries',
'module_id': 1,
'module_order': 1,
'order': 1
},
'previous_module_block': {
'_user_': 'tompollard',
'training_slug': 'world-101-introduction-to-continents-and-countries',
'module_id': 1,
'module_order': 1,
'order': 1
},
'start_training': {'_skip_': True}
Expand Down

0 comments on commit 8fa5d07

Please sign in to comment.