Skip to content
Snippets Groups Projects
Commit 0dc0f8c4 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

make test data comment better and move to org_data function

parent 451824ec
No related branches found
No related tags found
No related merge requests found
......@@ -2,22 +2,23 @@ from compendium_v2 import db
from compendium_v2.db import model
from compendium_v2.publishers.survey_publisher_2022 import _cli, FundingSource, StaffQuestion, OrgQuestion
"""
SUB_ORG_DATA:
nren1,CYNET-CSIRT,cert team
nren1,DFN-CERT,CERT
nren2,Educampus Services,MIS shared services for third level.
nren3,VilniusTech,Technical centre
nren3,KU,Technical centre
nren3,VDU,Technical centre
nren3,VU,Technical centre
nren3,KTU,"NOC, administrative authority"
def org_data(question):
"""
This function defines test data for the org questions.
"""
The following data is defined for the appropriate questions as modeled in Compendium:
nren1,CYNET-CSIRT,cert team
nren1,DFN-CERT,CERT
nren2,Educampus Services,MIS shared services for third level.
nren3,VilniusTech,Technical centre
nren3,KU,Technical centre
nren3,VDU,Technical centre
nren3,VU,Technical centre
nren3,KTU,"NOC, administrative authority"
"""
def org_data(question):
if question == OrgQuestion.parent_org_name:
return [
('nren1', 'Org1'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment