Thanks to visit codestin.com
Credit goes to github.com

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

Improve key generation for mock Link.metadata #1162

@MarvinTorres

Description

@MarvinTorres

The following test code in does not sufficiently expose kytos/pathfinder#64:

def get_link_mock(endpoint_a, endpoint_b):
"""Return a link mock."""
link = create_autospec(Link)
link.endpoint_a = endpoint_a
link.endpoint_b = endpoint_b
link.metadata = {"A": 0}
return link

This change is to address the problem of the referenced bug not showing up for single-letter link attribute names.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions