Commit 8bebf399 authored by Florian Pritz's avatar Florian Pritz
Browse files

Fix tests calling main() without array


Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 9e55ff1f
......@@ -24,13 +24,13 @@ class TestUploader(unittest.TestCase):
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'])
self.assertTrue(app.db.exists('fb-client-2.0.4-1-any.pkg.tar.xz'))
self.assertTrue(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'])
mock_uploader.upload.assert_called_once_with('archlinux_pkg_fb-client',
files=['./test-data/archive/packages/f/fb-client/fb-client-2.0.3-2-any.pkg.tar.xz',
......@@ -54,7 +54,7 @@ class TestUploader(unittest.TestCase):
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'))
app.main('./test-data/archive/packages/f/fb-client')
app.main(['./test-data/archive/packages/f/fb-client'])
mock_uploader.upload.assert_called_once_with('archlinux_pkg_fb-client',
files=['./test-data/archive/packages/f/fb-client/fb-client-2.0.3-2-any.pkg.tar.xz',
......@@ -69,7 +69,7 @@ class TestUploader(unittest.TestCase):
mock_uploader.reset_mock()
mock_uploader.upload.side_effect = [[response_ok]]
app.main('./test-data/archive/packages/f/fb-client')
app.main(['./test-data/archive/packages/f/fb-client'])
mock_uploader.upload.assert_called_once_with('archlinux_pkg_fb-client',
files=['./test-data/archive/packages/f/fb-client/fb-client-2.0.4-1-any.pkg.tar.xz'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment