mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #117] [MERGED] Reducing boilerplate for tests #254
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#254
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/117
Author: @marioortizmanero
Created: 8/16/2020
Status: ✅ Merged
Merged: 8/18/2020
Merged by: @ramsayleung
Base:
master← Head:oauth-tests-boilerplate📝 Commits (7)
33471a6Initial work on reducing boilerplate for oauth testsd7dd18dAdded a macro for the async client0c3587eApplied to all tests with a vim macro70b473fcargo fmtcfc8292Also for test_with_credential7a9cfb8Better docs and some improvements489d2dfNo need for macros📊 Changes
3 files changed (+448 additions, -1074 deletions)
View changed files
📝
Cargo.toml(+1 -0)📝
tests/test_with_credential.rs(+28 -76)📝
tests/test_with_oauth.rs(+419 -998)📄 Description
test_device: Not sure what that's for. Can it be removed?
test_with_credential: Just a function to reduce the boilerplate a bit.
test_oauth: This creates a single spotify client so that it can be used from each test. This way, you don't have to open a browser tab for each test, and there's much less copy-pasted code. This is specially useful in case we figure out how to run these tests on Travis, because it'll be very easy to change the authentication process.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.