Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Oct 10, 2023
1 parent e7a12e0 commit 823a806
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions faker/providers/person/lv_LV/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class Provider(PersonProvider):

first_names = first_names_male + first_names_female

last_names_unisex = (
last_names_nonbinary = (
"Ābele",
"Bite",
"Caune",
Expand Down Expand Up @@ -438,4 +438,4 @@ class Provider(PersonProvider):
"Zvirbule",
)

last_names = last_names_male + last_names_female + last_names_unisex
last_names = last_names_male + last_names_female + last_names_nonbinary
18 changes: 9 additions & 9 deletions tests/providers/test_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,21 +299,21 @@ def test_first_name(self):
name = self.fake.first_name()
assert name
self.assertIsInstance(name, str)
assert name in LvProvider.provider.first_names
assert name in LvProvider.first_names

# Females first name
name = self.fake.first_name_female()
assert name
self.assertIsInstance(name, str)
assert name in LvProvider.provider.first_names
assert name in LvProvider.provider.first_names_female
assert name in LvProvider.first_names
assert name in LvProvider.first_names_female

# Male first name
name = self.fake.first_name_male()
assert name
self.assertIsInstance(name, str)
assert name in LvProvider.provider.first_names
assert name in LvProvider.provider.first_names_male
assert name in LvProvider.first_names
assert name in LvProvider.first_names_male

def test_last_name(self):
# General last name.
Expand All @@ -326,10 +326,10 @@ def test_last_name(self):
name = self.fake.last_name_female()
assert name
self.assertIsInstance(name, str)
assert name in LvProvider.last_names_female + LvProvider.last_names_unisex
assert name in LvProvider.last_names_female + LvProvider.last_names_nonbinary

# Females only last name.
name = self.fake.last_name_unique_to_female()
name = self.fake.last_name_female()
assert name
self.assertIsInstance(name, str)
assert name in LvProvider.last_names_female
Expand All @@ -338,10 +338,10 @@ def test_last_name(self):
name = self.fake.last_name_male()
assert name
self.assertIsInstance(name, str)
assert name in LvProvider.last_names_male + LvProvider.last_names_unisex
assert name in LvProvider.last_names_male + LvProvider.last_names_nonbinary

# Male only last name.
name = self.fake.last_name_unique_to_male()
name = self.fake.last_name_male()
assert name
self.assertIsInstance(name, str)
assert name in LvProvider.last_names_male
Expand Down

0 comments on commit 823a806

Please sign in to comment.