importer: test unsupported opensearch separate

This commit is contained in:
Ryan Farley 2017-11-08 15:13:16 -06:00
parent 2b7210f6d1
commit 5688fc9910

View File

@ -41,7 +41,10 @@ def test_opensearch_convert():
]
for os_url, qb_url in urls:
assert importer.opensearch_convert(os_url) == qb_url
# pass a required unsupported parameter
def test_opensearch_convert_unsupported():
"""pass an unsupported, required parameter"""
with pytest.raises(KeyError):
os_url = 'http://foo.bar/s?q={searchTerms}&req={unsupported}'
importer.opensearch_convert(os_url)