nautobot / nautobot-app-ssot

Single Source of Truth for Nautobot
https://docs.nautobot.com/projects/ssot/en/latest/
Other
37 stars 35 forks source link

Integrations Dependent Upon Settings in Dev Environment #234

Closed jdrew82 closed 5 months ago

jdrew82 commented 1 year ago

Environment

Expected Behavior

Expect running unit tests to run and pass regardless of the settings in the dev environment's nautobot_config.py file.

Observed Behavior

Currently running tests with any of the integrations enable setting set to False will cause some of the associated unit tests to fail.

Steps to Reproduce

  1. Setup Nautobot and SSoT.
  2. Disable some integrations like IPFabric.
  3. Run invoke unittest and look at failing tests.
glennmatthews commented 1 year ago

Probably should be using @override_settings liberally in the tests. Good catch.

jdrew82 commented 1 year ago

Probably should be using @override_settings liberally in the tests. Good catch.

Yep!