Fixed unbalanced parentheses.
- Legacy-Id: 14520
This commit is contained in:
parent
4431c3eac3
commit
87f4997bf5
|
@ -24,7 +24,7 @@ def random_faker():
|
|||
# extraction code, and also don't seem to match the way people with arabic
|
||||
# names romanize arabic names. Exlude those locales from name generation
|
||||
# in order to avoid test failures.
|
||||
locales = set( [ l for l in faker.config.AVAILABLE_LOCALES if not (l.startswith('ar_') or l.startswith('sg_') ] )
|
||||
locales = set( [ l for l in faker.config.AVAILABLE_LOCALES if not (l.startswith('ar_') or l.startswith('sg_')) ] )
|
||||
return faker.Faker(random.sample(locales, 1)[0])
|
||||
|
||||
class UserFactory(factory.DjangoModelFactory):
|
||||
|
|
Loading…
Reference in a new issue