Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Use keys with multiple letters in mock link metadata (#1163)
Browse files Browse the repository at this point in the history
Fix #1162
  • Loading branch information
MarvinTorres committed Sep 16, 2020
1 parent c67933c commit 70e3248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kytos/lib/helpers.py
Expand Up @@ -36,7 +36,7 @@ def get_link_mock(endpoint_a, endpoint_b):
link = create_autospec(Link)
link.endpoint_a = endpoint_a
link.endpoint_b = endpoint_b
link.metadata = {"A": 0}
link.metadata = {"A": 0, "BB": 0.0, "CCC": "test"}
return link


Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_lib/test_helpers.py
Expand Up @@ -41,7 +41,8 @@ def test_link_mock(self):

self.assertEqual(link_mock.endpoint_a, endpoint_a)
self.assertEqual(link_mock.endpoint_b, endpoint_b)
self.assertEqual(link_mock.metadata, {"A": 0})
self.assertEqual(link_mock.metadata, {"A": 0, "BB": 0.0,
"CCC": "test"})

def test_switch_mock(self):
"""Test switch mock."""
Expand Down

0 comments on commit 70e3248

Please sign in to comment.