Skip to content

Commit 1874502

Browse files
committed
Fix wording of submitted redirect tests
1 parent ea9bd3b commit 1874502

13 files changed

Lines changed: 26 additions & 26 deletions

lung_cancer_screening/questions/tests/unit/views/test_age_when_started_smoking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2222
fetch_redirect_response=False
2323
)
2424

25-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
25+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
2626
ResponseSetFactory.create(
2727
user=self.user,
2828
recently_submitted=True
@@ -72,7 +72,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
7272
fetch_redirect_response=False
7373
)
7474

75-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
75+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
7676
ResponseSetFactory.create(
7777
user=self.user,
7878
recently_submitted=True

lung_cancer_screening/questions/tests/unit/views/test_asbestos_exposure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2121
self.assertRedirects(response, "/oidc/authenticate/?next=/asbestos-exposure", fetch_redirect_response=False)
2222

2323

24-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
24+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
2525
ResponseSetFactory.create(
2626
user=self.user,
2727
recently_submitted=True
@@ -71,7 +71,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
7171
self.assertRedirects(response, "/oidc/authenticate/?next=/asbestos-exposure", fetch_redirect_response=False)
7272

7373

74-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
74+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
7575
ResponseSetFactory.create(
7676
user=self.user,
7777
recently_submitted=True

lung_cancer_screening/questions/tests/unit/views/test_cancer_diagnosis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2222
fetch_redirect_response=False
2323
)
2424

25-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
25+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
2626
ResponseSetFactory.create(
2727
user=self.user,
2828
recently_submitted=True
@@ -72,7 +72,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
7272
fetch_redirect_response=False
7373
)
7474

75-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
75+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
7676
ResponseSetFactory.create(
7777
user=self.user,
7878
recently_submitted=True

lung_cancer_screening/questions/tests/unit/views/test_check_need_appointment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2323
self.assertRedirects(response, "/oidc/authenticate/?next=/check-if-you-need-an-appointment", fetch_redirect_response=False)
2424

2525

26-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
26+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
2727
self.response_set.delete()
2828
ResponseSetFactory.create(
2929
user=self.user,
@@ -84,7 +84,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
8484
self.assertRedirects(response, "/oidc/authenticate/?next=/check-if-you-need-an-appointment", fetch_redirect_response=False)
8585

8686

87-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
87+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
8888
self.response_set.delete()
8989
ResponseSetFactory.create(
9090
user=self.user,

lung_cancer_screening/questions/tests/unit/views/test_education.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2525
fetch_redirect_response=False
2626
)
2727

28-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
28+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
2929
ResponseSetFactory.create(
3030
user=self.user,
3131
recently_submitted=True
@@ -76,7 +76,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
7676
fetch_redirect_response=False
7777
)
7878

79-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
79+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
8080
ResponseSetFactory.create(
8181
user=self.user,
8282
recently_submitted=True

lung_cancer_screening/questions/tests/unit/views/test_ethnicity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2424
fetch_redirect_response=False
2525
)
2626

27-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
27+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
2828
ResponseSetFactory.create(
2929
user=self.user,
3030
recently_submitted=True
@@ -74,7 +74,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
7474
fetch_redirect_response=False
7575
)
7676

77-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
77+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
7878
ResponseSetFactory.create(
7979
user=self.user,
8080
recently_submitted=True

lung_cancer_screening/questions/tests/unit/views/test_family_history_lung_cancer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2424
fetch_redirect_response=False
2525
)
2626

27-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
27+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
2828
ResponseSetFactory.create(
2929
user=self.user,
3030
recently_submitted=True
@@ -76,7 +76,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
7676
fetch_redirect_response=False
7777
)
7878

79-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
79+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
8080
ResponseSetFactory.create(
8181
user=self.user,
8282
recently_submitted=True

lung_cancer_screening/questions/tests/unit/views/test_gender.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2424
fetch_redirect_response=False
2525
)
2626

27-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
27+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
2828
ResponseSetFactory.create(
2929
user=self.user,
3030
recently_submitted=True
@@ -74,7 +74,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
7474
fetch_redirect_response=False
7575
)
7676

77-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
77+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
7878
ResponseSetFactory.create(
7979
user=self.user,
8080
recently_submitted=True

lung_cancer_screening/questions/tests/unit/views/test_height.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2424
fetch_redirect_response=False
2525
)
2626

27-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
27+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
2828
ResponseSetFactory.create(
2929
user=self.user,
3030
recently_submitted=True
@@ -109,7 +109,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
109109
fetch_redirect_response=False
110110
)
111111

112-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
112+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
113113
ResponseSetFactory.create(
114114
user=self.user,
115115
recently_submitted=True

lung_cancer_screening/questions/tests/unit/views/test_relatives_age_when_diagnosed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
2727
fetch_redirect_response=False
2828
)
2929

30-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
30+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
3131
ResponseSetFactory.create(
3232
user=self.user,
3333
recently_submitted=True
@@ -97,7 +97,7 @@ def test_redirects_if_the_user_is_not_logged_in(self):
9797
fetch_redirect_response=False
9898
)
9999

100-
def test_redirects_when_an_submitted_response_set_exists_within_the_last_year(self):
100+
def test_redirects_when_a_submitted_response_set_exists_within_the_last_year(self):
101101
ResponseSetFactory.create(
102102
user=self.user,
103103
recently_submitted=True

0 commit comments

Comments
 (0)