GeoHealthCheck
GeoHealthCheck copied to clipboard
Error in webapp after loading test fixtures
Describe the bug Loading the test fixtues and running the web app results in a jinja exception.
To Reproduce
- Start a clean GHC environment
- Create a database and admin user
- Serve the web app -> works
- Stop the web app
- Load test fixtures
python GeoHealthCheck/models.py load tests/data/fixtures.json - Serve the web app -> Error:
jinja2.exceptions.UndefinedError
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'OSGeo:WFS3'
Expected Behavior I expect GHC to not show an error report and to do show me the probes and checks configured in the test fixtures.
Screenshots or Logfiles At the end of the error message:
File "GeoHealthCheck/templates/home.html", line 14, in root
<p>
File "/GeoHealthCheck/templates/layout.html", line 94, in root
<ul class="nav nav-second-level">
File "/GeoHealthCheck/venv/lib/python3.7/site-packages/jinja2/environment.py", line 411, in getitem
return obj[argument]
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'OSGeo:WFS3'
Context (please complete the following information):
- OS: MacOS 10.14.6
- Browser:
- Browser Version
- Python Version 3.7
- GeoHealthCheck Version 0.8.0dev (commit: 61592f3a161b2ea66b8def6fbfb006ce9668eda8)
If running with Docker:
- not tested in docker
Additional context No issues with running the tests.