Commit Graph
13 Commits
Author SHA1 Message Date
Gregor ZurowskiandGitHub 478f512d2c add tests for Last.FM ArtistGetSimilar (#355)
* Add tests for Last.FM client `ArtistGetSimilar`

* [Minor] Fix typo in test
2023-08-17 11:29:15 +00:00
Gregor ZurowskiandGitHub 09413ea06e add tests for LastFM similar tracks (#347)
* Rename and reuse image struct

* Add LastFM test for similar tracks
2023-08-13 21:33:52 +00:00
Gregor ZurowskiandGitHub 78c7fbe493 add VSCode .devcontainer to Git ignore list (#348) 2023-08-13 21:33:16 +00:00
Gregor ZurowskiandGitHub 2e879f6f16 add test for LastFM top tracks (#330) 2023-06-29 21:11:57 +00:00
Gregor ZurowskiandGitHub dbcccdc811 add initial Last.FM tests (#329)
* Move model into separate file

* Separate Last.FM client and scrobbler

* Use separate Last.FM client and scrobbler

* Fix playcount attribute name

* Add initial test for Last.FM client
2023-05-20 11:24:03 +00:00
Gregor ZurowskiandGitHub 6144ac7979 feat(ci): update checkout and setup-go actions (#326)
* Update Github checkout action to v3

* Update Github action setup-go to v4

* Get Go version from `go.mod`
2023-05-19 14:41:20 +00:00
Gregor ZurowskiandGitHub 85eeb860bf feat(ci): update golangci-lint and action (#325)
* Update linter

- Update Github golangci-lint-action to v3
- Update golangci-lint to v1.52.2

* Fix linter issues after updating to linter 1.52.2
2023-05-19 12:05:14 +00:00
Gregor ZurowskiandGitHub 5363beb031 fix names in ListenBrainz tests (#321)
* Rename test data file

* Rename require instance
2023-05-13 16:27:49 +00:00
Gregor ZurowskiandGitHub b7a50ee9cb use testify for all tests (#319)
* Use Testify for all tests

* Terminate failing non-relaxed tests using `require`
2023-05-13 15:17:37 +00:00
Gregor ZurowskiandGitHub bb8507a72f add unit tests for ListenBrainz scrobbler (#317)
* Access HTTP client via interface to allow for testing

* [Minor] Fix typo

* Add initial test cases for ListenBrainz scrobbler

* Fix linter error for insecure TLS in tests

* Use Testify for unit tests

* Move model into separate file

* Embed JSON responses into tests

* [Minor] Fix test function names
2023-05-13 12:10:11 +00:00
Gregor ZurowskiandGitHub 05b2b469dc revert "add playlists directory to docker volumes" (#316)
This reverts commit aae0683671.
2023-05-09 20:19:56 +00:00
Gregor ZurowskiandGitHub aae0683671 add playlists directory to docker volumes
Add the `/playlists` directory to the list of volumes, so
the server doesn't exit when validating the playlist path
on startup.
2023-05-07 16:29:49 +00:00
1d3877668f feat(scanner): add a new option for excluding paths based on a regexp
* Exclude paths based on new exclude pattern option

* Add test for excluded paths

* Add exclude pattern option to docs

* Set exclude regexp only if given argument is set

* Update scanner/scanner.go

---------

Co-authored-by: Senan Kelly <senan@senan.xyz>
2023-05-06 17:03:11 +00:00