How do you unit test Google Cloud NDB code?
H

1

7

The recommended path for upgrading a Python 2 AppEngine app to the new runtime is to switch datastore code to Google Cloud NDB. However, I can't find anything about unit testing code that uses Cloud NDB (which was previously possible using the Python 2 testbed library).

How can Cloud NDB code be unit tested? (apart from standard abstracting the Cloud NDB dependency yourself)

Holpen answered 22/2, 2020 at 10:27 Comment(0)
H
3

Apparently, there is no way to unit test Cloud NDB code anymore. The only testing solution available is the Cloud Datastore Emulator.

Holpen answered 24/2, 2020 at 21:11 Comment(1)
what you say if we mock, datastore_query i.sstatic.net/vqlz7.pngJuxtaposition

© 2022 - 2024 — McMap. All rights reserved.