Skip to content

Commit

Permalink
Text change for intro
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Feb 25, 2021
1 parent 28de916 commit 077ddb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions wcivf/apps/people/tests/test_person_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_correct_elections_listed(self):

response = self.client.get(self.person_url, follow=True)
self.assertContains(response, election_name)
self.assertContains(response, "is the")
self.assertContains(response, "is a")

def test_election_in_past_listed(self):
response = self.client.get(self.person_url, follow=True)
Expand Down Expand Up @@ -113,7 +113,7 @@ def test_election_in_past_listed(self):

response = self.client.get(self.person_url, follow=True)
self.assertContains(response, election_name)
self.assertContains(response, "was the")
self.assertContains(response, "was a")

def test_multiple_candidacies_intro(self):
election_one = ElectionFactory()
Expand Down Expand Up @@ -157,7 +157,7 @@ def test_one_candidacy_intro(self):
response = self.client.get(self.person_url, follow=True)
self.assertContains(
response,
f"{self.person.name} is the {party.party_name} candidate in {person_post.post.label} in the {election.name}.",
f"{self.person.name} is a {party.party_name} candidate in {person_post.post.label} in the {election.name}.",
)

def test_no_previous_elections(self):
Expand Down
2 changes: 1 addition & 1 deletion wcivf/apps/people/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_intro(self, person):
elif party.party_name == "Speaker seeking re-election":
intro.append("the Speaker seeking re-election")
else:
intro.append("the")
intro.append("a")
str = party.party_name + " candidate"
intro.append(str)
else:
Expand Down

0 comments on commit 077ddb7

Please sign in to comment.