Closed dianagudu closed 2 years ago
@dianagudu, indeed the pointed code is an indicator but not the root. I am testing the example, and the example uses in-module-config as described at: https://flask.palletsprojects.com/en/2.1.x/config/
However, it gets in conflict with the .env
setup for the example_tests
.
What we could do, is that the tests load test_env
as configuration instead of the example configuration. I am preparing a patch.
My example .env file:
The following tests fail:
Example output from one of the failed tests:
I suspect it has something to do with these lines: https://github.com/indigo-dc/flaat/blob/7fe6f3654ec1f39f9a61df83645db5672bb3ad73/flaat/flask/conftest.py#L21-L22
The
TRUSTED_OP_LIST
of the app contains the EGI OP (from ProductionConfig) instead of the one from the .env file.@BorjaEst