mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 03:54:21 +01:00
parentwork force test doesn't work
This commit is contained in:
parent
66bb2adf19
commit
e3fb243782
1 changed files with 2 additions and 3 deletions
|
|
@ -156,17 +156,16 @@ class ParentWorkMockTest(unittest.TestCase, TestHelper):
|
|||
self.assertEqual(item['mb_parentworkid'], '3')
|
||||
|
||||
def test_force(self):
|
||||
self.config['parentwork']['force'] = True
|
||||
item = Item(path='/file', mb_workid='1', mb_parentworkid=u'XXX')
|
||||
item.add(self.lib)
|
||||
|
||||
self.run_command('parentwork')
|
||||
self.run_command('parentwork -f')
|
||||
|
||||
item.load()
|
||||
self.assertEqual(item['mb_parentworkid'], '3')
|
||||
|
||||
def test_no_force(self):
|
||||
self.config['parentwork']['force'] = True
|
||||
self.config['parentwork']['force'] = False
|
||||
item = Item(path='/file', mb_workid='1', mb_parentworkid=u'XXX')
|
||||
item.add(self.lib)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue