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
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
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
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
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
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
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
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