Diego Moreda
39cf4651b8
Fix singleton candidate ordering when using MB id
...
* Fix an issue that caused the candidates for a singleton not to be
returned ordered by distance from autotag.match.tag_item(), when
searching multiple MusicBrainz ids (ie. several "--musicbrainzid"
arguments). The candidates are now explicitely reordered before being
returned and before the recommendation is computed.
* Fix test_importer.mocked_get_recording_by_id so that the artist is
nested properly (and as a result, taken into account into the distance
calculations).
2016-01-20 20:22:48 +01:00
Diego Moreda
4e5ddac949
Avoid querying MB during ImportMusicBrainzIdTest
...
* Replace the entities used on ImportMusicBrainzIdTest mocking the calls to
musicbrainzngs.get_release_by_id and musicbrainzngs.get_recording_by_id instead
of querying MusicBrainz.
* Other cleanup and docstring fixes.
2016-01-20 17:03:16 +01:00
Diego Moreda
c12e974852
Merge remote-tracking branch 'upstream/master' into mbid
2016-01-19 21:58:10 +01:00
Diego Moreda
865be11ba1
Add tests for importer musicbrainz id argument
...
* Add tests for the "--musicbrainzid" argument (one/several ids for matching
an album/singleton; direct test on task.lookup_candidates() for
album/singleton).
2016-01-19 21:51:41 +01:00
Diego Moreda
48c92fbf5a
Allow multiple MB ids to be passed to the importer
...
* Modify the "--musicbrainzid" argument to the importer so multiple IDs can be
specified by the user instead of a single one.
* Revise autotag.match.tag_album and autotag.match.tag_item signature to expect
a list of IDs (search_ids) instead of a single one (search_id), and add logic
for handling and returning multiple matches for those IDs.
* Update calls to those functions in other parts of the code.
2016-01-19 21:43:32 +01:00
Adrian Sampson
248b0b070c
Remove stray space in docs
2016-01-18 16:08:54 -05:00
Adrian Sampson
f0818919ac
Merge pull request #1815 from beetbox/more_tests
...
Add more test coverage for mpdstats
2016-01-16 10:13:06 -08:00
Jesse Weinstein
e3d19b0a0f
flake8 fixes
2016-01-16 00:26:56 -08:00
Jesse Weinstein
da1c4545aa
Add more test coverage for mpdstats
2016-01-16 00:11:10 -08:00
Adrian Sampson
1866264732
Docsring for #1812
2016-01-15 10:10:56 -08:00
Adrian Sampson
7251f2b9cd
Changelog for #1812
2016-01-15 10:10:17 -08:00
Adrian Sampson
98c41abfd1
Merge pull request #1812 from GuilhermeHideki/master
...
Info plugin: add option to print only keys
2016-01-15 10:08:45 -08:00
Guilherme Danno
f75b4b4e3b
Update info docs
2016-01-15 02:40:33 -02:00
Guilherme Danno
20e4f5d209
Info plugin: add option to print only keys
2016-01-14 18:08:22 -02:00
JesseWeinstein
49feaf2a60
Merge pull request #1809 from beetbox/slow_test_decorator
...
Convert SKIP_SLOW_TESTS to its own decorator
2016-01-12 22:17:12 -08:00
Jesse Weinstein
72ce9ea3eb
use underscore in name for pep-8s sake
2016-01-12 22:14:12 -08:00
Jesse Weinstein
ab2b1fa900
fix different travis-ci flake8 warning
2016-01-12 22:07:02 -08:00
Jesse Weinstein
c292b77e9e
fix travis-ci flake8 warning
2016-01-12 22:02:12 -08:00
Jesse Weinstein
d93f723263
Convert SKIP_SLOW_TESTS to its own decorator
2016-01-12 21:53:52 -08:00
JesseWeinstein
0e0691bf77
Merge pull request #1807 from JesseWeinstein/add_tests
...
Add & modify tests
2016-01-12 00:16:19 -08:00
Adrian Sampson
8cb545b779
Possibly fix #1805 : bytes headers for requests
2016-01-11 10:30:33 -08:00
Adrian Sampson
231981de0c
Fix #1806 : handle OSError in stats -e
2016-01-11 10:13:26 -08:00
Diego Moreda
1c95b7c46f
Add musicbrainz id option to importer
...
* Add '-m', '--musicbrainzid' option to the import command, allowing the user
to specify a single MusicBrainz ID to be used for the candidate lookup instead
of trying to find suitable candidates.
* Modify lookup_candidates() of ImportTask and SingletonImportTask to use the
musicbrainz id if present.
2016-01-11 17:39:05 +01:00
Jesse Weinstein
760298b8e4
Mark slow tests to be skipped if SKIP_SLOW_TESTS env var is defined
...
Saves over 100 seconds.
2016-01-10 23:18:47 -08:00
Jesse Weinstein
dda1173e02
Escape quotes to make old version of emacs font-lock happy
2016-01-10 22:01:13 -08:00
Jesse Weinstein
f770125e3c
Avoid repeating expensive db creation
...
Saves about 3 seconds
2016-01-10 21:01:28 -08:00
Jesse Weinstein
11c8af724d
Add more tests for dbcore
2016-01-10 21:00:39 -08:00
Adrian Sampson
d4e11f0af9
Merge pull request #1796 from JesseWeinstein/add_tests
...
More test improvements
2016-01-10 16:24:00 -08:00
Adrian Sampson
6a379e1deb
Changelog note about new homes ( #1730 )
2016-01-08 20:48:15 -08:00
Adrian Sampson
c7045daf90
sampsyo -> beetbox ( #1730 ) 🎉
2016-01-08 20:36:16 -08:00
Adrian Sampson
70a0d4680c
Remove Mercurial vestiges
...
😢 I still love you, Mercurial.
2016-01-08 20:01:20 -08:00
Adrian Sampson
0301bb517d
Update links for our new domain
2016-01-08 16:26:13 -08:00
Adrian Sampson
635052e2ff
Fix #1804 : edit plugin moves files
2016-01-08 15:22:28 -08:00
Adrian Sampson
963a66a40c
Refactor try_sync to also include moving
...
This will remove a bunch of duplication we currently have for moving files
*inside the library directory* when their metadata changes.
2016-01-08 14:56:52 -08:00
Adrian Sampson
36ad0cf70d
lyrics: Re-enable genius backend ( #1770 )
2016-01-06 14:29:51 -08:00
nath@laptop
5e3ca88d4b
Merge #1803
...
Fix typos
2016-01-06 12:07:10 +01:00
nath@laptop
f12a9f0117
Merge 'fix-typos' of JesseWeinstein into fix-typos
2016-01-06 12:03:35 +01:00
nath@laptop
6e2b249c54
fix-typos: Write changelog
...
Also stealth-reformulate a recent comment of mine which contained
another (!) typo
2016-01-06 11:18:39 +01:00
Jesse Weinstein
7370cdfd39
Add test for backwards compat
2016-01-06 01:34:52 -08:00
Jesse Weinstein
d4ccc10667
Fix typo: judment -> judgement
2016-01-06 01:31:01 -08:00
nath@laptop
1e72ba75c7
play: Preserve backwards compat when fixing typos
2016-01-06 10:12:45 +01:00
Jesse Weinstein
1111ab9fdf
Add tests for stats and version
2016-01-06 01:02:07 -08:00
nath@laptop
42ef57f571
play: Fix typo treshold -> threshold
...
My bad, rebased before I pushed and forgot to check the tests after the rebase
2016-01-06 09:49:19 +01:00
nath@laptop
72056e8e07
play: Fix typo treshold > threshold:
...
We should warn users that the corresponding config key changed accordingly.
2016-01-06 09:21:37 +01:00
Jesse Weinstein
78b81fc8b8
apparently do_test is a magic name. Who knew?
2016-01-05 00:35:01 -08:00
Jesse Weinstein
cce2d5450f
Adjust test_permissions to handle different starting perms
2016-01-05 00:28:43 -08:00
Jesse Weinstein
28257db654
Add test for help command
2016-01-05 00:03:34 -08:00
Jesse Weinstein
edefc1373e
Bring test_permissions.py up to 100%
2016-01-04 23:42:14 -08:00
Adrian Sampson
dd66ca51f9
Detail on example ( #1794 )
2016-01-04 22:08:27 -08:00
Adrian Sampson
d064f19129
Fix wrong word in docstring ( #1794 )
2016-01-04 18:49:14 -08:00