Verified Commit 4995e5fb authored by Adam Mercer's avatar Adam Mercer
Browse files test when rpm is not found

parent ea1132be
......@@ -19,6 +19,7 @@
"""Test suite for gwkoji.rpm
import pytest
from unittest import mock
from .. import rpm as gwkoji_rpm
......@@ -32,3 +33,12 @@ def test_download_spec_sources(call, _):
('/usr/bin/rpm', '--queryformat', '%{NAME}', '-qp',
'foobar-1.0-1.el7'), logger=1,
@mock.patch('gwkoji.rpm.find_executable', return_value=None)
def test_function_errors(_):
with pytest.raises(FileNotFoundError):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment