Skip to content
Snippets Groups Projects
Commit 4d2f3e93 authored by Dominik Seeger's avatar Dominik Seeger
Browse files

corrected test

parent 9b790cda
No related branches found
No related tags found
No related merge requests found
Pipeline #91688 failed
This commit is part of merge request !150. Comments created here will be created in the context of that merge request.
......@@ -227,7 +227,8 @@ class UntestedParent:
self.write_comments_on_lines([(0, 'I disagree'), (1, 'Full points!')])
self.browser.find_element_by_id('score-full').click()
self.browser.find_element_by_id('submit-feedback').click()
WebDriverWait(self.browser, 10).until(ec.url_contains('subscription/ended'))
sub_url = 'subscription/' + str(self.sub_type.pk) + '/ended'
WebDriverWait(self.browser, 10).until(ec.url_contains(sub_url))
submission_for_code = Submission.objects.get(text=code)
self.assertEqual(self.sub_type.full_score, submission_for_code.feedback.score)
self.assertEqual(3, submission_for_code.feedback.feedback_lines.count())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment