Skip to content
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

update category tests to fix 1 failing and 1 error test results #886

Merged

Conversation

seanypark505
Copy link
Contributor

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 the items array 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 items array in the categories object which should equal to the limit value.

@stephanebruckert stephanebruckert merged commit 6f56504 into spotipy-dev:master Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants