Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
mblayman merged 4 commits into django-json-api:develop from InvGate:fix_factory_boy_bug
Oct 11, 2017

Conversation

Copy link
Contributor

@santiavenda2 santiavenda2 commented Sep 20, 2017

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.

sliverc reacted with thumbs up emoji
Copy link

codecov-io commented Sep 20, 2017
edited
Loading

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.

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.
Copy link
Collaborator

mblayman commented Oct 11, 2017
edited
Loading

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
Copy link
Contributor Author

Thanks @mblayman 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /