Let users download the crown agreement

This (partially) reverts commit dca5546cbd

Depends on

- [ ] agreement being uploaded to the bucket in all environments as
      `crown.pdf`
This commit is contained in:
Chris Hill-Scott
2018-03-28 13:52:41 +01:00
parent 714b9289b4
commit 793842bb3b
3 changed files with 7 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ class _MockS3Object():
@pytest.mark.parametrize('email_address, expected_status', [
('test@cabinet-office.gov.uk', 404),
('test@cabinet-office.gov.uk', 200),
('test@aylesburytowncouncil.gov.uk', 200),
('test@unknown.gov.uk', 404),
])
@@ -37,11 +37,11 @@ def test_show_agreement_page(
@pytest.mark.parametrize('email_address, expected_file_fetched, expected_file_served', [
pytest.mark.xfail((
(
'test@cabinet-office.gov.uk',
'crown.pdf',
'GOV.UK Notify data sharing and financial agreement.pdf',
), raises=AssertionError),
),
(
'test@aylesburytowncouncil.gov.uk',
'non-crown.pdf',