Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 838 Bytes

DEVELOPMENT.md

File metadata and controls

33 lines (24 loc) · 838 Bytes

Development environment

Prerequisites:

Install environment

pyenv install
python -m venv venv
source venv/bin/activate
pip install .

Test server

Test server that mocks the ConnectLife API. Runs on http://localhost:8080.

The server reads all JSON files in the current directory, and serves them as appliances. Properties can be updated, but is not persisted. The only validation is that the puid and property exists, it assumes that all properties are writable and that any value is legal.

cd dumps
python -m test_server

To use the test server, provide the URL to the test server:

from connectlife.api import ConnectLifeApi
api = ConnectLifeApi(username="[email protected]", password="password", test_server="http://localhost:8080")