Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
concepts-processing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
meldb
concepts-processing
Commits
d42cf541
Commit
d42cf541
authored
4 months ago
by
mjbonifa
Browse files
Options
Downloads
Patches
Plain Diff
test: fixed tests as config1 and config2 needed updating with the latest config format. Closes
#32
parent
6ecf468f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/config1.yaml
+2
-2
2 additions, 2 deletions
examples/config1.yaml
examples/config2.yaml
+2
-4
2 additions, 4 deletions
examples/config2.yaml
tests/test_acmc.py
+1
-0
1 addition, 0 deletions
tests/test_acmc.py
with
5 additions
and
6 deletions
examples/config1.yaml
+
2
−
2
View file @
d42cf541
...
@@ -6,7 +6,6 @@ concept_sets:
...
@@ -6,7 +6,6 @@ concept_sets:
vocabulary_reference
:
"
https://git.soton.ac.uk/meldb/concepts-processing/-/tree/main/examples"
vocabulary_reference
:
"
https://git.soton.ac.uk/meldb/concepts-processing/-/tree/main/examples"
concept_set
:
concept_set
:
-
concept_set_name
:
"
ABDO_PAIN"
-
concept_set_name
:
"
ABDO_PAIN"
concept_set_status
:
"
AGREED"
metadata
:
{}
metadata
:
{}
codes
:
codes
:
...
@@ -19,5 +18,6 @@ codes:
...
@@ -19,5 +18,6 @@ codes:
metadata
:
metadata
:
-
"
description"
-
"
description"
concept_set
:
concept_set
:
-
"
ABDO_PAIN"
-
name
:
"
ABDO_PAIN"
This diff is collapsed.
Click to expand it.
examples/config2.yaml
+
2
−
4
View file @
d42cf541
...
@@ -6,10 +6,8 @@ concept_sets:
...
@@ -6,10 +6,8 @@ concept_sets:
vocabulary_reference
:
"
https://www.it-innovation.soton.ac.uk/projects/meldb/concept-processing/example"
vocabulary_reference
:
"
https://www.it-innovation.soton.ac.uk/projects/meldb/concept-processing/example"
concept_set
:
concept_set
:
-
concept_set_name
:
"
CVD_EVENTS"
-
concept_set_name
:
"
CVD_EVENTS"
concept_set_status
:
"
AGREED"
metadata
:
{}
metadata
:
{}
-
concept_set_name
:
"
DID_NOT_ATTEND"
-
concept_set_name
:
"
DID_NOT_ATTEND"
concept_set_status
:
"
AGREED"
metadata
:
{}
metadata
:
{}
codes
:
codes
:
...
@@ -21,11 +19,11 @@ codes:
...
@@ -21,11 +19,11 @@ codes:
icd10
:
"
code"
icd10
:
"
code"
metadata
:
[]
metadata
:
[]
concept_set
:
concept_set
:
-
"
CVD_EVENTS"
-
name
:
"
CVD_EVENTS"
-
file
:
"
Non-attendance
codes/res201-did-not-attend-appointment.csv"
-
file
:
"
Non-attendance
codes/res201-did-not-attend-appointment.csv"
columns
:
columns
:
read2
:
"
code"
read2
:
"
code"
metadata
:
[]
metadata
:
[]
concept_set
:
concept_set
:
-
"
DID_NOT_ATTEND"
-
name
:
"
DID_NOT_ATTEND"
This diff is collapsed.
Click to expand it.
tests/test_acmc.py
+
1
−
0
View file @
d42cf541
...
@@ -51,6 +51,7 @@ def test_phen_init_local_specified(tmp_dir, monkeypatch, caplog):
...
@@ -51,6 +51,7 @@ def test_phen_init_local_specified(tmp_dir, monkeypatch, caplog):
[
[
(
"
config1.yaml
"
),
# config.yaml test case
(
"
config1.yaml
"
),
# config.yaml test case
(
"
config2.yaml
"
),
# config.yaml test case
(
"
config2.yaml
"
),
# config.yaml test case
(
"
config3.yaml
"
),
# config.yaml test case
],
],
)
)
def
test_phen_workflow
(
tmp_dir
,
monkeypatch
,
caplog
,
config_file
):
def
test_phen_workflow
(
tmp_dir
,
monkeypatch
,
caplog
,
config_file
):
...
...
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