mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #886] [MERGED] update category tests to fix 1 failing and 1 error test results #1057
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#1057
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/spotipy-dev/spotipy/pull/886
Author: @seanypark505
Created: 11/13/2022
Status: ✅ Merged
Merged: 11/13/2022
Merged by: @stephanebruckert
Base:
master← Head:fix-categories-tests📝 Commits (2)
68ec18cupdate category tests to fix 1 failing and 1 error test resultse695b5cupdate changelog📊 Changes
2 files changed (+203 additions, -160 deletions)
View changed files
📝
CHANGELOG.md(+198 -156)📝
tests/integration/user_endpoints/test.py(+5 -4)📄 Description
Changes/Fixes were made to following tests
test_category:
Inputting 'rock' as the category_id was throwing an error. Changed the input value to the actual category_id of the Rock category.
test_categories_limit_low:
Test was failing with 7 != 1.
response['categories']will always equal 7 since the categories response object has 7 properties. Updated assertion test to compare the length of theitemsarray in the categories object which should equal to the limit value.test_categories_limit_high:
Test was producing a false-positive passing test. Updated assertion test to compare the length of the
itemsarray in the categories object which should equal to the limit value.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.