File size: 687 Bytes
12d2e9e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
Copyright 2021, Dana-Farber Cancer Institute and Weill Cornell Medicine
License: GNU GPL 2.0
"""

import urllib.request

import pytest


@pytest.mark.parametrize(
    "url",
    [
        "https://www.pathml.org",
        # Vignettes
        "https://github.com/Dana-Farber-AIOS/pathml/tree/master/examples/vignettes/",
        # docs
        "https://pathml.readthedocs.io/en/latest/",
    ],
)
def test_urls(url):
    # Make sure that the urls linked in the manuscript are not broken!
    # This should be a complete list of all urls in the manuscript + supplemental materials
    r = urllib.request.urlopen(url)
    # HTTP status code 200 means "OK"
    assert r.getcode() == 200