From a8896fb9b4890a3d7d0143344b79782cd786df95 Mon Sep 17 00:00:00 2001 From: Christian Abbott Date: Wed, 16 Jun 2021 20:04:29 -0700 Subject: [PATCH] Add documentation that seq can query the database --- docs/source/recipes.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/recipes.rst b/docs/source/recipes.rst index c4943fcf..32463d23 100644 --- a/docs/source/recipes.rst +++ b/docs/source/recipes.rst @@ -334,6 +334,8 @@ You can also provide an optional ``increment_by`` argument which will modify inc >>> customer.name 'Custom num: 7' +Be aware that ``seq`` may query the database to determine when to reset. Therefore, a ``SimpleTestCase`` test method (which disallows database access) can call ``prepare_recipe`` on a Recipe with a ``seq`` once, but not not more than once within a test, even though the record itself is never saved to the database. + Overriding recipe definitions -----------------------------