Skip to content

Commit

Permalink
🧪 TESTS: Improve gettext test (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell authored Jun 12, 2021
1 parent 1b2bfd8 commit 135941d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_sphinx/test_sphinx_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,5 +377,6 @@ def test_gettext(

output = get_sphinx_app_output(app, filename="index.pot", buildername="gettext")
output = re.sub(r"POT-Creation-Date: [0-9: +-]+", "POT-Creation-Date: ", output)
output = re.sub(r"Copyright \(C\) [0-9]{4}", "Copyright (C) XXXX", output)

file_regression.check(output, extension=".pot")
2 changes: 1 addition & 1 deletion tests/test_sphinx/test_sphinx_builds/test_gettext.pot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2020, Executable Book Project
# Copyright (C) XXXX, Executable Book Project
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
Expand Down

0 comments on commit 135941d

Please sign in to comment.