Skip to content

Commit 3803796

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent eaf1a9b commit 3803796

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

tests/test_classical_all.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ def test_classical(self):
88
# DEFAULT...
99

1010
assert p.plural_noun("error", 0) == "errors", "classical 'zero' not active"
11-
assert (
12-
p.plural_noun("wildebeest") == "wildebeests"
13-
), "classical 'herd' not active"
11+
assert p.plural_noun("wildebeest") == "wildebeests", (
12+
"classical 'herd' not active"
13+
)
1414
assert p.plural_noun("Sally") == "Sallys", "classical 'names' active"
1515
assert p.plural_noun("brother") == "brothers", "classical others not active"
1616
assert p.plural_noun("person") == "people", "classical 'persons' not active"
@@ -30,9 +30,9 @@ def test_classical(self):
3030

3131
p.classical(all=False)
3232
assert p.plural_noun("error", 0) == "errors", "classical 'zero' not active"
33-
assert (
34-
p.plural_noun("wildebeest") == "wildebeests"
35-
), "classical 'herd' not active"
33+
assert p.plural_noun("wildebeest") == "wildebeests", (
34+
"classical 'herd' not active"
35+
)
3636
assert p.plural_noun("Sally") == "Sallies", "classical 'names' not active"
3737
assert p.plural_noun("brother") == "brothers", "classical others not active"
3838
assert p.plural_noun("person") == "people", "classical 'persons' not active"

tests/test_numwords.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -198,19 +198,19 @@ def test_array():
198198
],
199199
[
200200
"123456",
201-
"one hundred and twenty-three thousand, " "four hundred and fifty-six",
201+
"one hundred and twenty-three thousand, four hundred and fifty-six",
202202
"one, two, three, four, five, six",
203203
"twelve, thirty-four, fifty-six",
204204
"one twenty-three, four fifty-six",
205-
"one hundred and twenty-three thousand, " "four hundred and fifty-sixth",
205+
"one hundred and twenty-three thousand, four hundred and fifty-sixth",
206206
],
207207
[
208208
"0123456",
209-
"one hundred and twenty-three thousand, " "four hundred and fifty-six",
209+
"one hundred and twenty-three thousand, four hundred and fifty-six",
210210
"zero, one, two, three, four, five, six",
211211
"zero one, twenty-three, forty-five, six",
212212
"zero twelve, three forty-five, six",
213-
"one hundred and twenty-three thousand, " "four hundred and fifty-sixth",
213+
"one hundred and twenty-three thousand, four hundred and fifty-sixth",
214214
],
215215
[
216216
"1234567",

tests/test_pwd.py

+18-18
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ def test_pl(self):
262262
(p.plural_adj, "cat's", "cats'"),
263263
(p.plural_adj, "child's", "children's"),
264264
):
265-
assert (
266-
fn(sing) == plur
267-
), f'{fn.__name__}("{sing}") == "{fn(sing)}" != "{plur}"'
265+
assert fn(sing) == plur, (
266+
f'{fn.__name__}("{sing}") == "{fn(sing)}" != "{plur}"'
267+
)
268268

269269
for sing, num, plur in (
270270
("cow", 1, "cow"),
@@ -341,9 +341,9 @@ def test_gender(self):
341341
("to her", "to them"),
342342
("to herself", "to themselves"),
343343
):
344-
assert (
345-
p.singular_noun(plur) == sing
346-
), f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}"
344+
assert p.singular_noun(plur) == sing, (
345+
f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}"
346+
)
347347
assert p.inflect("singular_noun('%s')" % plur) == sing
348348

349349
p.gender("masculine")
@@ -354,9 +354,9 @@ def test_gender(self):
354354
("to him", "to them"),
355355
("to himself", "to themselves"),
356356
):
357-
assert (
358-
p.singular_noun(plur) == sing
359-
), f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}"
357+
assert p.singular_noun(plur) == sing, (
358+
f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}"
359+
)
360360
assert p.inflect("singular_noun('%s')" % plur) == sing
361361

362362
p.gender("gender-neutral")
@@ -367,9 +367,9 @@ def test_gender(self):
367367
("to them", "to them"),
368368
("to themself", "to themselves"),
369369
):
370-
assert (
371-
p.singular_noun(plur) == sing
372-
), f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}"
370+
assert p.singular_noun(plur) == sing, (
371+
f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}"
372+
)
373373
assert p.inflect("singular_noun('%s')" % plur) == sing
374374

375375
p.gender("neuter")
@@ -380,9 +380,9 @@ def test_gender(self):
380380
("to it", "to them"),
381381
("to itself", "to themselves"),
382382
):
383-
assert (
384-
p.singular_noun(plur) == sing
385-
), f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}"
383+
assert p.singular_noun(plur) == sing, (
384+
f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}"
385+
)
386386
assert p.inflect("singular_noun('%s')" % plur) == sing
387387

388388
with pytest.raises(BadGenderError):
@@ -612,9 +612,9 @@ def test__plnoun(self):
612612
("zoo", "zoos"),
613613
("tomato", "tomatoes"),
614614
):
615-
assert (
616-
p._plnoun(sing) == plur
617-
), f'p._plnoun("{sing}") == {p._plnoun(sing)} != "{plur}"'
615+
assert p._plnoun(sing) == plur, (
616+
f'p._plnoun("{sing}") == {p._plnoun(sing)} != "{plur}"'
617+
)
618618

619619
assert p._sinoun(plur) == sing, f'p._sinoun("{plur}") != "{sing}"'
620620

0 commit comments

Comments
 (0)