Skip to content
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

Make utils.local_import check INSTALLED_APPS for compound paths #14

Merged

Conversation

mhotwagner
Copy link

  • Checks all possible iterations of app name against INSTALLED_APPS, so app.sub_app.module.Class checks INSTALLED_APPS for app.sub_app.module, then app.sub_app, then app, instead of just checking for app.

  • Adds test to characterize new import behavior.

  • Fixes issue util.import_local fails on apps with compound paths #13

 - Checks all possible iterations of app name against `INSTALLED_APPS`, so `app.sub_app.module.Class` checks `INSTALLED_APPS` for `app.sub_app.module`, then `app.sub_app`, then `app`, instead of just checking for `app`.

 - Adds test to characterize new import behavior.

 - Fixes issue evenicoulddoit#13
@codecov-io
Copy link

codecov-io commented Aug 14, 2017

Codecov Report

Merging #14 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #14   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           5      5           
  Lines         325    329    +4     
=====================================
+ Hits          325    329    +4
Impacted Files Coverage Δ
rest_framework_serializer_extensions/utils.py 100% <100%> (ø) ⬆️

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 572ff38...655335b. Read the comment docs.

@evenicoulddoit
Copy link
Owner

Changes look good and the test is beaut. Thanks! I don't know what you're using extensions for, but I'd really love to get your input on #7

@evenicoulddoit evenicoulddoit merged commit eb319b7 into evenicoulddoit:master Aug 15, 2017
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