Skip to content

Commit f3c9de1

Browse files
authored
Merge pull request #222 from pytest-dev/named-model-documentation
The parameter order of `named_model` in docs does not match the implementation
2 parents ea91d7e + 1bed452 commit f3c9de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ For example:
301301
@register
302302
class JSONPayload(factory.Factory):
303303
class Meta:
304-
model = named_model(dict, "JSONPayload")
304+
model = named_model("JSONPayload", dict)
305305
306306
name = "foo"
307307

0 commit comments

Comments
 (0)