Skip to content

Commit

Permalink
Fixing get_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
olegpidsadnyi committed Jul 6, 2016
1 parent 9ab025b commit 1c517bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

1.2.2
-----

- fix post-generation dependencies (olegpidsadnyi)


1.2.1
-----

Expand Down
2 changes: 1 addition & 1 deletion pytest_factoryboy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""pytest-factoryboy public API."""
from .fixture import register, LazyFixture

__version__ = '1.2.1'
__version__ = '1.2.2'


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion pytest_factoryboy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_deps(self, request, fixture, deps=None):
if fixture == 'request':
return deps

for fixturedef in request._fixturemanager.getfixturedefs(fixture, request._pyfuncitem.parent.nodeid):
for fixturedef in request._fixturemanager.getfixturedefs(fixture, request._pyfuncitem.parent.nodeid) or []:
for argname in fixturedef.argnames:
if argname not in deps:
deps.add(argname)
Expand Down

0 comments on commit 1c517bf

Please sign in to comment.