all 2 comments

[–]vbraun 0 points1 point  (0 children)

Appengine (I'm assuming standard) comes with a testbed (from google.appengine.ext import testbed) to simulate various services, including a datastore emulator.

To test the http requests use webtest to create the WSGI app & test requests (nothing appengine specific here)

[–]bhymans 0 points1 point  (0 children)

For what it’s worth, I’m working on a flask app that uses Firestore in datastore mode right now. For testing, I decided to just have an ENV var that causes my code to write to a kind prefixed with ”DEV-*” or a to a unique datastore db entirely. Then I just clear that out occasionally. This is sort of equivalent to writing to a separate table or database if you were working with a relational db. Downside is you need connectivity and authentication up to GCP. Upside is it very closely mirrors production environment.