Skip to content

Commit

Permalink
add another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
aschroed committed Aug 23, 2023
1 parent 89dd17d commit 72a7df7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_import_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ def test_error_report(connection_mock):
"title": "Unprocessable Entity",
"status": "error",
"errors": [
{"location": "body",
"description": "Test for error with no name"},
{"name": "Schema: ", "location": "body",
"description": "Unable to resolve link: siyuan-wang-lab:region_1MB_TAD_1"},
{"name": "Schema: ", "location": "body",
Expand All @@ -304,6 +306,7 @@ def test_error_report(connection_mock):
}
rep = imp.error_report(err_dict, "Vendor", ['dcic:insituhicagar', 'siyuan-wang-lab:region_1MB_TAD_1'], connection_mock)
message = '''
ERROR vendor Test for error with no name
ERROR vendor Field 'Schema: ': Unable to resolve link: siyuan-wang-lab:region_5MB_TAD_2
ERROR vendor Field 'Schema: genome_location.1': 'siyuan-wang-lab:region_5MB_TAD_2' not found
ERROR vendor Field 'age': 'at' is not of type 'number'
Expand Down

0 comments on commit 72a7df7

Please sign in to comment.