Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Commits
0dc0f8c4
Commit
0dc0f8c4
authored
2 years ago
by
Bjarke Madsen
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_survey_publisher_2022.py
+13
-12
13 additions, 12 deletions
test/test_survey_publisher_2022.py
with
13 additions
and
12 deletions
test/test_survey_publisher_2022.py
+
13
−
12
View file @
0dc0f8c4
...
...
@@ -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
'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment