-
Notifications
You must be signed in to change notification settings - Fork 87
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
Fix default REST_FRAMEWORK permission classes could break api views (#499) #500
Fix default REST_FRAMEWORK permission classes could break api views (#499) #500
Conversation
@bmihelac according to https://github.com/encode/django-rest-framework/blob/master/tests/test_settings.py#L29-L44 you should be able to use |
Codecov Report
@@ Coverage Diff @@
## main #500 +/- ##
=======================================
Coverage 92.92% 92.93%
=======================================
Files 36 36
Lines 3025 3029 +4
Branches 478 478
=======================================
+ Hits 2811 2815 +4
Misses 114 114
Partials 100 100
Continue to review full report at Codecov.
|
@zerolab I have tried and it does not work. I have added test code in d6ec08b comiit. It can be checked with
|
@zerolab if there is any other idea how tests for this could be added, I would be happy to update this PR |
@bmihelac will have a look over the weekend and get back to you |
@bmihelac this is on my list for tomorrow. Sorry for the delay |
No problems @zerolab |
Fixes #499
Unfortunately, it seems there is no easy way to test this. DRF
api_views
decorator apply default permission classes early, andsettings_override
has no effect. I have addedREST_FRAMEWORK
settings that are known to breakwagtail_localize
in test app settings.