Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
SMASCH
scheduling-system
Merge requests
!66
handling situation when there is more than one visit available
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
handling situation when there is more than one visit available
124-connection-to-redcap
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Piotr Gawron
requested to merge
124-connection-to-redcap
into
master
7 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Viewing commit
b4d794aa
Show latest version
2 files
+
10
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
b4d794aa
handling situation when there is more than one visit available
· b4d794aa
Piotr Gawron
authored
7 years ago
smash/web/tests/test_RedcapConnector.py
+
9
−
0
Options
@@ -62,6 +62,15 @@ class TestRedcapConnector(TestCase):
@@ -62,6 +62,15 @@ class TestRedcapConnector(TestCase):
self
.
assertIsNotNone
(
inconsistent_subject
.
subject
)
self
.
assertIsNotNone
(
inconsistent_subject
.
subject
)
self
.
assertTrue
(
len
(
inconsistent_subject
.
fields
))
self
.
assertTrue
(
len
(
inconsistent_subject
.
fields
))
def
test_get_red_cap_subjects
(
self
):
self
.
prepare_test_redcap_connection
()
redcap_connection
=
RedcapConnector
()
data
=
redcap_connection
.
get_red_cap_subjects
()
nd_numbers
=
{}
for
row
in
data
:
self
.
assertIsNone
(
nd_numbers
.
get
(
row
.
nd_number
),
"
RED Cap subject duplicated:
"
+
row
.
nd_number
)
nd_numbers
[
row
.
nd_number
]
=
row
def
test_create_inconsistent_data_for_date_born
(
self
):
def
test_create_inconsistent_data_for_date_born
(
self
):
self
.
prepare_test_redcap_connection
()
self
.
prepare_test_redcap_connection
()
subject
=
create_subject
()
subject
=
create_subject
()
Loading