From 59051882afbb09d8e60cb8d4116c515e78a10e53 Mon Sep 17 00:00:00 2001 From: Johnathan Schaff Date: Wed, 28 Feb 2024 15:08:09 -0800 Subject: [PATCH] Remove the header mapping. Let it generate at runtime --- src/tests/data_tests/test_1_annotation.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/tests/data_tests/test_1_annotation.py b/src/tests/data_tests/test_1_annotation.py index 5044adb..806fd39 100644 --- a/src/tests/data_tests/test_1_annotation.py +++ b/src/tests/data_tests/test_1_annotation.py @@ -183,7 +183,7 @@ def test_113(self): @pytest.mark.xfail( reason="CURIE ID SUPPORT NOT CURRENTLY ENABLED ON MYGENE.INFO HOST", run=True, - strict=True + strict=True, ) def test_114(self): """ @@ -341,7 +341,7 @@ def test_155(self): @pytest.mark.xfail( reason="CURIE ID SUPPORT NOT CURRENTLY ENABLED ON MYGENE.INFO HOST", run=True, - strict=True + strict=True, ) def test_156(self): """ @@ -377,11 +377,8 @@ def test_156(self): data_mapping = { "ids": delimiter.join([f'"{query}"' for query in query_collection]) } - header_mapping = { - "user-agent": "biothings_client.py/0.3.1 (python:3.11.2 requests:2.31.0)" - } query_results = self.request( - endpoint, method="POST", data=data_mapping, headers=header_mapping + endpoint, method="POST", data=data_mapping ).json() assert len(query_results) == len(query_collection)