Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 058175f

Browse files
committed
correcting expected return codes
1 parent 322bdf8 commit 058175f

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

unit_tests/test_biomolecule_annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_biomolecile_annotation_post_3(self):
235235

236236
def test_biomolecule_annotation_failing(self):
237237
response=api.post_biomolecule_annotation(self.annotationJson3)
238-
self.assertEqual(response.status_code,500)
238+
self.assertEqual(response.status_code,404)
239239

240240

241241

unit_tests/test_biomolecule_annotation_input_type.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class AnnotationTests(unittest.TestCase):
4141
}
4242
""")
4343
annotationJson2=json.loads("""
44-
{
44+
{
4545
"biomolecules": [
4646
{
4747
"general":
@@ -170,6 +170,8 @@ class AnnotationTests(unittest.TestCase):
170170
}
171171
]
172172
}
173+
174+
173175
""")
174176

175177
def tearDown(self):
@@ -185,11 +187,11 @@ def test_biomolecule_annotation_inputtype2(self):
185187

186188
def test_biomolecule_annotation_inputtype3(self):
187189
response=api.post_biomolecule_annotation_input_type(self.annotationJson,input_type='code',input='HS90A_HUMANNNNNN')
188-
self.assertEqual(response.status_code,500)
190+
self.assertEqual(response.status_code,404)
189191

190192
def test_biomolecule_annotation_inputtype4(self):
191193
response=api.post_biomolecule_annotation_input_type(self.annotationJson,input_type='nonexistenttype',input='HS90A_HUMAN')
192-
self.assertEqual(response.status_code,500)
194+
self.assertEqual(response.status_code,400)
193195

194196

195197

0 commit comments

Comments
 (0)