Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/strategies.py
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | def origin_with_release(): | ||||
return sampled_from(ret) | return sampled_from(ret) | ||||
def unknown_origin_id(): | def unknown_origin_id(): | ||||
""" | """ | ||||
Hypothesis strategy returning a random origin id not ingested | Hypothesis strategy returning a random origin id not ingested | ||||
into the test archive. | into the test archive. | ||||
""" | """ | ||||
return integers(min_value=1000000) | return binary(min_size=20, max_size=20) | ||||
def new_origin(): | def new_origin(): | ||||
""" | """ | ||||
Hypothesis strategy returning a random origin not ingested | Hypothesis strategy returning a random origin not ingested | ||||
into the test archive. | into the test archive. | ||||
""" | """ | ||||
storage = get_tests_data()['storage'] | storage = get_tests_data()['storage'] | ||||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |