summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François B <2589111+jfbu@users.noreply.github.com>2023-01-22 18:07:46 +0100
committerGitHub <noreply@github.com>2023-01-22 18:07:46 +0100
commit3362021cfb005090822307e6ac7d86eb0091fca9 (patch)
treeefd6949656db8951e44460bf06c9dbe69d6fde3b
parente17f39e7b535f4849754d46f2cd2e411df8aa535 (diff)
parent0fcd3596630b26490c4ea1999634f9f057b2244b (diff)
downloadsphinx-git-3362021cfb005090822307e6ac7d86eb0091fca9.tar.gz
Merge pull request #11146 from jfbu/update_test_needs_sphinx
Update test_config.py::test_needs_sphinx for Alabaster 0.7.13 compat
-rw-r--r--tests/test_config.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index d31fae113..b0e2112a5 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -163,20 +163,20 @@ def make_app_with_empty_project(make_app, tempdir):
return _make_app
-@mock.patch.object(sphinx, '__display_version__', '1.3.4')
+@mock.patch.object(sphinx, '__display_version__', '1.6.4')
def test_needs_sphinx(make_app_with_empty_project):
make_app = make_app_with_empty_project
# micro version
- make_app(confoverrides={'needs_sphinx': '1.3.3'}) # OK: less
- make_app(confoverrides={'needs_sphinx': '1.3.4'}) # OK: equals
+ make_app(confoverrides={'needs_sphinx': '1.6.3'}) # OK: less
+ make_app(confoverrides={'needs_sphinx': '1.6.4'}) # OK: equals
with pytest.raises(VersionRequirementError):
- make_app(confoverrides={'needs_sphinx': '1.3.5'}) # NG: greater
+ make_app(confoverrides={'needs_sphinx': '1.6.5'}) # NG: greater
# minor version
- make_app(confoverrides={'needs_sphinx': '1.2'}) # OK: less
- make_app(confoverrides={'needs_sphinx': '1.3'}) # OK: equals
+ make_app(confoverrides={'needs_sphinx': '1.5'}) # OK: less
+ make_app(confoverrides={'needs_sphinx': '1.6'}) # OK: equals
with pytest.raises(VersionRequirementError):
- make_app(confoverrides={'needs_sphinx': '1.4'}) # NG: greater
+ make_app(confoverrides={'needs_sphinx': '1.7'}) # NG: greater
# major version
make_app(confoverrides={'needs_sphinx': '0'}) # OK: less