From 2474dc17618308156e8455e2ab8432c25e797951 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Fri, 17 Sep 2021 01:10:17 -0700 Subject: [PATCH] fix broken test from `Device.platform` refactor --- hyperglass/models/tests/test_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperglass/models/tests/test_util.py b/hyperglass/models/tests/test_util.py index 9360033..ce103c6 100644 --- a/hyperglass/models/tests/test_util.py +++ b/hyperglass/models/tests/test_util.py @@ -9,8 +9,8 @@ from ..util import check_legacy_fields def test_check_legacy_fields(): test1 = {"name": "Device A", "nos": "juniper"} - test1_expected = {"name": "Device A", "type": "juniper"} - test2 = {"name": "Device B", "type": "juniper"} + test1_expected = {"name": "Device A", "platform": "juniper"} + test2 = {"name": "Device B", "platform": "juniper"} test3 = {"name": "Device C"} assert set(check_legacy_fields("Device", **test1).keys()) == set( test1_expected.keys()