parent
2757f1b9c1
commit
206d34afbb
@ -0,0 +1,61 @@
|
||||
"""
|
||||
Author: Michel Peltriaux
|
||||
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
||||
Contact: michel.peltriaux@sgdnord.rlp.de
|
||||
Created on: 15.12.20
|
||||
|
||||
"""
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from konova.settings import ADD_INTERVENTION, CREATE_SHARE_LINK, DELETE_ECOACCOUNT, EDIT_ECOACCOUNT, ADD_ECOACCOUNT, \
|
||||
DELETE_COMPENSATION, EDIT_COMPENSATION, ADD_COMPENSATION, DELETE_INTERVENTION, EDIT_INTERVENTION, VALIDITY_CHECK, \
|
||||
DELETE_EMA, EDIT_EMA, ADD_EMA, RECORD_DATA
|
||||
|
||||
TEST_ORGANISATION_DATA = [
|
||||
{
|
||||
"name": "Test_Official_1",
|
||||
},
|
||||
{
|
||||
"name": "Test_Official_2",
|
||||
},
|
||||
{
|
||||
"name": "Test_NGO_1",
|
||||
},
|
||||
{
|
||||
"name": "Test_Company_1",
|
||||
},
|
||||
]
|
||||
|
||||
# Groups permissions are declared in konova/settings.py
|
||||
GROUPS_DATA = [
|
||||
{
|
||||
"name": _("Default"),
|
||||
"permissions": [
|
||||
ADD_INTERVENTION,
|
||||
EDIT_INTERVENTION,
|
||||
DELETE_INTERVENTION,
|
||||
ADD_COMPENSATION,
|
||||
EDIT_COMPENSATION,
|
||||
DELETE_COMPENSATION,
|
||||
ADD_ECOACCOUNT,
|
||||
EDIT_ECOACCOUNT,
|
||||
DELETE_ECOACCOUNT,
|
||||
CREATE_SHARE_LINK,
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": _("Registration office"),
|
||||
"permissions": [
|
||||
VALIDITY_CHECK,
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": _("Conservation office"),
|
||||
"permissions": [
|
||||
RECORD_DATA,
|
||||
ADD_EMA,
|
||||
EDIT_EMA,
|
||||
DELETE_EMA,
|
||||
]
|
||||
},
|
||||
]
|
@ -1,49 +0,0 @@
|
||||
"""
|
||||
Author: Michel Peltriaux
|
||||
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
||||
Contact: michel.peltriaux@sgdnord.rlp.de
|
||||
Created on: 15.12.20
|
||||
|
||||
"""
|
||||
|
||||
TEST_ORGANISATION_DATA = [
|
||||
{
|
||||
"name": "Test_Official_1",
|
||||
"is_active": True,
|
||||
"is_deleted": False,
|
||||
},
|
||||
{
|
||||
"name": "Test_Official_2",
|
||||
"is_active": True,
|
||||
"is_deleted": False,
|
||||
},
|
||||
{
|
||||
"name": "Test_NGO_1",
|
||||
"is_active": True,
|
||||
"is_deleted": False,
|
||||
},
|
||||
{
|
||||
"name": "Test_Company_1",
|
||||
"is_active": True,
|
||||
"is_deleted": False,
|
||||
},
|
||||
]
|
||||
|
||||
TEST_ROLE_GROUPS_DATA = [
|
||||
{
|
||||
"name": "Registration office Test_Official_1",
|
||||
"organisation": "Test_Official_1",
|
||||
},
|
||||
{
|
||||
"name": "Licensing authority Test_Official_1",
|
||||
"organisation": "Test_Official_1",
|
||||
},
|
||||
{
|
||||
"name": "Dataprovider Test_Official_2",
|
||||
"organisation": "Test_Official_2",
|
||||
},
|
||||
{
|
||||
"name": "Dataprovider Test_Company_1",
|
||||
"organisation": "Test_Company_1",
|
||||
},
|
||||
]
|
Loading…
Reference in New Issue