Skip to content

Commit

Permalink
Adding query_params to MockRequest Class attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysrevans3 committed Jan 3, 2024
1 parent 203b88b commit 4e6c711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stac_fastapi/elasticsearch/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(self, item, collection):

class MockRequest:
base_url = "http://test-server"
query_params = {}

def __init__(
self,
Expand All @@ -50,7 +51,7 @@ def __init__(
self.method = method
self.url = url
self.app = app
self.query_params = query_params or {}
self.query_params = query_params


class TestSettings(AsyncElasticsearchSettings):
Expand Down

0 comments on commit 4e6c711

Please sign in to comment.