|
8 | 8 | from hypha.apply.activity.models import Activity |
9 | 9 | from hypha.apply.determinations.options import ACCEPTED, NEEDS_MORE_INFO, REJECTED |
10 | 10 | from hypha.apply.determinations.views import BatchDeterminationCreateView |
11 | | -from hypha.apply.funds.models import ApplicationSubmission |
12 | 11 | from hypha.apply.funds.tests.factories import ApplicationSubmissionFactory |
13 | 12 | from hypha.apply.users.tests.factories import StaffFactory, UserFactory |
14 | 13 | from hypha.apply.utils.testing import BaseViewTestCase |
@@ -469,19 +468,6 @@ def test_can_submit_batch_determination_more_info_comment(self): |
469 | 468 |
|
470 | 469 | self.assertRedirects(response, self.url_from_pattern("apply:submissions:list")) |
471 | 470 |
|
472 | | - def test_sets_next_on_redirect(self): |
473 | | - test_path = "/a/path/?with=query&a=sting" |
474 | | - request = RequestFactory().get("", PATH_INFO=test_path) |
475 | | - redirect = BatchDeterminationCreateView.should_redirect( |
476 | | - request, |
477 | | - ApplicationSubmission.objects.none(), |
478 | | - ["rejected"], |
479 | | - ) |
480 | | - url = urllib.parse.urlparse(redirect.url) |
481 | | - query = urllib.parse.parse_qs(url.query) |
482 | | - next_path = urllib.parse.unquote_plus(query["next"][0]) |
483 | | - self.assertEqual(next_path, test_path) |
484 | | - |
485 | 471 | def test_success_redirects_if_exists(self): |
486 | 472 | test_path = "/a/path/?with=query&a=sting" |
487 | 473 | view = BatchDeterminationCreateView() |
|
0 commit comments