[LastFM Scrobbler] Add some basic unit tests and fix a bug (#2028)
authorWillem-Jan Zijderveld <contact+github@veld.live>
Tue, 11 Mar 2025 23:49:51 +0000 (00:49 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Mar 2025 23:49:51 +0000 (00:49 +0100)
commit4b38671996ea26a4b63ae026711e8291c840fd08
treec249b0bfb939cd72208b58941853dc2bea8c3858
parent61ecd80a70220b11383ca58c2c4b54c614d73daa
[LastFM Scrobbler] Add some basic unit tests and fix a bug (#2028)

* Extract logic to a handler and added a couple unit tests

* Bugfix: now_playing was triggered when pausing the player early in the song
music_assistant/providers/lastfm_scrobble/__init__.py
tests/providers/lastfm_scrobble/__init__.py [new file with mode: 0644]
tests/providers/lastfm_scrobble/test_events.py [new file with mode: 0644]