Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cluepoints-john committed Oct 16, 2023
1 parent 5564ff0 commit 0e6462d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/usage/declaring_factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ Or for attrs models:
Validators are not currently supported - neither the built in validators that come
with `attrs` nor custom validators.

.. note::
Declaring an argument on the factory that doesn't exist on the model will trigger an exception.

This is only true when fields are declared with ``Use``, ``PostGenerated``, ``Ignore`` and ``Require``,
any other field definition will not be checked.

Imperative Factory Creation
---------------------------

Expand Down

0 comments on commit 0e6462d

Please sign in to comment.