[PR #679] [MERGED] Change assertGreater to assertGreaterEqual in some tests #991

Closed
opened 2026-02-28 00:03:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/679
Author: @gustavokrieger
Created: 4/22/2021
Status: Merged
Merged: 4/23/2021
Merged by: @stephanebruckert

Base: masterHead: fix-tests-with-empty-account


📝 Commits (1)

  • 784910b change assertGreater to assertGreaterEqual in some tests

📊 Changes

1 file changed (+3 additions, -4 deletions)

View changed files

📝 tests/integration/test_user_endpoints.py (+3 -4)

📄 Description

While running the tests, I got errors that were caused by the fact that my Spotify account didn't follow any artists, have any saved tracks nor have any top tracks. I changed assertGreater to assertGreaterEqual in the tests that were failing because of that, so that 0 is also valid.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/679 **Author:** [@gustavokrieger](https://github.com/gustavokrieger) **Created:** 4/22/2021 **Status:** ✅ Merged **Merged:** 4/23/2021 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `fix-tests-with-empty-account` --- ### 📝 Commits (1) - [`784910b`](https://github.com/spotipy-dev/spotipy/commit/784910b1b62ce8002d080f26dfe797ad5d6fe503) change assertGreater to assertGreaterEqual in some tests ### 📊 Changes **1 file changed** (+3 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tests/integration/test_user_endpoints.py` (+3 -4) </details> ### 📄 Description While running the tests, I got errors that were caused by the fact that my Spotify account didn't follow any artists, have any saved tracks nor have any top tracks. I changed `assertGreater` to `assertGreaterEqual` in the tests that were failing because of that, so that `0` is also valid. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:03:09 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#991
No description provided.