Skip to content

Fix factory boy dependency #373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 11, 2017

Conversation

santiavenda2
Copy link
Contributor

Factoy Boy 2.9.+ versions are raising this problem when we run the test suite using py.test

ConftestImportFailure: (local('/home/santiago/develop/invgate-django-rest-framework-json-api/example/tests/conftest.py'), (<type 'exceptions.AttributeError'>, AttributeError("'DjangoOptions' object has no attribute 'postgen_declarations'",), <traceback object at 0x7fb1c6b123b0>))

Related issue pytest-dev/pytest-factoryboy#47

To fix this problem temporally we can switch to FactoryBoy 2.8.1.

@codecov-io
Copy link

codecov-io commented Sep 20, 2017

Codecov Report

Merging #373 into develop will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #373      +/-   ##
===========================================
+ Coverage       93%   93.05%   +0.05%     
===========================================
  Files           51       51              
  Lines         2659     2665       +6     
===========================================
+ Hits          2473     2480       +7     
+ Misses         186      185       -1
Impacted Files Coverage Δ
setup.py 80% <ø> (ø) ⬆️
example/tests/integration/test_polymorphism.py 100% <0%> (ø) ⬆️
rest_framework_json_api/serializers.py 84.78% <0%> (+0.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 779cd9b...24ef800. Read the comment docs.

@mblayman
Copy link
Collaborator

Thanks @santiavenda2. Would you mind adding a comment with a link to the factory boy issue to the code and/or requirements.txt file so that future developers will be able to know when that dependency limitation can be removed in the future?

Include a link to the GitHub issue so a future dev will know when the dependency can be unpinned.
@mblayman
Copy link
Collaborator

mblayman commented Oct 11, 2017

Nevermind. I took care of adding the comment. Thanks for the fix! 👍

@mblayman mblayman merged commit 7b8e38e into django-json-api:develop Oct 11, 2017
@santiavenda2
Copy link
Contributor Author

Thanks @mblayman 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants