Skip to content

Commit

Permalink
fix: ensures banner_text never exceeds 50 chars (#9735)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdixon authored Nov 26, 2021
1 parent 629f04a commit 6f5fdd0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/grants/tests/factories/grant_clr_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class Meta:
start_date = factory.LazyFunction(datetime.now)
end_date = factory.LazyAttribute(lambda o: o.start_date + timedelta(weeks=2))
type = factory.LazyFunction(lambda: choice(GrantCLR.CLR_TYPES)[0])
banner_text = factory.Faker('catch_phrase')
banner_text = factory.Faker('text', max_nb_chars=50)
owner = factory.SubFactory(ProfileFactory)
1 change: 0 additions & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
futures==3.1.1
pytest==6.2.4
pytest-cov==2.12.0
pytest-factoryboy==2.1.0
pytest-isort==2.0.0
pytest-factoryboy==2.1.0
pytest-django==4.3.0
Expand Down

0 comments on commit 6f5fdd0

Please sign in to comment.