diff --git a/swh/web/api/views/metadata.py b/swh/web/api/views/metadata.py --- a/swh/web/api/views/metadata.py +++ b/swh/web/api/views/metadata.py @@ -154,7 +154,7 @@ limit=limit_str, page_token=base64.urlsafe_b64encode( result_page.next_page_token.encode() - ), + ).decode(), ), request=request, ) diff --git a/swh/web/tests/api/views/test_metadata.py b/swh/web/tests/api/views/test_metadata.py --- a/swh/web/tests/api/views/test_metadata.py +++ b/swh/web/tests/api/views/test_metadata.py @@ -1,10 +1,10 @@ -# Copyright (C) 2021-2022 The Software Heritage developers +# Copyright (C) 2021 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU Affero General Public License version 3, or any later version # See top-level LICENSE file for more information import attr -from hypothesis import given, settings +from hypothesis import given from hypothesis.strategies import composite, sampled_from, sets import pytest @@ -73,7 +73,6 @@ @pytest.mark.parametrize("limit", [1, 2, 10, 100]) -@settings(max_examples=2) @given(sets(raw_extrinsic_metadata(), min_size=1)) def test_api_raw_extrinsic_metadata_scroll(api_client, subtest, limit, meta): # ensure archive_data fixture will be reset between each hypothesis diff --git a/swh/web/tests/api/views/test_origin.py b/swh/web/tests/api/views/test_origin.py --- a/swh/web/tests/api/views/test_origin.py +++ b/swh/web/tests/api/views/test_origin.py @@ -1,4 +1,4 @@ -# Copyright (C) 2015-2022 The Software Heritage developers +# Copyright (C) 2015-2021 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU Affero General Public License version 3, or any later version # See top-level LICENSE file for more information @@ -6,7 +6,7 @@ from datetime import timedelta import json -from hypothesis import given, settings +from hypothesis import given import pytest from swh.indexer.storage.model import OriginIntrinsicMetadataRow @@ -70,7 +70,6 @@ } -@settings(max_examples=10) @given(new_origin(), visit_dates(3), new_snapshots(3)) def test_api_lookup_origin_visits( api_client, subtest, new_origin, visit_dates, new_snapshots @@ -126,7 +125,6 @@ assert rv.data == expected_visits -@settings(max_examples=10) @given(new_origin(), visit_dates(3), new_snapshots(3)) def test_api_lookup_origin_visits_by_id( api_client, subtest, new_origin, visit_dates, new_snapshots