Skip to content

Commit 609be71

Browse files
committed
Rename test with better description
1 parent 89851f4 commit 609be71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nameparser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ def join_on_conjunctions(self, pieces, additional_parts_count=0):
906906
# If it's the first piece and there are more than 1 rootnames, assume it's a first name
907907
continue
908908
next_prefix = next(iter(filter(self.is_prefix, pieces[i + 1:])))
909-
j = pieces.index(next_prefix, i+1)
909+
j = pieces.index(next_prefix, i + 1)
910910
if j == i + 1:
911911
# if there are two prefixes in sequence, join to the following piece
912912
j += 1

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ def test_multiple_prefixes(self):
20712071
self.m(hn.first, "Mike", hn)
20722072
self.m(hn.last, "van der Velt", hn)
20732073

2074-
def test_prefix_as_fist_name(self):
2074+
def test_2_same_prefixes_in_the_name(self):
20752075
hh = HumanName("Van Ma Van")
20762076
self.m(hh.first, "Van Ma", hh)
20772077
self.m(hh.last, "Van", hh)

0 commit comments

Comments
 (0)