diff --git a/swh/web/tests/api/views/test_origin_save.py b/swh/web/tests/api/views/test_origin_save.py index f4a5cc33..b565ed89 100644 --- a/swh/web/tests/api/views/test_origin_save.py +++ b/swh/web/tests/api/views/test_origin_save.py @@ -21,6 +21,7 @@ from swh.web.common.models import ( VISIT_STATUS_FAILED, VISIT_STATUS_FULL, SaveOriginRequest, + SaveAuthorizedOrigin, SaveUnauthorizedOrigin, ) from swh.web.common.utils import reverse @@ -31,6 +32,7 @@ pytestmark = pytest.mark.django_db @pytest.fixture(autouse=True) def populated_db(): + SaveAuthorizedOrigin.objects.create(url="https://github.com/") SaveUnauthorizedOrigin.objects.create(url="https://github.com/user/illegal_repo") SaveUnauthorizedOrigin.objects.create(url="https://gitlab.com/user_to_exclude")