Page MenuHomeSoftware Heritage
Paste P1204

snapshot test
ActivePublic

Authored by jayeshv on Oct 21 2021, 11:44 AM.
@given(
new_snapshot(min_size=4, max_size=4)
)
@pytest.mark.parametrize("browse_context", ["log"])
def test_snapshot_log_with_id(client, browse_context, new_snapshot):
url = reverse(f"browse-snapshot-{browse_context}",
url_args={"snapshot_id": str(new_snapshot.swhid())[10:]})
print(url)
resp = check_html_get_response(
client, url, status_code=200,
)