mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
* django3, py39, lgtm, linting (#715) * IX-F Importer: ticket status change when posting re-occuring conflict to existing resolved ticket (#920) * fix recaptcha requirement for user creation in django-admin (#715) * IX-F Importer: fix command output buffering #967 * Drop dot1q_support field #903 * fix test (#967) * Add name, city, country to ixfac (GET operation) #166 * additional tests fir #166 * Allow IXP to trigger ix-f importer for their exchange #779 * add docker compose for dev * add selinux labels for mountpoints * fixes #1013: The process to permanently remove old soft-deleted network contacts pdb_delete_pocs raises a false ProtectedAction * fix api test * relock poetry * remove django_namespace_perms from installed apps * fix user permissios ui * remove remaining references to django namespace perms * linting * copy tox.ini * comment flake8 check until we figure out why it ignores configs from tox.ini * black format * poetry lock Co-authored-by: Stefan Pratter <stefan@20c.com>
21 lines
561 B
Python
21 lines
561 B
Python
import pytest
|
|
import pytest_filedata
|
|
|
|
|
|
def assert_parsed(data, parsed):
|
|
# dump in json format for easily adding expected
|
|
print(
|
|
"echo \\\n'{}'\\\n > {}/{}.expected".format(
|
|
data.dumps(parsed), data.path, data.name
|
|
)
|
|
)
|
|
assert data.expected == parsed
|
|
|
|
|
|
@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)
|
|
asn = rdap.get_asn(data_rdap_autnum.name)
|
|
assert_parsed(data_rdap_autnum, asn.parsed())
|