Skip to content

Commit 650f473

Browse files
committed
PPHA-266: Fix white space issues
1 parent f8de6e2 commit 650f473

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lung_cancer_screening/questions/forms/ethnicity_form.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
from ..models.response_set import ResponseSet, EthnicityValues
55

66
class EthnicityForm(forms.ModelForm):
7-
7+
88
def __init__(self, *args, **kwargs):
99
self.participant = kwargs.pop('participant')
1010
super().__init__(*args, **kwargs)
1111
self.instance.participant = self.participant
12-
12+
1313
self.fields["ethnicity"] = TypedChoiceField(
1414
choices=EthnicityValues.choices,
1515
label="What is your ethnic background?",

lung_cancer_screening/questions/tests/unit/forms/test_ethnicity_form.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ def test_is_valid_with_a_valid_value(self):
1717
)
1818
self.assertTrue(form.is_valid())
1919
self.assertEqual(
20-
form.cleaned_data['ethnicity'],
21-
EthnicityValues.WHITE
20+
form.cleaned_data['ethnicity'],
21+
EthnicityValues.WHITE
2222
)
23-
23+
2424
def test_is_invalid_with_an_invalid_value(self):
2525
form = EthnicityForm(
2626
participant=self.participant,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ def test_post_renders_the_ethnicity_page_with_an_error_if_the_form_is_invalid(se
9393
)
9494

9595
self.assertContains(response, "What is your ethnic background?", status_code=422)
96-
self.assertContains(response, "nhsuk-error-message", status_code=422)
96+
self.assertContains(response, "nhsuk-error-message", status_code=422)

0 commit comments

Comments
 (0)