Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Jan 10, 2024
1 parent c35bfef commit c884442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittests/test_publishing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
Expand Down

0 comments on commit c884442

Please sign in to comment.