mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #266] [MERGED] Fix authenticated tests #357
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#357
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/266
Author: @marioortizmanero
Created: 10/11/2021
Status: ✅ Merged
Merged: 10/12/2021
Merged by: @ramsayleung
Base:
fix-example← Head:fix-tests📝 Commits (4)
9afb69eFix silly volume debug_assert48a962bFix UserId0726d80Merge branch 'fix-example' into fix-tests8b0ea4aFix test_playlist📊 Changes
5 files changed (+91 additions, -29 deletions)
View changed files
📝
rspotify-model/src/idtypes.rs(+77 -20)📝
src/clients/base.rs(+1 -1)📝
src/clients/oauth.rs(+1 -1)📝
tests/test_models.rs(+10 -5)📝
tests/test_with_oauth.rs(+2 -2)📄 Description
Description
I forgot we should run the authenticated tests manually before the release! Turns out we have a few bugs:
someone_niceis a valid username, but it's not made entirely of alphanumeric characters, so with the default implementation it wouldn't parse. Thus, I've implementedUserIdmanually. This madesearch_playlistfail.debug_assertfor thevolumeendpoint was wrong, so its test failed.playlisttest failed because its call toplaylist_remove_specific_occurrences_of_itemswas wrong, and theplaylist_check_followdebug_assert was wrong as well.I've had to write these patches over the
fix-examplebranch for #265, so I would suggest to review that before merging this.Motivation and Context
None
Dependencies
None
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
The
playlist_search,volume, andplaylisttests intests/test_with_oauth.rsnow work.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.