Skip to content

Commit

Permalink
make sure there is no new line in subject (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed Apr 30, 2023
1 parent a4bf753 commit a86360b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machina/test/factories/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Meta:
class PostFactory(factory.django.DjangoModelFactory):
topic = factory.SubFactory(TopicFactory)
poster = factory.SubFactory(UserFactory)
subject = factory.LazyAttribute(lambda t: faker.text(max_nb_chars=200))
subject = factory.LazyAttribute(lambda t: faker.sentence()[:200])
content = fuzzy.FuzzyText(length=255)

class Meta:
Expand Down

0 comments on commit a86360b

Please sign in to comment.