Skip to content

Commit

Permalink
Ensure Reuse factory URL uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed May 13, 2015
1 parent c3339e0 commit 29df093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udata/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class Meta:

title = factory.LazyAttribute(lambda o: faker.sentence())
description = factory.LazyAttribute(lambda o: faker.text())
url = factory.LazyAttribute(lambda o: faker.url())
url = factory.LazyAttribute(lambda o: '/'.join([faker.url(), unique_string()]))
type = FuzzyChoice(models.REUSE_TYPES.keys())


Expand Down

0 comments on commit 29df093

Please sign in to comment.