Skip to content

Commit 0482707

Browse files
committed
removed next path test for batch determination code
1 parent da6a805 commit 0482707

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

hypha/apply/determinations/tests/test_views.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from hypha.apply.activity.models import Activity
99
from hypha.apply.determinations.options import ACCEPTED, NEEDS_MORE_INFO, REJECTED
1010
from hypha.apply.determinations.views import BatchDeterminationCreateView
11-
from hypha.apply.funds.models import ApplicationSubmission
1211
from hypha.apply.funds.tests.factories import ApplicationSubmissionFactory
1312
from hypha.apply.users.tests.factories import StaffFactory, UserFactory
1413
from hypha.apply.utils.testing import BaseViewTestCase
@@ -469,19 +468,6 @@ def test_can_submit_batch_determination_more_info_comment(self):
469468

470469
self.assertRedirects(response, self.url_from_pattern("apply:submissions:list"))
471470

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-
485471
def test_success_redirects_if_exists(self):
486472
test_path = "/a/path/?with=query&a=sting"
487473
view = BatchDeterminationCreateView()

0 commit comments

Comments
 (0)