geopython / geopython/GeoHealthCheck

Error in webapp after loading test fixtures

Open
#309 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
92
Forks
75
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Loading the test fixtues and running the web app results in a jinja exception.

**To Reproduce**
1) Start a clean GHC environment
2) Create a database and admin user
3) Serve the web app -> works
4) Stop the web app
5) Load test fixtures `python GeoHealthCheck/models.py load tests/data/fixtures.json`
6) 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


File "/GeoHealthCheck/templates/layout.html", line 94, in root

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.