- Python 2.7
- Virtualenv
- Google Cloud Engine SDK
- Create a virtualenv:
virutalenv environment
- Source the virtualenv:
source environment/bin/activate
- Install the requirements
pip install -r requirements.txt
Install the Google Cloud SDK:
https://cloud.google.com/appengine/docs/standard/python/download. Ensure
that the gcloud
and dev_appserver.py
executables are within your
shell $PATH. The binaries are located in google-cloud-sdk/bin
.
dev_appserver.py --enable sendmail yes app.yaml
from root directory where the root directory represents the root directory of this repository.
- Navigate to
<root>/GCE
, where<root>
represents the root of this repository. - Export the
FLASK_APP
shell variable with the value ofexchange_server.py
. - Execute
python -m flask run
from the<root>/GCE
directory.
- Navigate to
<root>
- Source the virtualenv:
source environment/bin/activate
- Execute
python -m GCE.tests.test_x
wheretest_x
is the module to execute
To make the example above more complete, an example of a test that can
be ran is. python -m GCE.tests.test_get_balance
.