Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1204
snapshot test
Active
Public
Actions
Authored by
jayeshv
on Oct 21 2021, 11:44 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
@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
,
)
Event Timeline
jayeshv
created this paste.
Oct 21 2021, 11:44 AM
2021-10-21 11:44:41 (UTC+2)
Log In to Comment