Skip to content

Commit

Permalink
Remove the header mapping. Let it generate at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnathan Schaff committed Feb 28, 2024
1 parent ea663f5 commit 5905188
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/tests/data_tests/test_1_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 5905188

Please sign in to comment.