Verified Commit 384c7916 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Add a upload test to cover not owned file

parent 1002740f
...@@ -213,6 +213,14 @@ C7NQGzfRMFLSPxIHVzhHvJUo6vNZ+AA= ...@@ -213,6 +213,14 @@ C7NQGzfRMFLSPxIHVzhHvJUo6vNZ+AA=
self.assertEqual(response.status_code, 403) self.assertEqual(response.status_code, 403)
# Next upload allowed
response = self.client.put(reverse(
'upload',
args=['vitetris_0.58.0-2.dsc']),
data='contents')
self.assertEqual(response.status_code, 200)
for filename in (os.path.join(settings.UPLOAD_SPOOL, for filename in (os.path.join(settings.UPLOAD_SPOOL,
'incoming', 'vitetris_0.58.0-1.dsc'), 'incoming', 'vitetris_0.58.0-1.dsc'),
os.path.join(settings.UPLOAD_SPOOL, os.path.join(settings.UPLOAD_SPOOL,
......
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