Skip to content

Commit

Permalink
Testing spotipy does notwork
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed Nov 20, 2024
1 parent 5b724d3 commit ef6ed12
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions sausage_bot/test/net_io_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,6 @@
from sausage_bot.util import net_io


async def test_check_spotify_podcast_url():
good_url1 = 'https://open.spotify.com/show/7CJKujLFxINFP3G4zns6nw?si=QM4HOzU5RlGuDOEOVLOtCQ'
good_url2 = 'https://open.spotify.com/show/47qpUkCsSOLCkda3oE710f?si=5fb79d4d90ea43bd'
# This lacks the `?si=...` in the end, but is still accepted
good_url3 = 'https://open.spotify.com/show/47qpUkCsSOLCkda3oE710f'
# Obviously not a spotify link
bad_url1 = 'https://www.youtube.com'

assert type(await net_io.check_spotify_podcast(good_url1)) is int
assert type(await net_io.check_spotify_podcast(good_url2)) is int
assert type(await net_io.check_spotify_podcast(good_url3)) is int
assert await net_io.check_spotify_podcast(bad_url1) is False


async def test_make_event_start_stop():
date_yes, time_yes = ('17.05.2022', '21:00')
date_yes, time_no = ('17.05.2022', '671:00')
Expand Down

0 comments on commit ef6ed12

Please sign in to comment.