Skip to content

Commit

Permalink
Matched key setup in update_links and its test
Browse files Browse the repository at this point in the history
  - This hopefully ensures that kytos#64 will not reoccur.
  • Loading branch information
MarvinTorres committed Aug 19, 2020
1 parent a65b4e6 commit 6bbe7a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def test_update_links(self, mock_set_default_metadata):
keys = []
all_metadata = [link.metadata for link in topology.links.values()]
for metadata in all_metadata:
keys.extend(key for key in metadata.keys())
for key in metadata.keys():
keys.append(key)
mock_set_default_metadata.assert_called_with(keys)

def test_remove_switch_hops(self):
Expand Down

0 comments on commit 6bbe7a1

Please sign in to comment.