Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not login when testing search endpoint #507

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/tests/tests_09/test_search_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from tests.tests_09.base_test import StacBaseTestCase
from tests.tests_09.data_factory import Factory
from tests.tests_09.utils import reverse_version
from tests.utils import client_login
from tests.utils import mock_s3_asset_file

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -55,7 +54,6 @@ def setUpTestData(cls):

def setUp(self): # pylint: disable=invalid-name
self.client = Client()
client_login(self.client)
self.path = f'/{STAC_BASE_V}/search'
self.maxDiff = None # pylint: disable=invalid-name

Expand Down Expand Up @@ -193,7 +191,6 @@ def setUpTestData(cls):

def setUp(self): # pylint: disable=invalid-name
self.client = Client()
client_login(self.client)
self.path = f'/{STAC_BASE_V}/search'
self.maxDiff = None # pylint: disable=invalid-name

Expand Down Expand Up @@ -403,7 +400,6 @@ def setUpTestData(cls):

def setUp(self): # pylint: disable=invalid-name
self.client = Client()
client_login(self.client)
self.path = f'/{STAC_BASE_V}/search'
self.maxDiff = None # pylint: disable=invalid-name

Expand Down
5 changes: 0 additions & 5 deletions app/tests/tests_10/test_search_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from tests.tests_10.base_test import StacBaseTestCase
from tests.tests_10.data_factory import Factory
from tests.tests_10.utils import reverse_version
from tests.utils import client_login
from tests.utils import mock_s3_asset_file

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -56,7 +55,6 @@ def setUpTestData(cls):

def setUp(self): # pylint: disable=invalid-name
self.client = Client()
client_login(self.client)
self.path = f'/{STAC_BASE_V}/search'
self.maxDiff = None # pylint: disable=invalid-name

Expand Down Expand Up @@ -194,7 +192,6 @@ def setUpTestData(cls):

def setUp(self): # pylint: disable=invalid-name
self.client = Client()
client_login(self.client)
self.path = f'/{STAC_BASE_V}/search'
self.maxDiff = None # pylint: disable=invalid-name

Expand Down Expand Up @@ -404,7 +401,6 @@ def setUpTestData(cls):

def setUp(self): # pylint: disable=invalid-name
self.client = Client()
client_login(self.client)
self.path = f'/{STAC_BASE_V}/search'
self.maxDiff = None # pylint: disable=invalid-name

Expand Down Expand Up @@ -609,7 +605,6 @@ def setUpTestData(cls):

def setUp(self): # pylint: disable=invalid-name
self.client = Client()
client_login(self.client)
self.path = f'/{STAC_BASE_V}/search'
self.maxDiff = None # pylint: disable=invalid-name

Expand Down
Loading