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
215ad551
Verified
Commit
215ad551
authored
May 16, 2019
by
Adam Mercer
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_options.py: consistent quote usage
parent
6ee6c19e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gwkoji/tests/test_options.py
gwkoji/tests/test_options.py
+5
-5
No files found.
gwkoji/tests/test_options.py
View file @
215ad551
...
...
@@ -28,15 +28,15 @@ import pytest
from
..
import
options
as
gwkoji_options
@
mock
.
patch
.
object
(
sys
,
"
argv
"
,
[
"
gwkoji-packager
"
,
"
test.spec
"
,
"
--spec
"
])
@
mock
.
patch
.
object
(
sys
,
'
argv
'
,
[
'
gwkoji-packager
'
,
'
test.spec
'
,
'
--spec
'
])
def
test_parse_options
():
args
=
gwkoji_options
.
parse_options
()
assert
args
.
source
==
Path
(
"
test.spec
"
)
assert
args
.
source_type
==
"
spec
"
assert
args
.
source
==
Path
(
'
test.spec
'
)
assert
args
.
source_type
==
'
spec
'
@
mock
.
patch
.
object
(
sys
,
"
argv
"
,
[
"
gwkoji-packager
"
,
"
test.spec
"
,
"
--spec
"
,
"
--tarball
"
])
@
mock
.
patch
.
object
(
sys
,
'
argv
'
,
[
'
gwkoji-packager
'
,
'
test.spec
'
,
'
--spec
'
,
'
--tarball
'
])
def
test_parse_options_exclusive_source_type
():
with
pytest
.
raises
(
SystemExit
):
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