Private
Public Access
1
0

updating tests to reflect new UI behavior

This commit is contained in:
Sander Roosendaal
2021-03-05 18:27:33 +01:00
parent 232c144efa
commit e02fec00ee
2 changed files with 17 additions and 4 deletions

View File

@@ -167,8 +167,13 @@ class TrainingPlanTest(TestCase):
form = PlannedSessionForm(post_data)
self.assertTrue(form.is_valid())
expected_url = reverse('plannedsessions_view',kwargs={'userid':0})
response = self.c.post(url,post_data)
self.assertEqual(response.status_code,200)
self.assertRedirects(response,
expected_url=expected_url,
status_code=302,target_status_code=200)