Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gawbul committed Nov 21, 2024
1 parent 231f6d6 commit 307325f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_ensemblrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ def test_SomethingBadPOST(self) -> None:
"""Deal with the {"error":"something bad has happened"} message using a POST method"""

curl_cmd = (
"""curl 'https://rest.ensembl.org/archive/id' -H 'Content-type:application/json' """
"""-H 'Accept:application/json' -X POST -d '{ "id" : ["ENSG00000157764", "ENSG00000248378"] }'"""
"""curl 'https://rest.ensembl.org/lookup/id' -H 'Content-type:application/json' """
"""-H 'Accept:application/json' -X POST -d '{ "ids" : ["ENSG00000157764", "ENSG00000248378" ] }'"""
)

# execute EnsemblRest function
self.EnsEMBL.getArchiveByMultipleIds(id=["ENSG00000157764", "ENSG00000248378"])
self.EnsEMBL.getLookupByMultipleIds(ids=["ENSG00000157764", "ENSG00000248378"])

# retrieve last_reponse
last_response = self.EnsEMBL.last_response
Expand Down

0 comments on commit 307325f

Please sign in to comment.