Closed discobeta closed 8 months ago
Merging #1337 (9bbd884) into master (9b91d79) will increase coverage by
0.00%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #1337 +/- ##
=======================================
Coverage 97.54% 97.55%
=======================================
Files 32 32
Lines 2120 2123 +3
=======================================
+ Hits 2068 2071 +3
Misses 52 52
Files | Coverage Δ | |
---|---|---|
oauth2_provider/oauth2_validators.py | 94.13% <100.00%> (+0.03%) |
:arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
@discobeta could you review your tests? It looks like the new change isn't covered.
added additional tests
@discobeta, It looks like https://github.com/jazzband/django-oauth-toolkit/pull/1337/checks?check_run_id=17910869256 still isn't covered. You probably need to setup a scenario where you make a valid AccessToken, delete the token, then make a request.
Added a test for a deleted token
The except branch added by your patch is still not covered, https://app.codecov.io/gh/jazzband/django-oauth-toolkit/pull/1337?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=checks&utm_campaign=pr+comments&utm_term=jazzband
I pushed an update that covers this change. Can you please approve the workflow to recheck coverage?
On Sat, Oct 21, 2023 at 12:42 PM dopry @.***> wrote:
The except branch added by your patch is still not covered, https://app.codecov.io/gh/jazzband/django-oauth-toolkit/pull/1337?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=checks&utm_campaign=pr+comments&utm_term=jazzband
— Reply to this email directly, view it on GitHub https://github.com/jazzband/django-oauth-toolkit/pull/1337#issuecomment-1773854584, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRERCSQIQNPU6PITIYSTN3YAP3OLAVCNFSM6AAAAAA55WNPIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTHA2TINJYGQ . You are receiving this because you were mentioned.Message ID: @.***>
@dopry It looks like this is now covered. Thank you for your recommendation and support with this.
I think the last thing we need is a changelog entry and adding yourself to Authors if you're not in there already.
@dopry can you please take a look here and see if there are any further changes required?
Fixes https://github.com/jazzband/django-oauth-toolkit/issues/1318
Description of the Change
We are now try / except when attempting to find a vali token to avoid a 500
oauth2_provider.models.AccessToken.DoesNotExist: AccessToken matching query does not exist
Checklist
CHANGELOG.md
updated (only for user relevant changes)AUTHORS