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
6638bc3a
Commit
6638bc3a
authored
Mar 28, 2019
by
Florian Pritz
Browse files
test: Verify precondition
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
cea54448
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.py
View file @
6638bc3a
...
...
@@ -12,6 +12,11 @@ class TestUploader(unittest.TestCase):
def
test_upload_pkg
(
self
):
mock_uploader
=
MagicMock
()
app
=
upload_pkg_internetarchive
.
ArchiveUploader
(
mock_uploader
,
DB
.
DB
(
':memory:'
))
self
.
assertFalse
(
app
.
db
.
exists
(
'fb-client-2.0.4-1-any.pkg.tar.xz'
))
self
.
assertFalse
(
app
.
db
.
exists
(
'fb-client-2.0.3-2-any.pkg.tar.xz'
))
self
.
assertFalse
(
app
.
db
.
exists
(
'fb-client-2.0.99-1-any.pkg.tar.xz'
))
app
.
main
(
'./test-data/archive/packages/f/fb-client'
)
app
.
main
(
'./test-data/archive/packages/f/fb-client'
)
...
...
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