Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Failing test for using a
attributes
field on the factory (#48)
``` cls = <class 'pytest_factoryboy.fixture.model_fixture.<locals>.Factory'>, args = (), kwargs = {'create': True, 'extra': {'attributes': None}} @classmethod def attributes(cls, *args, **kwargs): return dict( (key, value) > for key, value in super(Factory, cls).attributes(*args, **kwargs).items() if key in data ) E TypeError: 'NoneType' object is not callable Factory = <class 'pytest_factoryboy.fixture.model_fixture.<locals>.Factory'> __class__ = <class 'pytest_factoryboy.fixture.model_fixture.<locals>.Factory'> args = () cls = <class 'pytest_factoryboy.fixture.model_fixture.<locals>.Factory'> data = {'attributes': None} kwargs = {'create': True, 'extra': {'attributes': None}} .tox/py36-pytest3/lib/python3.6/site-packages/pytest_factoryboy/fixture.py:184: TypeError ```
- Loading branch information