Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1012
(An Untitled Masterwork)
Active
Public
Actions
Authored by
anlambert
on Apr 22 2021, 3:18 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
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")
Event Timeline
anlambert
created this paste.
Apr 22 2021, 3:18 PM
2021-04-22 15:18:12 (UTC+2)
Log In to Comment