Skip to content

Commit 4e6c711

Browse files
committed
Adding query_params to MockRequest Class attributes.
1 parent 203b88b commit 4e6c711

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stac_fastapi/elasticsearch/tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def __init__(self, item, collection):
3939

4040
class MockRequest:
4141
base_url = "http://test-server"
42+
query_params = {}
4243

4344
def __init__(
4445
self,
@@ -50,7 +51,7 @@ def __init__(
5051
self.method = method
5152
self.url = url
5253
self.app = app
53-
self.query_params = query_params or {}
54+
self.query_params = query_params
5455

5556

5657
class TestSettings(AsyncElasticsearchSettings):

0 commit comments

Comments
 (0)