Skip to content

Commit

Permalink
fix: drop the date from latex builds tests
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Jan 10, 2024
1 parent 13306c3 commit cb8a784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import re
import warnings
from datetime import date

import pytest
from sphinx.errors import ExtensionError
Expand Down Expand Up @@ -385,4 +386,6 @@ def test_builder_priority_latex(sphinx_build_factory, directive, file_regression

sphinx_build = sphinx_build_factory(source, buildername="latex").build()
latex = (sphinx_build.outdir / "python.tex").read_text()
# workaround to remove the date line from the output (It will change for every build)
latex = latex.replace(f"\\date{date.today().strftime('{%b %d, %Y}')}\n", "")
file_regression.check(latex, extension=".tex")
3 changes: 1 addition & 2 deletions tests/test_execute/test_builder_priority_latex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@


\title{Python}
\date{Dec 29, 2023}
\release{}
\author{unknown}
\newcommand{\sphinxlogo}{\vbox{}}
Expand Down Expand Up @@ -104,4 +103,4 @@

\renewcommand{\indexname}{Index}
\printindex
\end{document}
\end{document}

0 comments on commit cb8a784

Please sign in to comment.