Unit testing Google's Cloud Storage API

1 view
Skip to first unread message

Brandon via StackOverflow

unread,
Sep 16, 2015, 12:29:06 PM9/16/15
to google-appengin...@googlegroups.com

I have an API endpoint I'm trying to write unit tests for and I can't seem to figure out how to unit test the Python Google Cloud Storage client library calls (https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/). I was hoping to find a stub somewhere in the library and have it be as simple as unit testing the mail API would be (https://cloud.google.com/appengine/docs/python/tools/localunittesting?hl=en), but haven't found anything yet. Any idea how to go about this?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/32613897/unit-testing-googles-cloud-storage-api

Ryan via StackOverflow

unread,
Sep 17, 2015, 10:34:06 AM9/17/15
to google-appengin...@googlegroups.com

The list of available unit test does not list GCS. You can file a feature request on their GitHub to add that functionality.

In the mean time using the setUp for your tests to create files is probably your best bet.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/32613897/unit-testing-googles-cloud-storage-api/32632704#32632704
Reply all
Reply to author
Forward
0 new messages