1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
* [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:
Matt Griswold
2020-08-18 09:29:11 -05:00
committed by GitHub
parent 38a49b4a10
commit ac047fa0bc
20 changed files with 371 additions and 7 deletions

View File

@@ -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):