parentwork force test doesn't work

This commit is contained in:
soergeld 2020-07-13 22:44:49 +02:00
parent 66bb2adf19
commit e3fb243782

View file

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