Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,697
Issues
1,697
List
Boards
Labels
Service Desk
Milestones
Merge Requests
91
Merge Requests
91
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
addb8ffa
Commit
addb8ffa
authored
Oct 30, 2020
by
Ryan Herbert
Committed by
Mikaël Salson
Nov 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add creator id to test data set
parent
05bd0fc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server/web2py/applications/vidjil/tests/functional/init_test_db.py
...b2py/applications/vidjil/tests/functional/init_test_db.py
+2
-2
No files found.
server/web2py/applications/vidjil/tests/functional/init_test_db.py
View file @
addb8ffa
...
@@ -44,8 +44,8 @@ class DBInitialiser(object):
...
@@ -44,8 +44,8 @@ class DBInitialiser(object):
def
get_set_dict
(
self
,
set_type
,
sample_set_id
,
i
):
def
get_set_dict
(
self
,
set_type
,
sample_set_id
,
i
):
if
set_type
==
defs
.
SET_TYPE_PATIENT
:
if
set_type
==
defs
.
SET_TYPE_PATIENT
:
return
dict
(
id_label
=
""
,
first_name
=
"patient"
,
last_name
=
i
,
birth
=
"2010-10-10"
,
info
=
"test patient %d #test%d"
%
(
i
,
i
),
sample_set_id
=
sample_set_id
)
return
dict
(
id_label
=
""
,
first_name
=
"patient"
,
last_name
=
i
,
birth
=
"2010-10-10"
,
info
=
"test patient %d #test%d"
%
(
i
,
i
),
sample_set_id
=
sample_set_id
,
creator
=
1
)
d
=
dict
(
name
=
"%s %d"
%
(
set_type
,
i
),
info
=
"test %s %d #test%d"
%
(
set_type
,
i
,
i
),
sample_set_id
=
sample_set_id
)
d
=
dict
(
name
=
"%s %d"
%
(
set_type
,
i
),
info
=
"test %s %d #test%d"
%
(
set_type
,
i
,
i
),
sample_set_id
=
sample_set_id
,
creator
=
1
)
if
set_type
==
defs
.
SET_TYPE_RUN
:
if
set_type
==
defs
.
SET_TYPE_RUN
:
d
[
'id_label'
]
=
""
d
[
'id_label'
]
=
""
return
d
return
d
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment