Skip to content

Commit

Permalink
Add test to pass codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent authored and laurent committed Apr 6, 2021
1 parent b20c6d1 commit 4a198c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ def test_resolves_stream_track(self):
"M5DG6EPQ"
)

@my_vcr.use_cassette("sc-resolve-track-id.yaml")
def test_unstreamable_track(self):
track = self.api._get("tracks/13158665")
track["streamable"] = False
track = self.api.parse_track(track)
assert track is None

@my_vcr.use_cassette("sc-resolve-track-id-invalid-client-id.yaml")
def test_resolves_stream_track_invalid_id(self):
self.api.public_client_id = "blahblahrubbosh"
Expand Down

0 comments on commit 4a198c8

Please sign in to comment.