This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
generated from communitiesuk/funding-service-design-TEMPLATE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #397 from communitiesuk/FLS-870-service-desk-urls
Service desk urls
- Loading branch information
Showing
12 changed files
with
40 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ class DefaultConfig(object): | |
|
||
FLASK_ROOT = str(Path(__file__).parent.parent.parent) | ||
FLASK_ENV = environ.get("FLASK_ENV") | ||
SUPPORT_MAILBOX_EMAIL = "[email protected]" | ||
SUPPORT_DESK_APPLY = "https://mhclgdigital.atlassian.net/servicedesk/customer/portal/5/group/68" | ||
SUPPORT_DESK_ASSESS = "https://mhclgdigital.atlassian.net/servicedesk/customer/portal/5/group/70" | ||
|
||
# Logging | ||
FSD_LOG_LEVEL = logging.WARNING | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ <h1 class="govuk-heading-xl">Page not found</h1> | |
us to speak to an adviser.</p> | ||
|
||
{{ contact_details( | ||
"[email protected]", | ||
support_desk_apply, | ||
"", | ||
"", | ||
"9am to 5pm", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from bs4 import BeautifulSoup | ||
|
||
from config import Config | ||
|
||
|
||
def test_404(flask_test_client): | ||
response = flask_test_client.get("not_found") | ||
|
@@ -8,7 +10,13 @@ def test_404(flask_test_client): | |
|
||
soup = BeautifulSoup(response.data, "html.parser") | ||
|
||
assert "[email protected]" in soup.find("li").text | ||
# Find all links in the HTML | ||
links = soup.find_all("a", href=True) | ||
|
||
# Check if the portal link is present | ||
assert any( | ||
link["href"] == Config.SUPPORT_DESK_APPLY for link in links | ||
), f"Expected URL {Config.SUPPORT_DESK_APPLY} not found in the links" | ||
|
||
|
||
def test_500(flask_test_client): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
import frontend | ||
from api.session.auth_session import AuthSessionBase | ||
from app import app | ||
from config import Config | ||
from frontend.magic_links.forms import EmailForm | ||
from models.account import AccountMethods | ||
from security.utils import validate_token | ||
|
@@ -152,7 +153,7 @@ def test_reused_magic_link_with_active_session_shows_landing(self, flask_test_cl | |
soup.find_all( | ||
"a", | ||
class_="govuk-link", | ||
string=lambda text: "[email protected]" in text, | ||
href=Config.SUPPORT_DESK_APPLY, | ||
) | ||
) | ||
== 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters