Skip to content

Commit

Permalink
Add keys to the generated __kwargs
Browse files Browse the repository at this point in the history
So that we can analyze what is going to be inserted later.
  • Loading branch information
youtux committed May 21, 2022
1 parent 843f8e2 commit 99fad42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pytest_factoryboy/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ def fixture_maker(fn):
% for fixture_def in fixture_defs:
${ fixture_def.kwargs_var_name } = {}
${ fixture_def.kwargs_var_name } = {
% for key in fixture_def.function_kwargs:
${ repr(key) }: ...,
% endfor
}
@_fixture(related=${ repr(fixture_def.related) })
Expand Down

0 comments on commit 99fad42

Please sign in to comment.