Skip to content

Commit

Permalink
Add download tests for known header-required invs
Browse files Browse the repository at this point in the history
Completes tests for #105.
  • Loading branch information
bskinn committed Jan 24, 2020
1 parent 826d682 commit 56c827b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_api_good_nonlocal.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ def skip_if_no_nonloc(pytestconfig):
pytest.skip("'--nonloc' not specified")


@pytest.mark.parametrize(
["name", "url"],
[
("flask", "http://flask.palletsprojects.com/en/1.1.x/objects.inv"),
("h5py", "https://docs.h5py.org/en/stable/objects.inv"),
],
ids=(lambda x: "" if "://" in x else x),
)
@pytest.mark.timeout(30)
def test_api_inventory_known_header_required(name, url, subtests):
"""Confirm URL load works on docs pages requiring HTTP header config."""
inv = soi.Inventory(url=url)
assert inv.count > 0


@pytest.mark.testall
@pytest.mark.timeout(30)
def test_api_inventory_many_url_imports(
Expand Down

0 comments on commit 56c827b

Please sign in to comment.