Peter Kessen
1162082026
Removed unicode_literals from test_info
2016-02-22 07:44:16 +01:00
Peter Kessen
9507bfb1e4
Removed unicode_literals from test_lyrics
2016-02-22 07:42:31 +01:00
Peter Kessen
a94bfa9eb9
Removed import of unicode_literals from test_mb
2016-02-22 07:40:07 +01:00
Peter Kessen
908f684d0a
Removed import of unicode_literals from test_bucket
2016-02-22 07:38:05 +01:00
Peter Kessen
68dbbba6a0
Removed import of unicode_literals from tests
...
* test_art
* test_autotag
2016-02-20 14:57:56 +01:00
Peter Kessen
302ca94bfb
Removed import of unicode_literals
...
* test/lyrics_download_samples.py
* test/rsrc/beetsplug/test.py
2016-02-20 14:48:35 +01:00
Peter Kessen
a5ce7a2814
Removed import of unicode_literals from testsuite
2016-02-20 14:46:37 +01:00
Adrian Sampson
abc2ff066b
Refine naming and docs for #1843
...
Most urgently, this function doesn't just work on *items*; it works on
arbitrary objects (and, in particular, albums).
2016-02-07 14:48:45 -08:00
Adrian Sampson
6e3d72afa6
Merge pull request #1846 from diego-plan9/interactiveedit
...
edit: allow interactive editing during the importer
2016-02-07 14:34:54 -08:00
Adrian Sampson
19a5d8c45f
Add failing test for #1865
2016-02-04 11:35:23 -08:00
Adrian Sampson
25045245d6
Use two items when testing path queries
2016-02-04 11:29:11 -08:00
Diego Moreda
7b6c2c36d3
edit: fix Plugin not unloaded during tests
2016-02-03 19:05:38 +01:00
Diego Moreda
32f9bd5077
edit: add tests for interactive importer execution
...
* Add EditDuringImporterTest test case, covering the running of the
plugin during an import session. Includes editing the "album" field
and applying/discarding for both editing from items and editing from
a candidate; and editing and applying for singletons for both editing
from items and editing from a candidate.
2016-02-03 17:17:48 +01:00
Peter Kessen
c28eaee7d0
implemented interactive selection in modify
2016-01-28 21:50:37 +01:00
Peter Kessen
7bdc7d37d3
Introduced input_select_items
...
alternative and more flexibile implementation to fulfil #1723
Added test case for new input method
2016-01-28 20:26:04 +01:00
Peter Kessen
7b2de49274
added test for abort of modify action
2016-01-28 19:03:33 +01:00
Peter Kessen
a707715b81
added testcase with no write and no move
...
improves coverage
2016-01-28 18:59:46 +01:00
Peter Kessen
e0ffae3be0
added test case for Modify without any change
2016-01-28 18:59:34 +01:00
Peter Kessen
8954f1a494
split of modify function in modify_test
2016-01-28 18:59:11 +01:00
Peter Kessen
c7fff52324
Fixed bug when running subset of testcases
...
Happens when invoking `tox -e py27 test.test_ui` directly.
`os.environ.get('HOME')` seems to return None and raises an Exception
in tearDown of class
2016-01-27 19:12:49 +01:00
Diego Moreda
76d7c65c1b
replaygain: refine test by subclassing exception
...
* Subclass FatalReplayGainError into FatalGstreamerPluginReplayGainError
in order to handle gstreamer plugin errors more cleanly on
test_replaygain.
2016-01-26 22:20:42 +01:00
Diego Moreda
d2cec48c65
Skip GStreamer tests if plugins are missing
...
* Add a check to ReplayGainGstCliTest that ensures that the required
initial gstreamer plugins can be loaded, skipping the test if it is not
the case instead of running it.
* Add a check to ReplayGainGstCliTest.test_cli_saves_track_gain for
checking if item.rg_track_peak and item.rg_track_gain is not None. If
they are None, it is assumed that the decoder plugins could not be
found, and the tests is skipped, as discussed on #1830 .
2016-01-26 17:59:51 +01:00
Adrian Sampson
5f8e710e07
Fix configuration in ReplayGain tests ( #1830 )
2016-01-25 10:27:36 -08:00
Adrian Sampson
33422c7cb1
Merge pull request #1828 from diego-plan9/autostubusage
...
Fix unrestored AutotagStub on two TestCases
2016-01-22 15:30:04 -08:00
Adrian Sampson
a07cb837aa
Fix #1826 : include test_completion.sh in sdist
2016-01-22 15:25:43 -08:00
Adrian Sampson
a18d0e4b3b
Make bash-completion test more robust
...
I found some infelicities while investigating #1826 . This test was hard-coding
a specific path for bash-completion, which was the wrong one for my system, so
it was being skipped every time. This searches the list of paths used by the
actual command.
2016-01-22 15:22:48 -08:00
Diego Moreda
b49426046a
Fix unrestored AutotagStub on two TestCases
...
* Call AutotagStub.restore() during the tearDown of
test_mbsubmit.MBSubmitPluginTest and test_plugins.PromptChoicesTest,
which could potentially lead to other tests calling mocked versions
of autotag.mb.match_album, .match_track, .album_for_id and .track_for_id
instead of the real functions.
2016-01-22 21:33:33 +01:00
Diego Moreda
79d84c0e4f
Style and doc fixes for MB_id importer argument
...
* Rename the importer argument and related variables to make it more
generic, as the feature should be independent of the backend used and
not restricted to MusicBrainz.
* Update documentation and docstrings accordingly.
* Add changelog entry.
2016-01-22 16:31:00 +01:00
Diego Moreda
4eedd2bd8d
Store user-supplied MB ids on the Tasks
...
* Store the user-supplied MusicBrainz IDs (via the "--musicbrainzid"
importer argument) on ImporTask.task.musicbrainz_ids during the
lookup_candidates() pipeline stage.
* Update test cases to reflect the changes.
2016-01-21 20:33:54 +01:00
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
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
Jesse Weinstein
72ce9ea3eb
use underscore in name for pep-8s sake
2016-01-12 22:14:12 -08:00
Jesse Weinstein
d93f723263
Convert SKIP_SLOW_TESTS to its own decorator
2016-01-12 21:53:52 -08: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
c7045daf90
sampsyo -> beetbox ( #1730 ) 🎉
2016-01-08 20:36:16 -08:00
Adrian Sampson
635052e2ff
Fix #1804 : edit plugin moves files
2016-01-08 15:22:28 -08:00
Jesse Weinstein
7370cdfd39
Add test for backwards compat
2016-01-06 01:34:52 -08: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
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
Jesse Weinstein
4d07e45732
Bring test_ftintitle up to 94%
...
Just need a test for importing.
2016-01-04 01:51:49 -08:00
Jesse Weinstein
6ba92be18d
Add std license header
2016-01-03 23:34:16 -08:00
Jesse Weinstein
875876fd1d
flake8 fixes
2016-01-03 16:50:17 -08:00
Jesse Weinstein
dfce9e19aa
Fix tests due to change in default command behavior
2016-01-03 16:50:17 -08:00
Jesse Weinstein
4d55c5bf7e
Do patching in setUp
2016-01-03 16:50:17 -08:00
Jesse Weinstein
989b4719a6
Rearrange test_play.py to minimize duplication
2016-01-03 16:50:17 -08:00
Jesse Weinstein
7f372a6a59
Add last 2 tests -- 100% line coverage
2016-01-03 16:50:17 -08:00
Jesse Weinstein
4a1a70e23d
add 3 more tests
2016-01-03 16:50:17 -08:00
Jesse Weinstein
6ad0c8a490
Add album option test
2016-01-03 16:50:17 -08:00
Jesse Weinstein
a47de98653
add relative_to test
2016-01-03 16:50:17 -08:00
Jesse Weinstein
6b49b0ff23
add test for $args
2016-01-03 16:50:17 -08:00
Jesse Weinstein
3ad02e1a74
Remove duplicate code
2016-01-03 16:50:17 -08:00
Jesse Weinstein
362d625f69
add test for --args option
2016-01-03 16:50:17 -08:00
Jesse Weinstein
d15b996dc4
Verify that the generated playlist contains the path to the item
2016-01-03 16:50:17 -08:00
Jesse Weinstein
3807d4fc57
fix flake8 warnings
2016-01-03 16:50:17 -08:00
Jesse Weinstein
25495d675c
Add minimal (no asserts) test for play plugin
2016-01-03 16:50:17 -08:00
Diego Moreda
53ecec11e0
mbsubmit: bump copyright year
2015-12-30 20:32:14 +01:00
Diego Moreda
418ad58686
Merge remote-tracking branch 'upstream/master' into prompthook
2015-12-30 20:23:44 +01:00
Diego Moreda
798dd72bb6
mbsubmit: style fixes
2015-12-30 20:19:03 +01:00
Jack Wilsdon
12cd5306b7
Update copyright dates to 2016
2015-12-30 15:42:06 +00:00
Diego Moreda
966746fd55
mbsubmit: add basic tests
...
* Add basic unit tests for the mbsubmit plugin, covering the output of the
"Print tracks" option on albums and singletons.
2015-12-29 17:41:49 +01:00
Lachlan Charlick
f7b05729a3
fetchart: Add tests for google backend
2015-12-29 01:49:07 +10:30
Lachlan Charlick
2e10b8c284
fetchart: Pass config object to backends when initialized
2015-12-29 01:37:53 +10:30
Diego Moreda
b7747013d3
Prompt event unit tests
...
* Add "before_choose_candidate" unit tests (PromptChoicesTest), containing
tests for checking the addition of choices to ui.input_options (album and
singletons), conflict resolution, and callback handling (regular and with
return value).
2015-12-16 19:23:27 +01:00
Adrian Sampson
5a285cc11f
Fix #1673 : Escape regex terms in lyrics
2015-12-12 18:09:24 -08:00
Adrian Sampson
6f6794f560
Merge pull request #1706 from sampsyo/editor
...
Edit plugin
2015-12-12 18:00:25 -08:00
Adrian Sampson
3855fa0766
Doc refinements for #1749
2015-12-12 17:33:23 -08:00
Adrian Sampson
d1adaa9cb7
Merge pull request #1749 from diego-plan9/humanlength
...
Format length as M:SS by default
2015-12-12 17:29:56 -08:00
Adrian Sampson
b31f8cd802
Remove tests for Google fetchart backend ( #1760 )
2015-12-12 16:58:49 -08:00
Adrian Sampson
659fab2ca9
Fix #879 (again): update ID3 string encodings
2015-12-10 14:30:25 -08:00
Diego Moreda
3e2d2479b5
Fix test that depended on local time, 2
2015-12-09 16:42:47 +01:00
Diego Moreda
25cb556ea2
Fix test that depended on local time
2015-12-09 16:40:14 +01:00
Diego Moreda
2f2cdd24da
Fix unused import leftover on test_library
2015-12-09 16:31:45 +01:00
Diego Moreda
0e64275993
Add tests for library-specific field types
2015-12-09 16:07:01 +01:00
Peter Kessen
ceafad2651
Fixed testcase TestLibrary.test_write_with_custom_path
...
on windows it is important to use syspath with functions
to modify path
2015-12-05 15:05:25 +01:00
Peter Kessen
c086a634b6
Fixed testcase TestLibrary.test_no_write_permission
...
on windows it is important to use syspath with functions
to modify path
2015-12-05 14:58:03 +01:00
Diego Moreda
cca307c88b
Fix test that was expecting raw length format
2015-12-05 14:18:23 +01:00
Peter Kessen
4937cc7e9e
fixed format
2015-12-02 22:13:38 +01:00
Peter Kessen
de7d9d6b0d
Tried to fix test on windows
...
test_slashed_query_matches_path (test.test_query.PathQueryTest)
2015-12-02 22:04:07 +01:00
Peter Kessen
f1f1288b30
Merge branch 'master' into editor
2015-12-02 21:35:33 +01:00
Adrian Sampson
a333777946
Merge pull request #1737 from diego-plan9/mbtracks
...
info plugin: Allow custom formatting and human-readable lengths
2015-11-26 10:31:12 -08:00
Diego Moreda
83279ebe5b
info: revert human_length changes
...
* Remove human length changes from the plugin and the tests, as they will
eventually be handled at a higher level.
2015-11-25 16:06:19 +01:00
Diego Moreda
2bce87cd3f
Merge remote-tracking branch 'upstream/master'
2015-11-24 19:41:13 +01:00
Diego Moreda
455fd0e352
Fix sorting by nonexistent field ( #1734 ), tests
...
* Fix crash when sorting by nonexistent field.
* Add tests for queries with nonexistient fields for sorting.
2015-11-24 19:37:30 +01:00
Diego Moreda
67af8af7dd
info: add unit tests
...
* Add tests for length (human/raw, library/path) and custom format.
2015-11-24 17:16:14 +01:00
Diego Moreda
8d9db9ffe6
info: minor cleanups
...
* Rename filter() function to avoid warning of reserved built-in symbol.
* Remove mediafile fixture on two tests.
2015-11-24 16:41:56 +01:00
Adrian Sampson
6958f83dd6
Fix test for richer CalledProcessError
2015-11-23 22:55:51 -08:00
Adrian Sampson
eb68177fee
Fix #1735 : convert --pretend encoding error
2015-11-21 12:40:45 -08:00
Adrian Sampson
6cb8db3b2e
Merge pull request #1728 from diego-plan9/notquery
...
Add boolean "not" query operator
2015-11-20 10:00:05 -08:00
Diego Moreda
51bf6a1c9f
Add documentation for NotQuery, cleanup
...
* Add changelog and query.rst documentation entries for the usage of negated
queries.
* Cleanup NotQuery class as suggested during code review (PEP conforming
docstring, clarification on empty clause match behaviour).
2015-11-20 18:06:22 +01:00
Adrian Sampson
f995ab38db
Fix a test and a bug revealed by a test
2015-11-19 16:11:45 -08:00
Adrian Sampson
6a99eaae35
Fix a test for the new output format
2015-11-19 15:45:06 -08:00
Peter Kessen
6b408507f6
added encoding as comment in files
...
added line like
# -*- coding: utf-8 -*-
to all files without license
2015-11-19 18:52:57 +01:00
Peter Kessen
3eb8008b11
added encoding as comment in files
...
added line like
# -*- coding: utf-8 -*-
to all files with correct license in header
2015-11-19 18:41:01 +01:00
Diego Moreda
40bfed756b
Revise not query syntax, cleanup, modify docstring
...
* Revise the NotQuery syntax, replacing the '¬' character with '^'. Fix tests
to conform to this change, and cleanup the PARSE_QUERY_PART_REGEX.
* Modify parse_query_part() docstring to mention the negate parameter on the
returned tuple, and added an example.
2015-11-19 18:04:47 +01:00
Diego Moreda
e69b3b3c5d
Fix NotQuery assertion by using sets, not lists
...
* Fix issue with an assertion that was order-sensitive and caused a problem on
some tox runs.
2015-11-18 17:40:47 +01:00
Diego Moreda
e457479558
Add NotQuery syntax tests
...
* Add tests to NotQueryTest for testing the results of using queries with
negation.
* Fix issue on test_dbcore due to the modifications on the tuple returned by
parse_query_part (the number of elements was changed from 3 to 4).
2015-11-18 17:27:22 +01:00
Diego Moreda
dd8b80e320
Make NotQuery subclass Query, update tests
...
* Modify NotQuery so it subclasses Query instead of MutableCollectionQuery.
* Update instances where NotQuery objects are created on tests and queryparse,
as NotQuery expects a single Query as a parameter to the constructor instead of
a list of Queries.
2015-11-18 14:54:20 +01:00
Adrian Sampson
8e9d335a87
Tear down Item.write mock
2015-11-17 10:26:36 -08:00
Adrian Sampson
0d459752d9
Update edit plugin tests
2015-11-16 13:55:12 -08:00
Diego Moreda
f2c8e9ff07
Add "not" query operator, initial draft
...
* Add support for user friendly "not" operator in queries without requiring to
use regular expressions, via adding NotQuery to beets.dbcore.query.
* Update the prefix list at library.parse_query_parts() and the query parsing
mechanisms in order to create a NotQuery when the prefix is found.
* Add two TestCases, NotQueryMatchTest as the negated version of MatchTest, and
the more generic NotQueryTest for testing the integration of the NotQuery with
the rest of the existing Query subclasses.
2015-11-16 21:36:42 +01:00
Diego Moreda
e31680123b
edit: update extra fields in yaml test
...
* Update test for extra fields in edited yaml, allowing the user to add fields
while editing. Rename the test to test_single_edit_add_field to reflect its
purpose more accurately.
2015-11-16 14:46:13 +01:00
Diego Moreda
2adf70209f
edit: add test for extra fields on user yaml
...
* Add test_invalid_yaml_extra_field, testing the handling of user appended
fields (in particular, a non existing field) during the yaml editing.
2015-11-15 18:36:24 +01:00
Diego Moreda
5f2e5d73cc
edit: update unit tests
...
* Update unit tests in order to reflect the changes on the last refactor of
edit.py (patch edit.edit instead of EditPlugin.get_editor, revise stdin strings
to match current version, remove TODO on docstrings from malformed and invalid
yaml tests).
2015-11-15 18:09:20 +01:00
Adrian Sampson
72b26235ad
Merge branch 'master' into editor
2015-11-14 13:28:04 -08:00
Adrian Sampson
e3f7da5467
Update test for simpler interactive_open
2015-11-14 13:26:04 -08:00
Adrian Sampson
9c968456c1
Fix #1666 : malformed binary data in SoundCheck
2015-11-13 12:21:36 -08:00
Diego Moreda
d9ebb3409a
edit: add album query tests, revise failing ones
...
* Add tests for executing the command with album queries (-a), testing the edit
of album and albumartist fields.
* Revise invalid and malformed yaml tests so they return a failure instead of
an error.
2015-11-11 15:50:32 +01:00
Diego Moreda
6e6aa9700d
edit: more assertions on existing tests, new tests
...
* Modify existing tests in order to explicitely check for differences (or lack
of) in the items fields, with the intention to ensure that no unintended changes
slip through.
* Added tests for modifying a single item from a list of items, and for editing
the album field of the items (stub for discussing whether the actual album
should be updated, etc).
2015-11-10 19:16:04 +01:00
Marvin Steadfast
4b2b9fe2ce
Added embyupdate plugin
...
Its a simple plugin that triggers a library refresh after the library
got changed. It does the same thing like the plexupdate plugin.
2015-11-10 10:15:01 +01:00
Diego Moreda
41b4987990
edit: add initial black-box tests
...
* Add tests for the edit plugin, including a helper for bypassing the manual
yaml editing. Tests are focused on "black-box" functionality, running the
command and making assertions on the changes made to the library.
2015-11-09 21:51:14 +01:00
reiv
81a72f74c9
Merge branch 'master' into 314-reimport-art
2015-11-04 18:37:06 +01:00
reiv
314dd0e6bc
Update re-import test to leave no orphaned art
...
Make sure that when an album is re-imported and its files are
moved, the artwork isn't left behind in the old folder.
2015-11-03 23:10:01 +01:00
reiv
21f926fb89
Add test for #314
...
Ensure that album art is preserved when an album is re-imported.
2015-11-03 22:38:13 +01:00
reiv
1625dfc17e
Merge branch 'master' into 1264-unnecessary-resize
2015-11-03 02:46:33 +01:00
reiv
93009911e0
fetchart: Add test for image resizing
...
This test ensures that images are resized if and only if they are
wider than the maxwidth setting.
2015-11-03 02:17:21 +01:00
reiv
d0cfb3e990
fetchart: add test for re-fetching deleted art
...
This test addresses #1126 .
2015-11-02 02:20:09 +01:00
Adrian Sampson
9bf95bf634
Some test code cleanup for #1586
2015-10-07 15:50:32 -07:00
Adrian Sampson
3b604c7ff9
Merge pull request #1586 from mried/RobustCaseSensitiveDetection
...
A robust way to check for a case sensitive file system
2015-10-07 15:43:38 -07:00
Peter Kessen
60e225deae
corrected test for logging see #1627
2015-09-30 20:02:32 +02:00
Adrian Sampson
092472d750
Merge pull request #1623 from pkess/test_init
...
New tests for human readable values
2015-09-30 09:18:32 -07:00
Peter Kessen
b980c60941
corrected another testcase for previous commit
2015-09-29 17:40:57 +02:00
Peter Kessen
fffb727033
corrected output of file size
...
using unit e.g. 5.4 KiB instead of 5.4 KB now
2015-09-29 17:33:54 +02:00
Adrian Sampson
f98dc8a432
Merge pull request #1627 from pkess/addLoggingTest
...
added test for logging
2015-09-28 08:24:46 -07:00
Peter Kessen
9c34bde456
added test for logging
2015-09-27 20:16:39 +02:00
Peter Kessen
21f1f53fea
added test for bucket plugin
2015-09-27 14:45:17 +02:00
Peter Kessen
9adb398198
removed useless io handler in test
2015-09-27 12:16:15 +02:00
Peter Kessen
770e89ab65
fixed suggestions by travis
2015-09-27 12:04:42 +02:00
Peter Kessen
8202658706
added test for human_bytes
2015-09-27 11:51:21 +02:00
Peter Kessen
40ec848133
moved test to other file
...
moved the tests of ui/__init__ to a new test file
2015-09-27 11:27:07 +02:00
Peter Kessen
f246a71e7b
Merge branch 'master' into test_init
...
Conflicts:
test/test_ui_commands.py
2015-09-27 11:12:38 +02:00
Peter Kessen
b293d6ad88
added test for human_seconds
2015-09-25 17:41:12 +02:00
Peter Kessen
59a1f8be01
extended test_fields_func to check output
2015-09-25 17:15:50 +02:00
Peter Kessen
8fc292bc44
Using LibTestCase instead of TestCase
2015-09-25 16:37:39 +02:00
Peter Kessen
888655413d
added testcase for fields command
...
first check of function without check of consistent output
2015-09-20 12:54:46 +02:00
Peter Kessen
0f57c4acd5
fixed spaces at end of lines
2015-09-17 20:46:32 +02:00
Peter Kessen
db2ce36cc3
improved readability of test
...
implemented suggested method from @sampsyo
2015-09-17 20:31:37 +02:00
Peter Kessen
a9a49c6846
again ignoring unused return values
2015-09-17 13:08:34 +02:00
Peter Kessen
f46cc7d131
ignoring unused return values
2015-09-17 13:05:25 +02:00
Peter Kessen
c63db558e9
removed useless install of IO capture
...
This was introduced by a copy and paste from other code. I removed it now
2015-09-17 12:55:57 +02:00
Peter Kessen
d607ae7adc
using asserRaises in test instead of previous workaround
...
used a workaround with try and except to check for a raised Exception before
2015-09-17 12:50:30 +02:00
Peter Kessen
57452624ae
using local variable instead of object attribute
2015-09-17 12:47:22 +02:00
Peter Kessen
6fdf93b59d
changed name of method to lowercase: add_item
2015-09-17 12:43:22 +02:00
Peter Kessen
4756f2878a
corrected description of test case
2015-09-16 22:18:24 +02:00
Peter Kessen
be583cd63e
added test for beets.ui.commands
...
* added test of _do_query method
2015-09-16 22:11:39 +02:00
Adrian Sampson
f4a124e7e2
Fix #1605 : parsing bare + and - in queries
2015-09-15 13:53:41 -07:00
Jack Wilsdon
46e5f9d4c8
Update tests to follow PEP 8 coding style
2015-09-11 18:39:15 +01:00
Jack Wilsdon
276c5da913
Remove unused logging import
2015-09-11 18:37:20 +01:00
Jack Wilsdon
0af47bff44
Add tests for hook plugin
2015-09-11 18:11:30 +01:00
Malte Ried
ff9dc07589
Merge branch 'master' into RobustCaseSensitiveDetection
2015-09-11 12:38:50 +02:00
Jack Wilsdon
b1cef2606b
Delete the artwork file if the test failed
2015-09-10 22:48:47 +01:00
Jack Wilsdon
2f333968c5
Add test for removing art files (remove_art_file property) ( #1591 )
2015-09-10 22:18:13 +01:00
Jack Wilsdon
622c5d1e0f
Fix unexpected spaces around keyword / parameter equals
2015-09-10 05:14:07 +01:00
Jack Wilsdon
7a70bd3b81
Add test for custom named music section (library_name property) ( #1595 )
2015-09-10 05:08:16 +01:00
Jack Wilsdon
4a225ee291
Allow a custom music section name to be provided when generating a response
2015-09-10 05:07:14 +01:00
Jack Wilsdon
2b37d8f775
Add library_name parameter to plexupdate tests
2015-09-08 14:50:49 +01:00
Malte Ried
42f99999f2
Improved the case sensitivity detection test.
2015-09-07 12:28:19 +02:00
Malte Ried
58ddecf7af
Added a Patch decorator for the os.path.samefile function to repair some previously failed test cases.
2015-09-04 18:34:43 +02:00
nath@home
9c663432bd
Refactor util/interactive_open: multiple targets
...
interactive_open should now be invoked with at least the list of
targets and optionally the command to open the targets with.
This allows beets-play to pass multiple file paths directly to
the configured command.
The changes to the existing invocations are pretty trivial in
order to comply to this refactor.
2015-09-01 23:42:42 +02:00
Adrian Sampson
6866019cb3
Merge pull request #1558 from raymondwanyoike/unicode-support
...
Support paths with non ASCII characters
2015-08-03 08:43:22 -07:00
Raymond Wanyoike
2490863042
Fix unicode paths in permissions test
2015-08-03 16:21:46 +03:00
Adrian Sampson
7d55126070
Merge pull request #1397 from multikatt/ipfs
...
Ipfs plugin
2015-08-02 18:39:55 -07:00
Adrian Sampson
5bf82f8670
Merge pull request #1545 from nathdwek/fix-jpeg-detection
...
Embedart: fails on some jpegs because imghdr doesn't recognize the mimetype
2015-07-27 11:36:54 -07:00
nath@home
68ec8294e4
smaller test image for fix-jpeg-detection
2015-07-21 21:18:57 +02:00
nath@home
fc507faee2
added comment to the test
2015-07-21 19:53:20 +02:00
nath@home
b444ec496c
simple testing for wider_jpeg_detection now done in test_mediafile_edge.py
2015-07-21 18:40:49 +02:00
David Logie
44a32fe4a9
Remove extra blank line.
2015-07-21 16:54:23 +01:00
David Logie
71d3be238b
zero: optionally update tags in the database.
2015-07-21 16:54:23 +01:00
nath@home
4b63848d51
flake8 fix
2015-07-21 17:51:25 +02:00
nath@home
c8d3a6f6fc
added tests
2015-07-21 15:32:43 +02:00
Adrian Sampson
287f0d8cef
Fix typo and test bug revealed by mock fix
...
Mock used to tolerate a mistyped call like `assert_calledwith` when we meant
`assert_called_with` silently. This seems to be fixed. Fixing the typo
revealed that the assertion was actually wrong, so I fixed that too.
2015-07-13 16:34:09 -07:00
Ben Ockmore
de17d000bd
Rewrote path legalization code to be two module functions rather than class methods. Also made algorithm more predictable, and added an extra test.
2015-07-07 01:17:12 +01:00
Ben Ockmore
d07c8fde69
Added loop to iterate over sanitize/truncate until stable. Enabled test_truncation_does_not_conflict_with_replacement test. Fixes #496 .
2015-07-06 14:57:15 +01:00
Tom Jaspers
18bd4471e4
Fix sorting of track numbers when case insensitive
...
`LOWER()` implicitly converted numerical columns to strings,
causing the ordering of ['1', '10', '2'] to be correct.
The type of the column is now checked in the sql query
using `CASE WHEN..` construct. This ensures the column is
only `LOWER()`'d when dealing with TEXT or BLOB.
- Add a test to check for the track number behavior
- Add changelog entry
Fix #1511
2015-07-05 19:56:14 +01:00
Ed Carroll
f78393aa86
Updated tests to include Plex Token
2015-06-04 01:13:30 +01:00
multikatt
2be0e7715f
Adding tests
2015-06-02 23:03:37 -04:00
Markus Unterwaditzer
f82c7ec5d1
Fix test_thumbnails
2015-06-02 00:40:01 +02:00
Tom Jaspers
be484f2af0
Implement --pretend option for the move command
...
The method `show_path_changes` takes a list of tuples (source, destination)
that will be printed on either single / double line, as proposed in #1405 .
2015-05-20 13:03:18 +02:00
Adrian Sampson
adebb850b5
Tests: fix a leaky error message
...
Caused by inadvertently executing too much at module-import time. By
materializing ArtResizer in a global definition, we triggered a debug log
before the test harness had a chance to capture the logging.
2015-05-19 16:50:05 -07:00
Adrian Sampson
07242f65e2
Convert always uses bytestring args ( #1461 )
2015-05-19 16:38:08 -07:00
Adrian Sampson
36c2241a34
Use bytestring filenames in embedart tests
...
First step on #1461 .
2015-05-19 16:09:39 -07:00
Tom Jaspers
a82dee35cb
fetchart complains if no imaging backend available
...
The `enforce_ratio` and `minwidth` options depend on PIL or ImageMagick.
Previously it silently fails. Now it will log a warning, and accept the
image.
Tests concerning these options are skipped when no imaging backend is available.
Fix #1460
2015-05-18 19:44:40 +02:00
Adrian Sampson
d6348a4da2
tests: Use bytes for mock responses
...
Also, require a newer version of responses that is less sensitive to this.
2015-05-13 18:09:35 -07:00
Adrian Sampson
71d7c0b004
Merge pull request #1450 from tomjaspers/metasync-itunes
...
MetaSync: more OO structure + iTunes support
2015-05-13 15:04:36 -07:00
Tom Jaspers
94edc7a2a4
MetaSync: minor improvements for iTunes source
...
- Use path as an key to find items (over artist/title/album tuples)
- Sensible default library location
2015-05-13 20:02:34 +02:00
Adrian Sampson
dff4feaec2
embedart: Preempt wrong-type error in AAC files
2015-05-11 17:46:21 -07:00
Tom Jaspers
16531b6cf8
MetaSync: fix tests for Windows
2015-05-11 17:42:52 +02:00
Tom Jaspers
afeedd2e70
MetaSync: basic tests
...
No tests for Amarok, unfortunately
2015-05-10 14:46:59 +02:00
Lucas Duailibe
df89a68a99
Fixing sort by path ( fix #1451 )
2015-05-07 23:45:26 -03:00