fastiot.testlib module

Helpers to make writing tests easier

fastiot.testlib.populate_test_env()[source]

Populates the local environment with test env vars from the test integration deployment.

It will import the .env-file from build dir and raise an error if not available. It will then overwrite these values from the .env-file within deployment dir for more robustness because sometimes the developer forgets to rebuild the config. Overwriting the env values with the deployment dir should solve it.