beets/test
Adrian Sampson c09bac603f dbcore: types translate null values on assignment
In preparation for #660, where we will allow MediaFile to expose None values
when tags are missing (and consume None to remove tags). This makes it
possible to hide nullness in the rest of beets by translating None to a
suitable zero-ish value on field assignment.

Types can of course opt out of this to preserve a distinct null value. We do
this now for the album_id field, which needs to be null to indicate
singletons.

Type.normalize() also enables more sophisticated translations (e.g., an
integer field could round off float values assigned into it) in the future.
2014-04-05 16:27:07 -07:00
..
rsrc Use _safe_cast to avoid dying on illegal dates. 2014-03-18 01:38:04 -04:00
__init__.py misc. overdue code cleanup 2010-07-09 18:07:15 -07:00
_common.py Use nose to capture logs during test 2014-03-23 21:12:08 +01:00
helper.py Add helper for high-level tests 2014-04-05 21:09:12 +02:00
test_art.py Make fetchart use requests and send useragent 2014-03-09 09:26:30 +00:00
test_autotag.py fix tests for cached weights loading 2014-04-03 13:17:38 -07:00
test_completion.sh Add completion of plugin commands 2014-03-02 16:18:16 +01:00
test_config_command.py Add suite function to config command test module 2014-03-06 11:13:24 +01:00
test_convert.py Test convert error during import 2014-04-05 21:09:12 +02:00
test_datequery.py add some failing tests for date queries 2014-02-14 23:02:51 -08:00
test_dbcore.py dbcore: types translate null values on assignment 2014-04-05 16:27:07 -07:00
test_files.py move Destination method to Item class 2013-09-17 09:09:10 -07:00
test_ihate.py fix ihate tests 2014-02-08 12:20:25 -08:00
test_importer.py Add test case for single file import 2014-04-03 22:13:31 +02:00
test_importfeeds.py Add failing importfeed tests for albums with slashes 2014-03-19 17:26:11 +01:00
test_library.py Add tests for item.write() custom path 2014-04-04 15:19:32 +02:00
test_mb.py Update tests given new alias behavior 2014-03-26 13:01:42 -07:00
test_mediafile.py Make mediafile tests independent of image order 2014-04-02 22:15:00 +02:00
test_mediafile_edge.py Move mediafile cast logic to storage style 2014-03-07 16:32:21 +01:00
test_pipeline.py Add pull() generator to Pipeline 2014-02-01 13:43:05 +01:00
test_player.py happy new year 2013-01-11 10:43:41 -08:00
test_query.py fix numeric queries over empty string (fix #547) 2014-02-17 22:51:53 -05: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 Modify command: ability to delete/reset an attribute (beet modify field!) 2014-04-01 22:38:33 +02:00
test_ui_importer.py Fix test run with setuptools 2014-02-11 13:24:47 +01:00
test_vfs.py fix VFS tests 2013-04-06 16:35:17 -07:00
test_web.py Fix album retrieval 2014-02-10 17:26:26 +01:00
test_zero.py fix uses of item.dirty and item.record 2013-08-21 10:57:52 -07:00
testall.py Fix python namespaces for test runs 2013-04-07 01:32:47 +02:00