Skip to content

Commit

Permalink
add compatibility for NB v2.0.0 generic csv import test
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnider2195 committed Dec 13, 2024
1 parent d69d474 commit 95ec26c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nautobot_golden_config/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ def setUpTestData(cls):
"replace": "NEW replaced text",
}

# For compatibility with Nautobot lower than v2.2.0
cls.csv_data = (
"name,regex,replace,platform",
f"test configreplace 4,^(.*)$,xyz,{platform.pk}",
f"test configreplace 5,^(.*)$,xyz,{platform.pk}",
f"test configreplace 6,^(.*)$,xyz,{platform.pk}",
)


class GoldenConfigListViewTestCase(TestCase):
"""Test GoldenConfigListView."""
Expand Down

0 comments on commit 95ec26c

Please sign in to comment.