corrects tests for latest code changes

This commit is contained in:
Mouse Reeve
2020-11-07 17:48:50 -08:00
parent 20395ff2ec
commit cfa4cb015d
8 changed files with 22 additions and 73 deletions

View File

@ -64,8 +64,10 @@ class SelfConnector(TestCase):
def test_search_default_filter(self):
self.edition.default = True
self.edition.save()
''' it should get rid of duplicate editions for the same work '''
self.work.default_edition = self.edition
self.work.save()
results = self.connector.search('Anonymous')
self.assertEqual(len(results), 1)
self.assertEqual(results[0].title, 'Edition of Example Work')