add test: from_scratch only removes writeable
Tests for commit from_scratch import: only remove writable fields.
@@ -644,6 +644,21 @@ class ImportTest(_common.TestCase, ImportHelper):
self.importer.run()
self.assertEqual(self.lib.items().get().genre, u'')
+ def test_apply_from_scratch_keeps_format(self):
+ config['import']['from_scratch'] = True
+
+ self.importer.add_choice(importer.action.APPLY)
+ self.importer.run()
+ self.assertEqual(self.lib.items().get().format, u'MP3')
+
+ def test_apply_from_scratch_keeps_bitrate(self):
+ config['import']['from_scratch'] = True
+ bitrate = 80000
+
+ self.importer.add_choice(importer.action.APPLY)
+ self.importer.run()
+ self.assertEqual(self.lib.items().get().bitrate, bitrate)
+
def test_apply_with_move_deletes_import(self):
config['import']['move'] = True
