Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-historical-archive
Commits
4fe055c7
Commit
4fe055c7
authored
Mar 27, 2019
by
Florian Pritz
Browse files
test_upload_pkg: Check upload args
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
20acb4c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.py
View file @
4fe055c7
...
...
@@ -12,7 +12,11 @@ class TestUploader(unittest.TestCase):
mock_uploader
=
MagicMock
()
app
=
upload_pkg_internetarchive
.
ArchiveUploader
(
mock_uploader
)
app
.
main
(
'./test-data/archive/packages/f/fb-client'
,
[
'2018'
])
mock_uploader
.
upload
.
assert_called
()
mock_uploader
.
upload
.
assert_called_with
(
'archlinux_pkg_fb-client'
,
files
=
[
'./test-data/archive/packages/f/fb-client/fb-client-2.0.3-2-any.pkg.tar.xz'
,
'./test-data/archive/packages/f/fb-client/fb-client-2.0.3-2-any.pkg.tar.xz.sig'
],
metadata
=
mock
.
ANY
)
...
...
Write
Preview
Supports
Markdown
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