Added a new E2ETest config and adjusted a couple of things

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2024-01-25 13:00:39 -05:00
parent 29c20a0ee9
commit 1b6446e213
3 changed files with 23 additions and 4 deletions

View File

@@ -81,8 +81,7 @@ class Config(object):
"IBAN": "GB33BUKB20201555555555",
"swift": "ABCDEF12",
"notify_billing_email_addresses": [
"generic@digital.cabinet-office.gov.uk",
"first.last@digital.cabinet-office.gov.uk",
"tts-benefits-studio@gsa.gov",
],
}
@@ -152,6 +151,25 @@ class Staging(Production):
HEADER_COLOUR = "#00ff00" # $green
class E2ETest(Staging):
"""
An environment config that is intended to operate as if it were in the
staging environment but with the configuration of the development and test
environments so the E2E tests work.
"""
# Borrowed from development environment
SESSION_COOKIE_SECURE = False
SESSION_PROTECTION = None
HTTP_PROTOCOL = "http"
ASSET_DOMAIN = ""
ASSET_PATH = "/static/"
# Borrowed from test environment
TESTING = True
WTF_CSRF_ENABLED = False
class Demo(Staging):
HEADER_COLOUR = "#6F72AF" # $mauve
@@ -173,6 +191,7 @@ class Scanning(Production):
configs = {
"development": Development,
"test": Test,
"e2etest": E2ETest,
"scanning": Scanning,
"staging": Staging,
"demo": Demo,