@@ -64,28 +64,28 @@ def test_db_model(self):
6464
6565 def test_create_new_archive_and_upload (self ):
6666 body = {"description" : "test-case-1" , "host" : "testhost" , "path" : "/path/to/test/archive/" }
67- resp = self .go ("/upload/ " , method = "POST" , body = body )
67+ resp = self .go ("/upload" , method = "POST" , body = body )
6868 resp = json_decode (resp .body )
6969 self .assertEqual (resp ["status" ], "created" )
7070 self .assertEqual (resp ["upload" ]["description" ], body ["description" ])
7171
7272 def test_failing_upload (self ):
7373 body = {"description" : "test-case-1" } # missing params
74- resp = self .go ("/upload/ " , method = "POST" , body = body )
74+ resp = self .go ("/upload" , method = "POST" , body = body )
7575 self .assertEqual (resp .code , 400 )
7676
7777 def test_create_upload_for_existing_archive (self ):
7878 upload_one = 1
7979 upload_two = 2
8080
8181 body = {"description" : "test-case-1" , "host" : "testhost" , "path" : "/path/to/test/archive/" }
82- resp = self .go ("/upload/ " , method = "POST" , body = body )
82+ resp = self .go ("/upload" , method = "POST" , body = body )
8383 resp = json_decode (resp .body )
8484 self .assertEqual (resp ["status" ], "created" )
8585 self .assertEqual (resp ["upload" ]["description" ], body ["description" ])
8686 self .assertEqual (resp ["upload" ]["id" ], upload_one )
8787
88- resp = self .go ("/upload/ " , method = "POST" , body = body )
88+ resp = self .go ("/upload" , method = "POST" , body = body )
8989 resp = json_decode (resp .body )
9090 self .assertEqual (resp ["status" ], "created" )
9191 self .assertEqual (resp ["upload" ]["id" ], upload_two )
0 commit comments