[Answered ]-Fixture not found using Factoryboy SubFactory

1👍

Replacing the register factory register(ShoppingListEntryFactory, ...) with a pytest fixture resolved the issue.

@pytest.fixture
def shopping_list_entry(space_1):
    return ShoppingListEntryFactory.create(space=space_1)

Leave a comment