Skip to content

Commit

Permalink
Fix some ME tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KateSakharova committed Jan 29, 2024
1 parent a6e9eda commit 2f83224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion emgapi/metagenomics_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ def check_analysis(self, source_id: str, sequence_id: str, public=None, metadata
if public:
params = {
"status": "public" if public else "private",
"broker": self.broker
}
endpoint = f"sequences/{sequence_id}"
endpoint = f"sequences/{sequence_id}/datasets"
response = self.get_request(endpoint=endpoint, params=params)
analysis_registry_id = None
metadata_match = True
Expand Down
2 changes: 1 addition & 1 deletion tests/me/test_metagenomics_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_wrong_delete_request_me(self):
registry_id = "MGX0000780"
endpoint = f"dataset/{registry_id}"

with pytest.raises(requests.HTTPError, match="401 Client Error"):
with pytest.raises(requests.HTTPError, match="404 Client Error"):
me_api.delete_request(endpoint)

def test_patch_analysis_me(self):
Expand Down

0 comments on commit 2f83224

Please sign in to comment.