Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/pypi/tests/test_pypi.py
Show All 22 Lines | from swh.loader.package.pypi.loader import ( | ||||
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_snapshot, | check_snapshot, | ||||
check_metadata_paths, | check_metadata_paths, | ||||
get_stats, | get_stats, | ||||
) | ) | ||||
from swh.loader.tests.common import assert_last_visit_matches | 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 |