Skip to content

Commit

Permalink
Fix errors found in CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
malefice committed Nov 15, 2019
1 parent 5c78808 commit 104564b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/providers/test_python.py
Expand Up @@ -2,9 +2,9 @@

import unittest
try:
from unittest.mock import patch, PropertyMock
from unittest.mock import patch
except ImportError:
from mock import patch, PropertyMock
from mock import patch

from faker import Faker

Expand Down
3 changes: 1 addition & 2 deletions tests/test_proxy.py
Expand Up @@ -38,7 +38,6 @@ def test_locale_as_list(self):
assert set(self.faker.locales) == set(locale)
assert len(self.faker.factories) == len(set(locale))

# Test
locale = locale * 3
self.faker = Faker(locale)
assert set(self.faker.locales) == set(locale)
Expand Down Expand Up @@ -72,7 +71,7 @@ def test_locale_as_ordereddict(self):

def test_items(self):
locale = ['de_DE', 'en-US', 'en-PH', 'ja_JP', 'de-DE', 'ja-JP', 'en-US']
processed_locale = list({[l.replace('-', '_') for l in locale]})
processed_locale = list({l.replace('-', '_') for l in locale})
self.faker = Faker(locale)
for locale_name, factory in self.faker.items():
assert locale_name in processed_locale
Expand Down

0 comments on commit 104564b

Please sign in to comment.