The pi needs specific passwords for local mqtt broker and possibly other settings. This change makes tests by default get their environment from test/.env-gw-spaceheat-test-pi (named not accidentally clash with some other .env file a user might have created). A test dotenv file suitable for using with default pi configuration is also provided. Tests can be run from the virtual environment with:
cd gw-scada-spaceheat-python
export PYTHONPATH=gw_spaceheat
export GW_SPACEHEAT_TEST_DOTENV_PATH=test/.env-gw-spaceheat-test-pi
pytest
The pi needs specific passwords for local mqtt broker and possibly other settings. This change makes tests by default get their environment from
test/.env-gw-spaceheat-test-pi
(named not accidentally clash with some other .env file a user might have created). A test dotenv file suitable for using with default pi configuration is also provided. Tests can be run from the virtual environment with: