diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fdabaf2f..644f5ba96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ name: Continuous Integration -on: [push] +on: [push, pull_request] jobs: build: diff --git a/cookbook/tests/factories/__init__.py b/cookbook/tests/factories/__init__.py index 651d9da04..c4b70e771 100644 --- a/cookbook/tests/factories/__init__.py +++ b/cookbook/tests/factories/__init__.py @@ -97,7 +97,7 @@ class SupermarketCategoryFactory(factory.django.DjangoModelFactory): @register class FoodFactory(factory.django.DjangoModelFactory): """Food factory.""" - name = factory.LazyAttribute(lambda x: faker.sentence(nb_words=3, variable_nb_words=False)) + name = factory.LazyAttribute(lambda x: faker.sentence(nb_words=10)[:128]) plural_name = factory.LazyAttribute(lambda x: faker.sentence(nb_words=3, variable_nb_words=False)) description = factory.LazyAttribute(lambda x: faker.sentence(nb_words=10)) supermarket_category = factory.Maybe( @@ -160,7 +160,7 @@ class RecipeBookEntryFactory(factory.django.DjangoModelFactory): @register class UnitFactory(factory.django.DjangoModelFactory): """Unit factory.""" - name = factory.LazyAttribute(lambda x: faker.word()) + name = factory.LazyAttribute(lambda x: faker.sentence(nb_words=10)[:128]) plural_name = factory.LazyAttribute(lambda x: faker.word()) description = factory.LazyAttribute(lambda x: faker.sentence(nb_words=10)) space = factory.SubFactory(SpaceFactory)