Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now available in preview.

google.appengine.ext.testbed.EmulatorSupportChecker

A static class. Checks whether datastore emulator is supported.

Inherits From: expected_type

Methods

check

View source

Checks whether cloud datastore should be used.

In a unit test process, the first call to this method sets the value of _use_datastore_emulator and _api_port. Subsequent calls to this method can read _use_datastore_emulator.

Returns
A boolean that indicates whether cloud datastore should be used.

get_api_port

View source

Returns the integer port number that api_server listens on.

get_emulator_port

View source

Returns the integer port number that datastore emulator listens on.

init

View source