From a6257fc83b0930ef353d56d34d635fd8ba05ca66 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sun, 1 Jan 2023 19:38:55 +0000 Subject: [PATCH] Make copyright text inclusion test date-independent Improve clarity on what the test is looking for in the footer --- tests/roots/test-root/conf.py | 2 +- tests/test_build_html.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/roots/test-root/conf.py b/tests/roots/test-root/conf.py index 1065cd193..6583fbb80 100644 --- a/tests/roots/test-root/conf.py +++ b/tests/roots/test-root/conf.py @@ -20,7 +20,7 @@ templates_path = ['_templates'] source_suffix = ['.txt', '.add', '.foo'] project = 'Sphinx ' -copyright = '2010-2016, Georg Brandl & Team' +copyright = '1234-6789, copyright text credits' # If this is changed, remember to update the versionchanges! version = '0.6' release = '0.6alpha1' diff --git a/tests/test_build_html.py b/tests/test_build_html.py index dee65613f..11a03b944 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -358,7 +358,7 @@ def test_html4_deprecation(make_app, tempdir): (".//li[@class='toctree-l1']/a", 'Testing various markup'), (".//li[@class='toctree-l2']/a", 'Inline markup'), (".//title", 'Sphinx '), - (".//div[@class='footer']", 'Georg Brandl & Team'), + (".//div[@class='footer']", 'copyright text credits'), (".//a[@href='http://python.org/']" "[@class='reference external']", ''), (".//li/p/a[@href='genindex.html']/span", 'Index'),