Skip to content

Commit

Permalink
Rework numpy test as it only supports 3.9 now
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jul 21, 2023
1 parent 685eb24 commit 5097fad
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 23 deletions.
8 changes: 2 additions & 6 deletions tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# stdlib
import re
from typing import get_type_hints

# 3rd party
Expand Down Expand Up @@ -31,12 +32,7 @@ def test_get_sphinx_doc_url():
with pytest.raises(ValueError, match="Documentation URL not found in data from PyPI."):
get_sphinx_doc_url("sphinx-prompt")

assert get_sphinx_doc_url("numpy") in {
"https://numpy.org/doc/1.24/",
"https://numpy.org/doc/1.23/",
"https://numpy.org/doc/1.22/",
"https://numpy.org/doc/1.21/",
}
assert re.match(r"https://numpy\.org/doc/1\.\d\d/", get_sphinx_doc_url("numpy"))

assert get_sphinx_doc_url("matplotlib") == "https://matplotlib.org/"

Expand Down
2 changes: 1 addition & 1 deletion tests/test_seeding.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

expected_mapping_a = {
"domdf-python-tools": ("https://domdf-python-tools.readthedocs.io/en/latest/", None),
"numpy": ("https://numpy.org/doc/1.24/", None),
# "numpy": ("https://numpy.org/doc/1.25/", None),
"packaging": ("https://packaging.pypa.io/en/stable/", None),
"requests": ("https://requests.readthedocs.io/en/latest/", None),
"slumber": ("https://slumber.readthedocs.io/en/v0.6.0/", None),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ domdf-python-tools:
- domdf-python-tools
- - https://domdf-python-tools.readthedocs.io/en/latest/
- - null
numpy:
- numpy
- - https://numpy.org/doc/1.24/
- - null
packaging:
- packaging
- - https://packaging.pypa.io/en/stable/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ domdf-python-tools:
- domdf-python-tools
- - https://domdf-python-tools.readthedocs.io/en/latest/
- - null
numpy:
- numpy
- - https://numpy.org/doc/1.24/
- - null
packaging:
- packaging
- - https://packaging.pypa.io/en/stable/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ domdf-python-tools:
- domdf-python-tools
- - https://domdf-python-tools.readthedocs.io/en/latest/
- - null
numpy:
- numpy
- - https://numpy.org/doc/1.24/
- - null
packaging:
- packaging
- - https://packaging.pypa.io/en/stable/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ domdf-python-tools:
- domdf-python-tools
- - https://domdf-python-tools.readthedocs.io/en/latest/
- - null
numpy:
- numpy
- - https://numpy.org/doc/1.24/
- - null
packaging:
- packaging
- - https://packaging.pypa.io/en/stable/
Expand Down

0 comments on commit 5097fad

Please sign in to comment.