Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Adding test to check contact page is gone
Browse files Browse the repository at this point in the history
  • Loading branch information
stuart-mindt committed Feb 15, 2024
1 parent 926c81a commit ebbe2ce
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion core/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from conf.tests.test_urls import reload_urlconf
from core.forms import CapitalInvestContactForm
from core.tests.helpers import create_response, stub_page
from core.tests.helpers import create_response, stub_page, dummy_page
from core.views import (
MultilingualCMSPageFromPathView,
CapitalInvestContactFormView,
Expand Down Expand Up @@ -245,6 +245,20 @@ def test_capital_invest_contact_form_success_page_returns_404_when_feature_flag_
assert response.status_code == 404


@patch('directory_cms_client.client.cms_api_client.lookup_by_path')
def test_international_contact_form(mock_cms_response, client, settings):
settings.FEATURE_FLAGS['INTERNATIONAL_TRIAGE_ON'] = False
reload_urlconf(settings)

mock_cms_response.return_value = create_response(dummy_page)

url = reverse('contact-page-international')
response = client.get(url)

assert response.status_code == 404



@pytest.fixture
def capital_invest_contact_form_data(captcha_stub):
return {
Expand Down

0 comments on commit ebbe2ce

Please sign in to comment.