Graham R. Cobb
15be534e7c
Test ?expand using documented syntax
...
Documentation says that ?expand does not need a value (i.e. ?expand=1 is wrong),
so the test is changed to reflect that syntax.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 16:17:14 +00:00
Graham R. Cobb
79b41f6f38
Add test for getting album track listing using ?expand=1
...
Added test_get_album_details to test fetching /album/2?expand=1.
Also changed second album name to make tests more robust.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 15:56:46 +00:00
Graham R. Cobb
dc55480f51
Document "id" handling in test setup and add test to confirm
...
self.lib.add ignores the "id" field from the entry being added and overwrites
it with the next free number. So remove the misleading id fields.
Add a test to confirm that the album query response contains the expected
album id number.
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
2021-03-05 15:27:00 +00:00
Adam Tygart
1b1209a6c3
Add trackdisambig from musicbrainz.
...
fixes beetbox/beets#1904
2021-02-27 15:07:32 -06:00
Samuel Cook
ff4cec2e69
Removes support for bs1770gain.
...
References in the documentation to this plugin were removed in
beetbox/beets#3127 (beetbox/beets#3130 ) but no actual code
changes were made.
This PR removes support for this dependency entirely.
2021-01-27 17:42:18 -08:00
Vincent Ducamps
03a665861d
reformating subsonicupdate.py
...
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2021-01-12 18:31:43 +01:00
vincent
811089af72
update test
2021-01-11 18:58:49 +01:00
FichteFoll
5ace2b626b
Merge remote-tracking branch 'upstream/master' into pr/item-album-fallback
2021-01-08 18:47:18 +01:00
Adrian Sampson
53dcb24d10
Merge pull request #3671 from dosoe/beets_test_parentwork
...
first try at mocking get_work_by_id
2020-12-22 12:01:17 -05:00
soergeld
03cc76375d
style
2020-12-22 16:02:48 +01:00
soergeld
7803ce271e
mock confined to test
2020-12-22 15:59:45 +01:00
soergeld
53474678e9
mock confined to test
2020-12-22 15:41:49 +01:00
soergeld
a8d1cc9ce4
mock confined to test
2020-12-22 15:40:50 +01:00
soergeld
a8b81ca193
style
2020-12-22 12:19:26 +01:00
soergeld
18bfefece7
revert changes to working version with external mock
2020-12-22 11:51:24 +01:00
wisp3rwind
30baf22e77
replaygain: Use on-disk database
...
there can only be a single connection to an in-memory database, but the
parallel replaygain code accesses the db from different threads
2020-12-21 11:13:45 +01:00
ybnd
e3205aacbd
Merge remote-tracking branch 'origin/master' into parallel-replaygain
2020-12-14 22:19:28 +01:00
ybnd
363f71af2e
Move OperationalError handler to test_replaygain.py
2020-12-14 22:10:54 +01:00
Adam Miller
e11687f80a
keyfinder: Catch output from keyfinder-cli with no key
2020-12-07 22:04:05 -05:00
Adrian Sampson
9657919968
Merge pull request #3088 from rubdos/reflink
...
Add reflink option
2020-11-27 13:29:10 -05:00
FichteFoll
701cd6c42b
Merge remote-tracking branch 'upstream/master' into pr/item-album-fallback
2020-11-02 00:10:46 +01:00
Adrian Sampson
e99becb41e
Use Unicode in lyrics tests
2020-10-18 07:32:44 -04:00
Adrian Sampson
ce80459110
Merge pull request #3767 from jackwilsdon/skip-azlyrics
...
Skip AZLyrics on GitHub actions
2020-10-05 20:48:49 -04:00
Jack Wilsdon
7138408491
Skip AZLyrics on GitHub actions
2020-10-06 00:05:48 +01:00
Jack Wilsdon
d115f3679b
Remove LyricWiki source
...
LyricWiki was shut down on 2020/09/21 and no longer serves lyrics.
2020-10-05 22:15:40 +01:00
Sam Thursfield
d9582f4bea
export: Add --format=jsonlines option
...
This adds support for the JSON Lines format as documented at
https://jsonlines.org/ .
In this mode the data is output incrementally, whereas the other
modes load every item into memory and don't produce output until
the end.
2020-10-02 12:41:29 +02:00
Adrian Sampson
b659ad6b0c
Merge pull request #3670 from wisp3rwind/pr_remove_select
...
Add possibility to select individual items to the remove CLI command
2020-09-13 20:55:53 -04:00
djl
33b10d60fb
fetchart: Improve Cover Art Archive source. ( #3748 )
...
* fetchart: Improve Cover Art Archive source.
Instead of blindly selecting the first image, we now treat all "front"
images as candidates.
This is useful where some digital releases have both an animated cover
and a still image and the animated image is the first image returned
from the API.
2020-09-13 20:27:12 +01:00
wisp3rwind
1978484504
don't assume items are queried in any specific order in interactive delete test
...
The previous test worked (on my machine, and on Github CI and AppVeyor),
but it is not obvious whether the order is really guaranteed (given that
the full beets database stack and sqlite are involved). Thus, to prevent
this from exploding at some point, only verify the number of deletions
for now.
2020-09-13 15:55:09 +02:00
wisp3rwind
822bc1ce88
add possibility to select individual items to the remove CLI command
2020-09-13 14:26:00 +02:00
Jef LeCompte
3c8419dbe0
fix(plugin): subsonicupdate rest call
...
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
2020-09-04 00:51:03 -04:00
Aidan Epstein
fce27e6fa9
mpdstats: Don't record a skip when stopping MPD.
...
MPD keeps the current track in the queue when stopping, so it's not
really like a skip, and I use it so that I can stop the music, and later
start at the beginning of a track.
I do this by keeping track of the current song id, and then comparing
them when we receive a stop signal.
2020-08-10 07:07:17 -07:00
soergeld
29a8eef281
problems importing patch
2020-08-10 11:02:14 +02:00
soergeld
4f0a483948
change function to method
2020-08-10 10:59:30 +02:00
soergeld
d727149dd4
first try at using patch
2020-08-10 10:55:30 +02:00
soergeld
76ca0549a9
move mocking to setUp
2020-08-09 15:45:58 +02:00
Samuel Cook
b89a2650cc
Delete after convert ( #3700 )
...
* If import move is true, files will be deleted after converting.
Fixes #2947
* Removed trailing whitespace to comply with W293, fixing build
* Add period to the end of the comment
Co-Authored-By: Adrian Sampson <adrian@radbox.org>
* Added changelog entry for this fix.
* Added delete_originals option to remove source files after transcode
* Added unit test, removed redundant syspath call
Co-authored-by: Logan Arens <logan-arens@users.noreply.github.com>
Co-authored-by: Logan Arens <heresmygithub@protonmail.com>
Co-authored-by: Adrian Sampson <adrian@radbox.org>
Co-authored-by: Logan Arens <logan.arens@protonmail.com>
2020-08-03 20:20:20 -05:00
Jacob Pavlock
96b9e7caa5
skip broken windows tests
2020-08-03 13:42:59 -07:00
Jack Wilsdon
92f425628d
Skip Genius integration test on GitHub actions
2020-08-02 17:56:22 +01:00
Gunther Schmidl
48d39ea11e
fix regex, add test and changelog entry
2020-07-30 22:42:31 +02:00
FichteFoll
eda9930c59
Merge remote-tracking branch 'upstream/master' into pr/item-album-fallback
2020-07-27 19:32:44 +02:00
Gunther Schmidl
1eda0d39e6
better regex for drive letter; hopefully fixed tests for 2.7; added test to show only drive-letter like colons are affected
2020-07-25 22:11:07 +02:00
Gunther Schmidl
0a9a801b05
add unit tests
2020-07-25 21:50:33 +02:00
Ruben De Smet
5e2856ef87
Add reflink routine
2020-07-22 18:00:25 +02:00
Ruben De Smet
2926b49628
Add HAVE_REFLINK flag for tests
2020-07-22 18:00:25 +02:00
José Albornoz
dc7e433768
Fix thumbnail plugin pathlib bug ( #3360 )
...
PathlibURI.uri() would fail if given a path as bytes instead of as string.
Co-authored-by: Jacob Pavlock <jtpavlock@gmail.com>
2020-07-15 21:00:50 -05:00
soergeld
72e91d84f2
names
2020-07-14 00:01:22 +02:00
soergeld
ef08fbee0c
correct test for parentwork
2020-07-13 23:01:18 +02:00
soergeld
08c1344639
correct test for parentwork
2020-07-13 22:57:05 +02:00
soergeld
8167870a7f
correct test for parentwork_id_current
2020-07-13 22:52:31 +02:00
soergeld
e3fb243782
parentwork force test doesn't work
2020-07-13 22:44:49 +02:00
soergeld
66bb2adf19
try something
2020-07-13 22:40:34 +02:00
soergeld
ccd44bc57c
complete mocked parentworks
2020-07-13 22:31:51 +02:00
soergeld
ab2d653d82
typo
2020-07-13 22:26:57 +02:00
soergeld
f87f271484
correct mock results of get_work_by_id
2020-07-13 22:22:16 +02:00
soergeld
55995a32cb
correct force check, correct arguments for get_work_by_id
2020-07-13 22:17:24 +02:00
soergeld
df91813609
pep-8
2020-07-13 22:13:49 +02:00
soergeld
a4a9f0daa9
different way of mocking
2020-07-13 22:12:13 +02:00
soergeld
82411c67cf
minor fixes
2020-07-13 21:51:45 +02:00
soergeld
1cb23e5c5c
no hybrid mocking, two classes
2020-07-13 21:48:06 +02:00
soergeld
dba2e2320d
hybrid mocking
2020-07-13 21:41:10 +02:00
soergeld
d71ee6bc31
exchanged tests with and without MB
2020-07-13 21:38:02 +02:00
soergeld
58b11d9d3c
make tests both with MB and without
2020-07-13 21:34:24 +02:00
soergeld
94dd7cee70
unused library
2020-07-13 21:20:18 +02:00
soergeld
2d756df5b7
second try
2020-07-13 21:16:51 +02:00
soergeld
e943486da9
first try at mocking get_work_by_id
2020-07-13 21:11:30 +02:00
Jacob Pavlock
f2e7b3fdd7
remove references to nose
2020-07-07 15:28:38 -07:00
Jacob Pavlock
25c6843c28
classify integration tests in test_parentwork.py
2020-07-07 15:05:21 -07:00
jtpavlock
aedd77317f
Merge pull request #3658 from jtpavlock/integration_tests
...
Add weekly integration test github action
2020-07-06 11:37:46 -05:00
jtpavlock
45abc9ed7a
Clean up code and tests for Genius Lyrics plugin backend ( #3641 )
...
* clean-up code & add tests for genius lyrics backend
* add genius fetch tests
* organize imports: standard lib -> pip -> local
* check in sample genius lyrics page
* fix mock import
* force utf-8 encoding for opened files
* use io.open to force utf-8 encoding w/ python2.7
2020-07-06 08:41:27 -05:00
Jacob Pavlock
06553cc37c
adjust test_lyrics.py to work with integration tests
2020-07-05 21:41:31 -07:00
Jacob Pavlock
17d9477106
tests for applicable genius artist slugging
2020-06-26 19:33:08 -07:00
Mark Trolley
6d41f31309
Rename use_secure to secure and add to changelog
2020-06-08 20:19:19 -04:00
Mark Trolley
22d74a3b8a
feat: support secure Plex connections
2020-06-08 18:05:43 -04:00
Jef LeCompte
9f8bd4cd3f
style: flake8 linting
2020-05-25 20:06:43 -04:00
Jef LeCompte
0c3201930c
feat: added github actions
...
only working with linux for now. exact replica of travis basically.
should probably try to implement the rest of tox or deprecate some
functionality.
2020-05-25 19:35:15 -04:00
Jef LeCompte
10f589d80a
feat: added subsonicupdate tests
2020-05-22 21:23:26 -04:00
stlutz
5d306d6fd9
Remove debugging statement and conform to line length.
2020-05-16 17:48:56 +02:00
stlutz
46143d9762
Remove unnecessary intermediate web request to genius.com when fetching lyrics.
...
The search results already include the correct song page url, making it superfluous to do another request via the /song api just to get it.
2020-05-16 16:28:17 +02:00
Adrian Sampson
1dcfa03b5b
Merge branch 'master' of github.com:beetbox/beets
2020-05-13 08:21:09 -04:00
Adrian Sampson
5db2b4ccaa
Fix new flake8 warnings
2020-05-13 08:20:50 -04:00
soergeld
7c71bb87a2
cleaning up, renaming dup_XXInfo() to copy()
2020-05-08 16:32:12 +02:00
soergeld
d7ed84646e
create method for deepcopy
2020-04-28 14:18:27 +02:00
soergeld
ba2b22cac5
try to correct deepcopy
2020-04-28 12:59:52 +02:00
soergeld
b39ef0b8f9
better deepcopy, docstring, minor improvements
2020-04-28 12:16:19 +02:00
soergeld
eec7994dbe
corrected on deepcopy replacement
2020-04-27 16:16:37 +02:00
soergeld
2bc0027adf
remove some prints, unused libraries, __setitem__ method
2020-04-27 16:08:47 +02:00
soergeld
048b5c2151
remove need for deepcopy, simplify __init__
2020-04-27 15:55:12 +02:00
soergeld
14e1b33839
lines too long
2020-04-27 11:44:51 +02:00
soergeld
805f4e801f
typo in tests
2020-04-27 11:31:39 +02:00
soergeld
f507f04639
reintroduce default arguments, adapt all occurences of TrackInfo and AlbumInfo to the absence of positional arguments
2020-04-27 11:21:13 +02:00
Ashhar Hasan
625e9253c0
Add tests for artist_sort as lyrics search fallback
...
Adjust doc comment to highlight that artist_sort is used as a fallback
2020-04-19 19:19:07 +05:30
lijacky
9ec0d725e5
Changes given feedback on https://github.com/beetbox/beets/pull/3554 and trimmed sample html
2020-04-17 17:14:21 -04:00
lijacky
b7ecf32f28
style changes
2020-04-16 19:06:17 -04:00
lijacky
525202e529
adding genius sample html
2020-04-16 19:06:17 -04:00
lijacky
29d7b80847
Added unit test for null check
2020-04-16 19:06:17 -04:00
x1ppy
19d6dfc8f3
Support extra tags for MusicBrainz queries
2020-03-20 14:13:40 -04:00
Xavier Hocquet
1266a04998
Docs, lint, and cleanup beautifulsoup source check
2020-03-19 21:10:52 -06:00
Adam Jakab
611659d03c
removed value_match and repr tests
2020-03-16 10:16:29 +01:00
Adam Jakab
ac1a3851fa
typo fix
2020-03-15 19:36:38 +01:00