diff --git a/nautobot_golden_config/tests/test_views.py b/nautobot_golden_config/tests/test_views.py index 3d4333ab..937826b7 100644 --- a/nautobot_golden_config/tests/test_views.py +++ b/nautobot_golden_config/tests/test_views.py @@ -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."""