Commit 1d8b7dbd authored by hynek's avatar hynek 🤤
Browse files

improvement(dhrep): fix tests to run on new dataset model

parent e2a0b8da
......@@ -37,4 +37,7 @@ RUN chmod +x /start
WORKDIR /app
# copy testing fixtures for dhrep tests
COPY ./discuss_data/dhrep/fixtures/* /app/discuss_data/media/
ENTRYPOINT ["/entrypoint"]
......@@ -24,6 +24,7 @@ urlpatterns = [
# path("accounts/", include("allauth.urls")),
# Your stuff: custom urls includes go here
path("dataset/", include("discuss_data.dddatasets.urls", namespace="dddatasets"),),
path("dhrep/", include("discuss_data.dhrep.urls", namespace="dhrep")),
path("shib/", include("shibboleth.urls", namespace="shibboleth")),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
......
......@@ -33,33 +33,43 @@
},
{
"model": "auth.group",
"pk": 3,
"fields": {
"name": "1_view",
"permissions": []
}
},
{
"model": "auth.group",
"pk": 4,
"pk": 1,
"fields": {
"name": "1_edit",
"permissions": []
"name": "Moderators",
"uuid": "7713724d-2a6c-4fb8-94af-7d7cc988e12c",
"permissions": [
4,
5,
6,
7,
1,
2,
3
]
}
},
{
"model": "auth.group",
"pk": 5,
"pk": 2,
"fields": {
"name": "1_admin",
"permissions": []
"name": "Editors",
"uuid": "7713724d-2a6c-4fb8-94af-7d7cc988e12c",
"permissions": [
4,
5,
6,
7,
1,
2,
3
]
}
},
{
"model": "ddusers.user",
"pk": 1,
"fields": {
"password": "!PQdnCsg0t1VbaGndhvk8WnISK7kxYJaZFRguQvxx",
"password": "!mguXOReJQ4C0VhaHGqu7Ccw4B6jCJjqEKWZ2hYBk",
"last_login": null,
"is_superuser": false,
"username": "AnonymousUser",
......@@ -68,8 +78,8 @@
"email": "",
"is_staff": false,
"is_active": true,
"date_joined": "2019-09-03T09:52:54.798Z",
"uuid": "a8e8d2d5-b8c2-4497-963d-85a5697306cd",
"date_joined": "2020-01-16T11:34:43.682Z",
"uuid": "117c2a74-dec2-419f-a4a1-31bf61814c08",
"middle_name": "",
"academic_title": "",
"name_prefix": "",
......@@ -112,9 +122,8 @@
"access": "PUB",
"external_profile": "",
"groups": [
3,
4,
5
1,
2
],
"user_permissions": [],
"topics": [],
......@@ -135,9 +144,8 @@
"published": false,
"main_published_ds": null,
"groups": [
3,
4,
5
1,
2
]
}
},
......
from django.urls import path
from dhrep import views
from discuss_data.dhrep import views
app_name = "dhrep"
urlpatterns = [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment