mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
Gh 815 (#818)
* [beta] IX-F importer: [showstopper]: unnecessary add and update suggested #815 * black formatting Co-authored-by: Stefan Pratter <stefan@20c.com>
This commit is contained in:
@@ -2191,6 +2191,16 @@ def test_resolve_deskpro_ticket(entities):
|
||||
assert ticket.deskpro_ref in email.subject
|
||||
|
||||
|
||||
def test_vlan_sanitize(data_ixf_vlan):
|
||||
"""
|
||||
test that various vlan_list setups are sanitized correctly
|
||||
"""
|
||||
importer = ixf.Importer()
|
||||
sanitized = importer.sanitize_vlans(json.loads(data_ixf_vlan.input)["vlan_list"])
|
||||
assert sanitized == data_ixf_vlan.expected["vlan_list"]
|
||||
|
||||
|
||||
|
||||
# FIXTURES
|
||||
@pytest.fixture(params=[True, False])
|
||||
def save(request):
|
||||
|
||||
Reference in New Issue
Block a user