Skip to content

Commit

Permalink
fix: update icecast observer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Dec 20, 2020
1 parent 2a82103 commit 2f5d3e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_track_observer_icecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ def test_track_started(self, mock_urlopen, track_factory, show_factory):
o.track_started(track)

mock_urlopen.assert_called_with(
"http://localhost:80/?stream=foo.mp3&mode=updinfo&charset=utf-8&song=b%27Hairmare+and+the+Band%27+-+b%27An+Ode+to+legacy+Python+Code%27"
"http://localhost:80/?stream=foo.mp3&mode=updinfo&charset=utf-8&song=Hairmare+and+the+Band+-+An+Ode+to+legacy+Python+Code"
)

track = track_factory(artist="Radio Bern", title="Livestream")
track.show = show_factory()

o.track_started(track)
mock_urlopen.assert_called_with(
"http://localhost:80/?stream=foo.mp3&mode=updinfo&charset=utf-8&song=b%27Radio+Bern%27+-+b%27Hairmare+Traveling+Medicine+Show%27"
"http://localhost:80/?stream=foo.mp3&mode=updinfo&charset=utf-8&song=Radio+Bern+-+Hairmare+Traveling+Medicine+Show"
)

def test_track_finished(self):
Expand Down

0 comments on commit 2f5d3e1

Please sign in to comment.