mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-13 13:41:24 +00:00
Correct newline assertions in Overview editor tests
This commit is contained in:
@@ -125,8 +125,8 @@ class VisualOverviewTests(unittest.TestCase):
|
||||
)
|
||||
self.assertEqual(
|
||||
live["item"]["Overview"],
|
||||
"Original distributor synopsis.\\n\\n" + AI_OVERVIEW_HEADING
|
||||
+ "\\n\\nEdited after publishing",
|
||||
"Original distributor synopsis.\n\n" + AI_OVERVIEW_HEADING
|
||||
+ "\n\nEdited after publishing",
|
||||
)
|
||||
restore(db_path=db_path, media_id="media-1", client=client)
|
||||
self.assertEqual(
|
||||
@@ -143,7 +143,7 @@ class VisualOverviewTests(unittest.TestCase):
|
||||
)
|
||||
client, live = self.client()
|
||||
publish(db_path=db_path, media_id="media-1", client=client)
|
||||
live["item"]["Overview"] += "\\nExternal edit"
|
||||
live["item"]["Overview"] += "\nExternal edit"
|
||||
with self.assertRaisesRegex(RuntimeError, "changed externally"):
|
||||
edit_overview(
|
||||
db_path=db_path, media_id="media-1",
|
||||
|
||||
Reference in New Issue
Block a user