1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

port to new pytest_filedata

This commit is contained in:
Matt Griswold
2019-02-22 22:23:09 +00:00
parent e2a103de09
commit 1d9269bcd8
5 changed files with 22 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
from peeringdb_server.inet import RdapAsn
import pytest
import pytest_filedata
def assert_parsed(data, parsed):
@@ -9,7 +10,7 @@ def assert_parsed(data, parsed):
assert data.expected == parsed
@pytest.RequestsData("rdap", real_http=True)
@pytest_filedata.RequestsData("rdap", real_http=True)
def test_rdap_asn_lookup(rdap, data_rdap_autnum):
print(data_rdap_autnum.name)
#asn = rdap.get_asn(205726)