Changeset View
Changeset View
Standalone View
Standalone View
swh/fuse/tests/data/gen-api-data.py
Show All 18 Lines | |||||
from swh.fuse.tests.data.config import ( | from swh.fuse.tests.data.config import ( | ||||
ALL_ENTRIES, | ALL_ENTRIES, | ||||
FAKE_SNP_SPECIAL_CASES, | FAKE_SNP_SPECIAL_CASES, | ||||
FAKE_SNP_SPECIAL_CASES_SWHID, | FAKE_SNP_SPECIAL_CASES_SWHID, | ||||
ORIGIN_URL, | ORIGIN_URL, | ||||
REV_SMALL_HISTORY, | REV_SMALL_HISTORY, | ||||
) | ) | ||||
from swh.model.hashutil import hash_to_bytes | from swh.model.hashutil import hash_to_bytes | ||||
from swh.model.identifiers import CoreSWHID, ObjectType | from swh.model.swhids import CoreSWHID, ObjectType | ||||
API_URL_real = "https://archive.softwareheritage.org/api/1" | API_URL_real = "https://archive.softwareheritage.org/api/1" | ||||
API_URL_test = "https://invalid-test-only.archive.softwareheritage.org/api/1" | API_URL_test = "https://invalid-test-only.archive.softwareheritage.org/api/1" | ||||
# Use your own API token to lift rate limiting. Note: this is not necessary to generate | # Use your own API token to lift rate limiting. Note: this is not necessary to generate | ||||
# the API data only once but can be useful when re-generating it multiple times. | # the API data only once but can be useful when re-generating it multiple times. | ||||
API_TOKEN = "" | API_TOKEN = "" | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |