Unit testing Google's Cloud Storage API

前端 未结 2 1821
迷失自我
迷失自我 2021-02-20 16:38

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.g

2条回答
  •  无人及你
    2021-02-20 16:50

    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.

提交回复
热议问题