Skip to content

Commit

Permalink
Add documentation that seq can query the database (#208)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Abbott <[email protected]>
  • Loading branch information
abbottc and Christian Abbott authored Jun 17, 2021
1 parent b90519e commit 0f62151
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------------------

Expand Down

0 comments on commit 0f62151

Please sign in to comment.