google.appengine.ext.testbed.apiserver_util module

Summary

Utility class for testbed only used for py_test.

This file wraps imports and attributes that testbed would need for accessing api_server and datastore_emulator. testbed uses cloud datastore emulator if and only if emulator_util can be import by it.

Contents

google.appengine.ext.testbed.apiserver_util.get_port(line)source

Get port number out of a line like “some message: localhost:[port].

google.appengine.ext.testbed.apiserver_util.read_lines_until(in_file, stop_string, timeout=30)source

Read lines in an input file until stop_string is found.

google.appengine.ext.testbed.apiserver_util.setup_api_server()source

Launches api_server.

Returns

Two integers, first is the port number for api_server’s http endpoint, second is the port number of the Cloud Datastore Emulator.

이 페이지가 도움이 되었나요? 평가를 부탁드립니다.

다음에 대한 의견 보내기...

App Engine standard environment for Python 2