Skip to content

Commit 00038aa

Browse files
committed
Add (failing) test for feature
1 parent 913c04a commit 00038aa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_factory_fixtures.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,12 @@ def test_override_subfactory_with_lazy_fixture(self, another_book: Book):
211211
212212
"""
213213
assert another_book.author.name == "Another Author"
214+
215+
216+
class TestDeferredEvaluation:
217+
@pytest.mark.parametrize("book__name", ["bar"])
218+
def test_book_initialise_later(self, book_factory, book):
219+
assert book.name == "bar"
220+
221+
book_f = book_factory()
222+
assert book_f.name == "bar"

0 commit comments

Comments
 (0)