Skip to content

Commit

Permalink
Add: 4 More Auth Tests Added
Browse files Browse the repository at this point in the history
  • Loading branch information
faridrasidov committed Jul 28, 2024
1 parent b3dce3b commit d8a6f23
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/test_api_me.py
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()

0 comments on commit d8a6f23

Please sign in to comment.