Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/nixguix/tests/test_nixguix.py
Show All 23 Lines | |||||
from swh.loader.package.tests.common import ( | from swh.loader.package.tests.common import ( | ||||
get_stats, | get_stats, | ||||
check_snapshot, | check_snapshot, | ||||
) | ) | ||||
from swh.loader.package.utils import download | from swh.loader.package.utils import download | ||||
from swh.model.hashutil import hash_to_bytes, hash_to_hex | from swh.model.hashutil import hash_to_bytes, hash_to_hex | ||||
from swh.storage.exc import HashCollision | from swh.storage.exc import HashCollision | ||||
from swh.loader.tests.common import assert_last_visit_matches | from swh.loader.tests import assert_last_visit_matches | ||||
sources_url = "https://nix-community.github.io/nixpkgs-swh/sources.json" | sources_url = "https://nix-community.github.io/nixpkgs-swh/sources.json" | ||||
def test_retrieve_sources(swh_config, requests_mock_datadir): | def test_retrieve_sources(swh_config, requests_mock_datadir): | ||||
j = retrieve_sources(sources_url) | j = retrieve_sources(sources_url) | ||||
assert "sources" in j.keys() | assert "sources" in j.keys() | ||||
▲ Show 20 Lines • Show All 514 Lines • Show Last 20 Lines |