Skip to content

Commit

Permalink
fix: faker generation (#120)
Browse files Browse the repository at this point in the history
fix faker generation
  • Loading branch information
rzlim08 authored Nov 15, 2024
1 parent 4c6b857 commit 189c558
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class {{ cls.name }}Factory(CommonFactory):
{%- elif field.type == "Array2dFloat" %}
{{ field.name }} = factory.LazyAttribute(lambda o: [ [random.uniform(1, 100) for _ in range(5)] ] * random.randint(2, 5) )
{%- elif field.type == "List1dString" %}
{{ field.name }} = factory.LazyAttribute(lambda o: [ factory.Faker("word").generate() for _ in range(random.randint(2, 5)) ])
{{ field.name }} = factory.LazyAttribute(lambda o: [ factory.Faker("word").evaluate(o, None, {"locale": "en"}) for _ in range(random.randint(2, 5)) ])
{%- elif field.type == "integer" %}
{{ field.name }} = fuzzy.FuzzyInteger(1, 1000)
{%- elif field.type == "float" %}
Expand Down

0 comments on commit 189c558

Please sign in to comment.