From 823a806ecdcaf53b2b94edf5dcecd9ab28475d4a Mon Sep 17 00:00:00 2001 From: Flavio Curella Date: Tue, 10 Oct 2023 15:10:57 -0500 Subject: [PATCH] fix tests --- faker/providers/person/lv_LV/__init__.py | 4 ++-- tests/providers/test_person.py | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/faker/providers/person/lv_LV/__init__.py b/faker/providers/person/lv_LV/__init__.py index 05a24c233b..7636995f98 100644 --- a/faker/providers/person/lv_LV/__init__.py +++ b/faker/providers/person/lv_LV/__init__.py @@ -287,7 +287,7 @@ class Provider(PersonProvider): first_names = first_names_male + first_names_female - last_names_unisex = ( + last_names_nonbinary = ( "Ä€bele", "Bite", "Caune", @@ -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 diff --git a/tests/providers/test_person.py b/tests/providers/test_person.py index 6b24d69f4e..e361029a46 100644 --- a/tests/providers/test_person.py +++ b/tests/providers/test_person.py @@ -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. @@ -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 @@ -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