From 083cba54f78b024d3166071f3468d4fa46bb2400 Mon Sep 17 00:00:00 2001 From: Monkey Do Date: Tue, 27 Feb 2024 11:09:46 +0100 Subject: [PATCH] tests: Fix BookBrainz Work sort name This test was expecting a sort name that is incorrect, and has since been corrected in the main database. I'm not sure it's a good idea to run tests on entities that might change over time, as is the case here. --- .../frontend/external/bookbrainz_db/test/literary_work_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/critiquebrainz/frontend/external/bookbrainz_db/test/literary_work_test.py b/critiquebrainz/frontend/external/bookbrainz_db/test/literary_work_test.py index d842108e..ccc478d1 100644 --- a/critiquebrainz/frontend/external/bookbrainz_db/test/literary_work_test.py +++ b/critiquebrainz/frontend/external/bookbrainz_db/test/literary_work_test.py @@ -15,7 +15,7 @@ def test_get_literary_work_by_bbid(self): literary_work_info = literary_work.get_literary_work_by_bbid(self.bbid1) self.assertEqual(literary_work_info["bbid"], self.bbid1) self.assertEqual(literary_work_info["name"], "Assassin's Creed: Brotherhood") - self.assertEqual(literary_work_info["sort_name"], "Brotherhood, Assassin's Creed:") + self.assertEqual(literary_work_info["sort_name"], "Assassin's Creed: Brotherhood") self.assertEqual(literary_work_info["work_type"], "Novel") def test_fetch_multiple_literary_works(self):