Skip to content

Commit

Permalink
repuposed filter param changing to fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jal347 committed Jan 8, 2024
1 parent cf69777 commit 3cd3521
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tests/data_tests/test_1_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def test_153(self):
)

def test_154(self):
data = {"ids": "1017,1018", "filter": "symbol,go.MF"}
data = {"ids": "1017,1018", "fields": "symbol,go.MF"}
res = self.request("gene", method="POST", data=data).json()
assert len(res) == 2
for _g in res:
Expand Down
2 changes: 1 addition & 1 deletion src/tests/data_tests/test_5_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_521_fields(self):
assert set(res) == set(["_id", "_version", "symbol", "name", "entrezgene"])

def test_522_fields(self):
res = self.request("gene/1017?filter=symbol,go.MF").json()
res = self.request("gene/1017?fields=symbol,go.MF").json()
assert set(res) == set(["_id", "_version", "symbol", "go"])
assert "MF" in res["go"]

Expand Down

0 comments on commit 3cd3521

Please sign in to comment.