geopython / geopython/GeoHealthCheck

Error in webapp after loading test fixtures

Aperta
#309 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
92
Fork
75
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.