Verified Commit e5dc98a7 authored by Adam Mercer's avatar Adam Mercer
Browse files

fix tests following move of option parsing code

parent 169e83be
......@@ -25,12 +25,12 @@ from unittest import mock
import pytest
from .. import packager as gwkoji_packager
from .. import options as gwkoji_options
@mock.patch.object(sys, "argv", ["gwkoji-packager", "test.spec", "--spec"])
def test_parse_options():
args = gwkoji_packager.parse_options()
args = gwkoji_options.parse_options()
assert args.source == Path("test.spec")
assert args.source_type == "spec"
......@@ -39,4 +39,4 @@ def test_parse_options():
["gwkoji-packager", "test.spec", "--spec", "--tarball"])
def test_parse_options_exclusive_source_type():
with pytest.raises(SystemExit):
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