Skip to content

Commit

Permalink
test: ✅ Update tests to add missing pieces like id key
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrew82 committed Jan 7, 2025
1 parent 78d5d98 commit cd4981e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nautobot_ssot/tests/dna_center/test_adapters_dna_center.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ def test_load_device_location_tree_w_floor(self):
self.dna_center.building_map = {
"5": {
"name": "HQ",
"id": "5",
"parentId": "4",
"additionalInfo": [
{
"nameSpace": "Location",
Expand All @@ -229,6 +231,7 @@ def test_load_device_location_tree_w_floor(self):
},
}
],
"siteHierarchy": "/1/2/3/4/5/",
},
}
mock_loc_data = {"areas": ["Global", "USA", "New York", "NYC"], "building": "HQ", "floor": "1st Floor"}
Expand Down Expand Up @@ -277,6 +280,8 @@ def test_load_device_location_tree_wo_floor(self):
self.dna_center.building_map = {
"5": {
"name": "HQ",
"id": "5",
"parentId": "4",
"additionalInfo": [
{
"nameSpace": "Location",
Expand All @@ -290,6 +295,7 @@ def test_load_device_location_tree_wo_floor(self):
},
}
],
"siteHierarchy": "/1/2/3/4/5/",
},
}
mock_loc_data = {"areas": ["Global", "USA", "New York", "NYC"], "building": "HQ"}
Expand Down

0 comments on commit cd4981e

Please sign in to comment.