Skip to content

Commit

Permalink
Add test data for multiple keyed JSON file
Browse files Browse the repository at this point in the history
  • Loading branch information
kylacochrane committed Jun 13, 2024
1 parent ec347e4 commit 7c1b5dc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/data/reports/sample3_multiplekeys.mlst.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extra_key": {
"l1": "1",
"l2": "1",
"l3": "2"
},
"sample3": {
"l1": "1",
"l2": "1",
"l3": "2"
}
}
12 changes: 12 additions & 0 deletions tests/data/reports/sample3_multiplekeys_nomatch.mlst.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"sample4": {
"l1": "1",
"l2": "1",
"l3": "2"
},
"extra_key": {
"l1": "1",
"l2": "1",
"l3": "2"
}
}
5 changes: 5 additions & 0 deletions tests/data/samplesheets/samplesheet-multiple_keys.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sample,mlst_alleles,address
sampleQ,https://raw.githubusercontent.com/phac-nml/gasnomenclature/dev/tests/data/reports/sampleQ.mlst.json,
sample1,https://raw.githubusercontent.com/phac-nml/gasnomenclature/dev/tests/data/reports/sample1.mlst.json,1.1.1
sample2,https://raw.githubusercontent.com/phac-nml/gasnomenclature/dev/tests/data/reports/sample2.mlst.json,1.1.1
sample3,https://raw.githubusercontent.com/phac-nml/gasnomenclature/input_assure/tests/data/reports/sample3_multiplekeys.mlst.json,1.1.2
5 changes: 5 additions & 0 deletions tests/data/samplesheets/samplesheet-multiplekeys_nomatch.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sample,mlst_alleles,address
sampleQ,https://raw.githubusercontent.com/phac-nml/gasnomenclature/dev/tests/data/reports/sampleQ.mlst.json,
sample1,https://raw.githubusercontent.com/phac-nml/gasnomenclature/dev/tests/data/reports/sample1.mlst.json,1.1.1
sample2,https://raw.githubusercontent.com/phac-nml/gasnomenclature/dev/tests/data/reports/sample2.mlst.json,1.1.1
sample3,https://raw.githubusercontent.com/phac-nml/gasnomenclature/input_assure/tests/data/reports/sample3_multiplekeys_nomatch.mlst.json,1.1.2

0 comments on commit 7c1b5dc

Please sign in to comment.