-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3dce3b
commit d8a6f23
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import pytest | ||
from soundcld.api_handler import SoundCloud | ||
from data_types import * | ||
|
||
@pytest.fixture | ||
def soundcloud_client(): | ||
client = SoundCloud(auth=True) | ||
return client | ||
|
||
def test_get_my_liked_track_ids(soundcloud_client): | ||
client = soundcloud_client | ||
track_ids = client.get_my_liked_track_ids() | ||
for track in track_ids: | ||
assert isinstance(track, int) | ||
|
||
def test_get_my_reposts_ids(soundcloud_client): | ||
client = soundcloud_client | ||
repost_ids = client.get_my_reposts_ids() | ||
for repost in repost_ids: | ||
assert isinstance(repost, int) | ||
|
||
def test_get_my_followers_ids(soundcloud_client): | ||
client = soundcloud_client | ||
followers_id = client.get_my_followers_ids() | ||
for follower in followers_id: | ||
assert isinstance(follower, int) | ||
|
||
def test_get_my_following_ids(soundcloud_client): | ||
client = soundcloud_client | ||
following_id = client.get_my_following_ids() | ||
for following in following_id: | ||
assert isinstance(following, int) | ||
|
||
if __name__ == '__main__': | ||
pytest.main() |