Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Adam Mercer
Koji Packager
Commits
e5dc98a7
Verified
Commit
e5dc98a7
authored
May 14, 2019
by
Adam Mercer
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests following move of option parsing code
parent
169e83be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gwkoji/tests/test_options.py
gwkoji/tests/test_options.py
+3
-3
No files found.
gwkoji/tests/test_
packager
.py
→
gwkoji/tests/test_
options
.py
View file @
e5dc98a7
...
...
@@ -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
):
gwkoji_
packager
.
parse_options
()
gwkoji_
options
.
parse_options
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment