Make tests without parameterized information have their own test

pull/1336/head
Sol Lee 2024-03-25 08:47:57 +00:00
rodzic 472c5cdc29
commit 7712751c8f
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -25,6 +25,8 @@ test_hosts = [
def test_detect_ckan(test_input, expected):
assert CKAN().detect(test_input[0]) == expected
def test_detect_not_ckan():
# Don't trigger the CKAN content provider
assert CKAN().detect("/some/path/here") is None
assert CKAN().detect("https://example.com/path/here") is None