Skip to content

Commit

Permalink
Skip tests requiring connectivity to an index. Fixes #65.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 30, 2022
1 parent 8f479e2 commit 1123516
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v10.0.1
=======

#65: Tests that require connectivity to the Internet now are skipped.

v10.0.0
=======

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ testing =
nbformat
pygments
jaraco.path
jaraco.test >= 5.2

docs =
# upstream
Expand Down
2 changes: 2 additions & 0 deletions tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def DALS(str):
return textwrap.dedent(str).lstrip()


@pytest.mark.usefixtures('needs_internet')
def test_pkg_imported(tmp_path):
"""
Create a script that loads a package and ensure it runs.
Expand Down Expand Up @@ -153,6 +154,7 @@ def test_jupyter_directives(self, notebook_factory):
assert reqs == ['matplotlib']


@pytest.mark.usefixtures('needs_internet')
def test_pkg_loaded_from_alternate_index(tmp_path):
"""
Create a script that loads cython from an alternate index
Expand Down

0 comments on commit 1123516

Please sign in to comment.