From c884442e0fc1f5a103eddd397ea0ee5621d48225 Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Wed, 10 Jan 2024 08:46:57 +0100 Subject: [PATCH] more fixes --- test/unittests/test_publishing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unittests/test_publishing.py b/test/unittests/test_publishing.py index ebc3e702..bcdfc709 100644 --- a/test/unittests/test_publishing.py +++ b/test/unittests/test_publishing.py @@ -149,7 +149,7 @@ def test_generate_latex_command(self): cmd = includefigure.generate_latex_command(sumatra_options, graphics_options) sys.stdout.seek(0) self.assertEqual(sys.stdout.read().strip(), - r"\includegraphics[width=\textwidth]{smt_images/bar.jpg}") + "\\includegraphics[width=\textwidth]{smt_images/bar.jpg}") sys.stdout = sys.__stdout__ @patch(utils, 'get_record_store', MockRecordStore) @@ -166,7 +166,7 @@ def test_generate_latex_command__with_path(self): cmd = includefigure.generate_latex_command(sumatra_options, graphics_options) sys.stdout.seek(0) self.assertEqual(sys.stdout.read().strip(), - r"\includegraphics[width=\textwidth]{smt_images/subdirectory/baz.png}") + "\\includegraphics[width=\textwidth]{smt_images/subdirectory/baz.png}") sys.stdout = sys.__stdout__ @unittest.skipUnless(have_docutils, "docutils not available")