Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/pypi/tests/test_pypi.py
Show All 17 Lines | |||||
from swh.loader.package.pypi.loader import ( | from swh.loader.package.pypi.loader import ( | ||||
PyPILoader, | PyPILoader, | ||||
pypi_api_url, | pypi_api_url, | ||||
author, | author, | ||||
extract_intrinsic_metadata, | extract_intrinsic_metadata, | ||||
artifact_to_revision_id, | artifact_to_revision_id, | ||||
) | ) | ||||
from swh.loader.package.tests.common import ( | from swh.loader.package.tests.common import check_metadata_paths | ||||
from swh.loader.tests import ( | |||||
assert_last_visit_matches, | |||||
check_snapshot, | check_snapshot, | ||||
check_metadata_paths, | |||||
get_stats, | get_stats, | ||||
) | ) | ||||
from swh.loader.tests import assert_last_visit_matches | |||||
def test_author_basic(): | def test_author_basic(): | ||||
data = { | data = { | ||||
"author": "i-am-groot", | "author": "i-am-groot", | ||||
"author_email": "iam@groot.org", | "author_email": "iam@groot.org", | ||||
} | } | ||||
actual_author = author(data) | actual_author = author(data) | ||||
▲ Show 20 Lines • Show All 792 Lines • Show Last 20 Lines |