beets/test
Adrian Sampson f005ec2de0 refactor: everything is like a plugin query (#214)
The initial idea for this refactor was motivated by the need to make
PluginQuery.match() have the same method signature as the match() methods on
other queries. That is, it needed to take an *item*, not the pattern and
value. (The pattern is supplied when the query is constructed.) So it made
sense to move the value-to-pattern code to a class method.

But then I realized that all the other FieldQuery subclasses needed to do
essentially the same thing. So I eliminated PluginQuery altogether and
refactored FieldQuery to subsume its functionality. I then changed all the
other FieldQuery subclasses to conform to the same pattern.

This has the side effect of allowing different kinds of queries (even
non-field queries) down the road.
2013-03-13 22:57:20 -07:00
..
rsrc original_{year,month,day,date} fields (GC-441) 2013-02-08 13:28:51 -08:00
__init__.py misc. overdue code cleanup 2010-07-09 18:07:15 -07:00
_common.py test: move DummyIO initialization to harness 2013-02-18 18:29:10 -08:00
test_art.py tests: remove ad-hoc temporary directories 2013-02-18 18:23:32 -08:00
test_autotag.py tests: remove ad-hoc temporary directories 2013-02-18 18:23:32 -08:00
test_db.py format None values as the empty string 2013-02-28 10:00:26 -08:00
test_files.py tests: remove ad-hoc temporary directories 2013-02-18 18:23:32 -08:00
test_ihate.py ihate plugin: ver 1.0 - initial import 2012-10-05 02:37:21 +03:00
test_importer.py test: move DummyIO initialization to harness 2013-02-18 18:29:10 -08:00
test_mb.py add unit tests for aliases (#102) 2013-02-27 09:17:42 +00:00
test_mediafile.py fix crash when RG fields set to null 2013-02-24 16:10:18 -08:00
test_mediafile_basic.py original_{year,month,day,date} fields (GC-441) 2013-02-08 13:28:51 -08:00
test_pipeline.py happy new year 2013-01-11 10:43:41 -08:00
test_player.py happy new year 2013-01-11 10:43:41 -08:00
test_query.py refactor: everything is like a plugin query (#214) 2013-03-13 22:57:20 -07:00
test_template.py happy new year 2013-01-11 10:43:41 -08:00
test_the.py combine TempConfigTestCase and ExtraAsserts 2012-12-15 13:21:09 -08:00
test_ui.py test: move DummyIO initialization to harness 2013-02-18 18:29:10 -08:00
test_vfs.py happy new year 2013-01-11 10:43:41 -08:00
test_zero.py remove singleton enforcement from plugins 2013-01-31 12:13:19 -08:00
testall.py happy new year 2013-01-11 10:43:41 -08:00