From 3cd35212210be34ab22d9902d5c6aa953fbcdafe Mon Sep 17 00:00:00 2001 From: jal347 Date: Mon, 8 Jan 2024 09:51:47 -0800 Subject: [PATCH] repuposed filter param changing to fields --- src/tests/data_tests/test_1_annotation.py | 2 +- src/tests/data_tests/test_5_control.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/data_tests/test_1_annotation.py b/src/tests/data_tests/test_1_annotation.py index 533ccd9..d9f3ae9 100644 --- a/src/tests/data_tests/test_1_annotation.py +++ b/src/tests/data_tests/test_1_annotation.py @@ -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: diff --git a/src/tests/data_tests/test_5_control.py b/src/tests/data_tests/test_5_control.py index 3017848..e0b33b2 100644 --- a/src/tests/data_tests/test_5_control.py +++ b/src/tests/data_tests/test_5_control.py @@ -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"]