Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pyEnsemblRest #20

Merged
merged 11 commits into from
Nov 22, 2024
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
gawbul committed Nov 21, 2024
commit 307325f0a7e5405935783dd722e50167de1b3400
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
Loading