Fix rebase errors

This commit is contained in:
Seamus Johnston 2023-01-24 10:20:44 -06:00
parent 0f87d9ea9a
commit 6a7dbbab95
No known key found for this signature in database
GPG key ID: 2F21225985069105

View file

@ -743,6 +743,12 @@ class DomainApplicationTests(TestWithUser, WebTest):
def test_application_ao_dynamic_text(self): def test_application_ao_dynamic_text(self):
type_page = self.app.get(reverse("application:")).follow() type_page = self.app.get(reverse("application:")).follow()
# django-webtest does not handle cookie-based sessions well because it keeps
# resetting the session key on each new request, thus destroying the concept
# of a "session". We are going to do it manually, saving the session ID here
# and then setting the cookie on each request.
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
# ---- TYPE PAGE ---- # ---- TYPE PAGE ----
type_form = type_page.form type_form = type_page.form
type_form["organization_type-organization_type"] = "federal" type_form["organization_type-organization_type"] = "federal"