nautobot/nautobot-app-golden-config

Improve view coverage in test_views.py

glennmatthews opened this issue · 1 comments

Environment

  • Nautobot version: 2.1.3
  • nautobot-golden-config version: 2.0.1

Proposed Functionality

nautobot/nautobot#5254 caused several GC views to raise exceptions when accessed, however upstream CI testing of this repository remained "green"/passing in full despite this issue. It would be good to implement at least basic sanity tests for all views in this app (inheriting a test for each view from nautobot.apps.testing.ViewTestCases would be a good starting point) in order to more rapidly detect fundamental breakage of the app.

Use Case

More comprehensive testing, earlier detection of fundamental breakage.

Would it be ok to track this on cookiecutter? I checked DLM, and it didn't have a contract test as an example, and I suspect this will be the case across many apps.