Hi,
I'm trying to write a unit test for file uploads in my (Python) API.
I'm using the using the blobstore API to create an upload URL, as follows:
self.response.write(blobstore.create_upload_url(....))
Everything works fine in production, but when using Testbed, I get the
following URL back:
http://testbed.example.com/_ah/upload/agx0ZXN0YmVkLXRlc3RyGwsSFV9fQmxvYlVwbG9hZFNlc3Npb25fXxgDDA
Uploading to this URL from the test doesn't work, I get a 404. I should
have initialized all stubs properly, amongst others:
self.testbed.init_datastore_v3_stub()
self.testbed.init_blobstore_stub()
self.testbed.init_files_stub()
What am I doing wrong? How do I unit test file uploads?
thanks,
Remko
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/4bc5a934-20f9-419a-a990-fa923c5a53b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.