Skip to content

Commit 2610e18

Browse files
authored
Fix unittest wrapper run with uv. (#1155)
1 parent 72d1daa commit 2610e18

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

changes/1155.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Support uv controlled development environment to run unittest.

nautobot_ssot/integrations/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
def each_enabled_integration() -> Generator[str, None, None]:
1515
"""Return all enabled integrations."""
16-
config = settings.PLUGINS_CONFIG["nautobot_ssot"]
16+
config = settings.PLUGINS_CONFIG.get("nautobot_ssot", {})
1717

1818
for path in Path(__file__).parent.iterdir():
1919
if config.get(f"enable_{path.name}", False):

nautobot_ssot/jobs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
logger = logging.getLogger("nautobot.ssot")
1616

17-
hide_jobs_setting = settings.PLUGINS_CONFIG["nautobot_ssot"].get("hide_example_jobs", False)
17+
hide_jobs_setting = settings.PLUGINS_CONFIG.get("nautobot_ssot", {}).get("hide_example_jobs", False)
1818
if is_truthy(hide_jobs_setting):
1919
jobs = []
2020
else:

0 commit comments

Comments
 (0)