Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Adam Mercer
Koji Packager
Commits
9999c896
Verified
Commit
9999c896
authored
May 16, 2019
by
Adam Mercer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_utils.py: consistent quote usage
parent
c6d600e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
gwkoji/tests/test_utils.py
gwkoji/tests/test_utils.py
+7
-7
No files found.
gwkoji/tests/test_utils.py
View file @
9999c896
...
...
@@ -25,12 +25,12 @@ from .. import utils as gwkoji_utils
@
pytest
.
mark
.
parametrize
(
"source, type_"
,
[
(
"
git+https://git.ligo.org/albert/gr#origin/rhel
"
,
"
git
"
),
(
"
mypackage.spec
"
,
"
spec
"
),
(
"
mypackage.src.rpm
"
,
"
srcrpm
"
),
(
"
mypackage.tar
"
,
"
tarball
"
),
(
"
mypackage.tar.gz
"
,
"
tarball
"
),
(
"
mypackage.tar.xz
"
,
"
tarball
"
),
(
'
git+https://git.ligo.org/albert/gr#origin/rhel
'
,
'
git
'
),
(
'
mypackage.spec
'
,
'
spec
'
),
(
'
mypackage.src.rpm
'
,
'
srcrpm
'
),
(
'
mypackage.tar
'
,
'
tarball
'
),
(
'
mypackage.tar.gz
'
,
'
tarball
'
),
(
'
mypackage.tar.xz
'
,
'
tarball
'
),
])
def
test_source_type
(
source
,
type_
):
assert
gwkoji_utils
.
source_type
(
source
)
==
type_
...
...
@@ -38,4 +38,4 @@ def test_source_type(source, type_):
def
test_source_type_error
():
with
pytest
.
raises
(
ValueError
):
gwkoji_utils
.
source_type
(
"
blah
"
)
gwkoji_utils
.
source_type
(
'
blah
'
)
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