Skip to content

Commit

Permalink
adapt testing because of previously missing Description field
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth committed Jan 29, 2024
1 parent 825d8e5 commit fa8320d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_parse_investigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ def test_parse_assays_investigation(assays_investigation_file):
)
assert record[1].category == ParseIsatabWarning
assert str(record[1].message) == msg
msg = "No assays declared in study 's_assays' of investigation 'i_assays.txt'"
msg = 'No assays declared in study "s_assays" of investigation "i_assays.txt"'
assert record[2].category == AdvisoryIsaValidationWarning
assert str(record[2].message) == msg
msg = "Study identifier used more than once: s_assays"
Expand Down
5 changes: 3 additions & 2 deletions tests/test_write_assay.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ def test_assay_writer_gelelect(gelelect_investigation_file, tmp_path):
assert str(record[0].message) == msg
msg = (
"Investigation with only one study contains metadata:\n\tID:\t1551099271112"
"\n\tTitle:\tInvestigation\n\tPath:\ti_Investigation.txt\n\tSubmission Date:\t\n\tPublic Release"
" Date:\tNone\n\tPrefer recording metadata in the study section."
"\n\tTitle:\tInvestigation\n\tPath:\ti_Investigation.txt\n\tDescription:\t\n"
"\tSubmission Date:\tNone\n\tPublic Release Date:\tNone\n"
"\tPrefer recording metadata in the study section."
)
assert record[1].category == ModerateIsaValidationWarning
assert str(record[1].message) == msg
Expand Down
4 changes: 2 additions & 2 deletions tests/test_write_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def test_study_writer_gelelect(gelelect_investigation_file, tmp_path):
assert str(record[0].message) == msg
msg = (
"Investigation with only one study contains metadata:\n\tID:\t1551099271112\n\tTitle:\t"
"Investigation\n\tPath:\ti_Investigation.txt\n\tSubmission Date:\t\n\tPublic Release "
"Date:\tNone\n\tPrefer recording metadata in the study section."
"Investigation\n\tPath:\ti_Investigation.txt\n\tDescription:\t\n\tSubmission Date:\tNone\n"
"\tPublic Release Date:\tNone\n\tPrefer recording metadata in the study section."
)
assert record[1].category == ModerateIsaValidationWarning
assert str(record[1].message) == msg
Expand Down

0 comments on commit fa8320d

Please sign in to comment.