Update factory
This commit is contained in:
parent
2ac1299a49
commit
3db9336909
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class PostFactory(factory.django.DjangoModelFactory):
|
|||
|
||||
class RedditPostFactory(PostFactory):
|
||||
remote_identifier = factory.Faker("uuid4")
|
||||
url = factory.fuzzy.FuzzyText(length=10, prefix=REDDIT_URL)
|
||||
url = factory.fuzzy.FuzzyText(length=10, prefix=f"{REDDIT_URL}/")
|
||||
rule = factory.SubFactory(
|
||||
"newsreader.news.collection.tests.factories.SubredditFactory"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue