Skip to content
Snippets Groups Projects
Commit 5ef23a34 authored by UMEC Mathieu's avatar UMEC Mathieu
Browse files

ad .gitignore and test_MApping_using_the_API

parent 6932f0df
No related branches found
No related tags found
No related merge requests found
/__pycache__
.cpython-310
\ No newline at end of file
import unittest
import sys
sys.path.append('C:\\Users\\mumec\\Desktop\\Dossier_gitlab_local\\traitement_des_données')
import Mapping_using_the_API
class TestMappingAPI(unittest.TestCase):
def test_send_request_to_Mapping_API(self):
result =Mapping_using_the_API.send_request_to_Mapping_API('https://rampdb.nih.gov/api/pathways-from-analytes',["hmdb:HMDB0000064"],{'Accept': '*/*','Content-Type': 'application/json'})
self.assertIsInstance(result, str)
self.assertNotEqual(len(result),0)
with self.assertRaises(ValueError):
Mapping_using_the_API.send_request_to_Mapping_API('https://rampdb.nih.gov/api/pathways-from-analytes',[],{'Accept': '*/*','Content-Type': 'application/json'})
"""
def test_mapping_from_RAMP_API(self):
def test_excel_file_writer(self):
"""
if __name__=='__main__':
unittest.main()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment