Skip to content

Commit

Permalink
ci: More ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abates committed Jan 25, 2024
1 parent 2dfd1bb commit ab99eda
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
7 changes: 4 additions & 3 deletions nautobot_design_builder/contrib/tests/test_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,10 @@ class TestBGPExtension(TestCase):
"""Test BGP extension."""

def setUp(self):
# TODO: Remove this when BGP models is migrated to 2.0
if nautobot_version >= "2.0.0":
self.skipTest("BGP Models is not supported in Nautobot 2.x")
try:
import nautobot_bgp_models.models # pylint:disable=import-outside-toplevel,unused-import,import-error # noqa: F401
except ModuleNotFoundError:
self.skipTest("BGP Models app is not installed, skipping associated tests")
super().setUp()

def test_creation(self):
Expand Down
15 changes: 8 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ packages = [
python = ">=3.8,<3.12"
# Used for local development
nautobot = ">=1.6.0,<=2.9999"
nautobot-bgp-models = { version = "*", optional = true }

[tool.poetry.group.dev.dependencies]
bandit = "*"
Expand All @@ -46,8 +47,6 @@ yamllint = "*"
toml = "*"
Markdown = "*"

nautobot-bgp-models = "*"

# Rendering docs to HTML
mkdocs = "1.5.2"
# Material for MkDocs theme
Expand All @@ -60,6 +59,7 @@ mkdocstrings-python = "1.5.2"

[tool.poetry.extras]
nautobot = ["nautobot"]
contrib = ["nautobot-bgp-models"]

[tool.black]
line-length = 120
Expand Down

0 comments on commit ab99eda

Please sign in to comment.