Skip to content

Commit

Permalink
Do not login when testing search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
msom committed Jan 28, 2025
1 parent b900b2f commit e713a37
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
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

0 comments on commit e713a37

Please sign in to comment.