Page MenuHomeSoftware Heritage
Paste P1012

(An Untitled Masterwork)
ActivePublic

Authored by anlambert on Apr 22 2021, 3:18 PM.
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")