Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345863
D5575.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
765 B
Subscribers
None
D5575.diff
View Options
diff --git a/swh/web/tests/api/views/test_origin_save.py b/swh/web/tests/api/views/test_origin_save.py
--- a/swh/web/tests/api/views/test_origin_save.py
+++ b/swh/web/tests/api/views/test_origin_save.py
@@ -20,6 +20,7 @@
SAVE_TASK_SUCCEEDED,
VISIT_STATUS_FAILED,
VISIT_STATUS_FULL,
+ SaveAuthorizedOrigin,
SaveOriginRequest,
SaveUnauthorizedOrigin,
)
@@ -31,6 +32,8 @@
@pytest.fixture(autouse=True)
def populated_db():
+ SaveAuthorizedOrigin.objects.create(url="https://github.com/"),
+ SaveAuthorizedOrigin.objects.create(url="https://gitlab.com/"),
SaveUnauthorizedOrigin.objects.create(url="https://github.com/user/illegal_repo")
SaveUnauthorizedOrigin.objects.create(url="https://gitlab.com/user_to_exclude")
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:34 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3226613
Attached To
D5575: tests/api/origin_save: Explicitely populate SaveAuthorizedOrigin table
Event Timeline
Log In to Comment