Skip to content

Commit

Permalink
Fix client test setup bug (#275)
Browse files Browse the repository at this point in the history
* skip client tests

* re-add client tests, fix marqo cloud URL
  • Loading branch information
vicilliar authored Feb 10, 2025
1 parent 42fc95a commit 692ee88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/v2_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ def test_non_cloud_endpoint_client_is_not_marqo_cloud(self):

@mark.fixed
class TestClientMethods(MarqoTestCase):
def setUp(self) -> None:
self.initial_marqo_cloud_url = os.environ.get("MARQO_CLOUD_URL", constants.CLOUD_AWS_API_ENDPOINT)

def tearDown(self) -> None:
os.environ["MARQO_CLOUD_URL"] = constants.CLOUD_AWS_API_ENDPOINT
os.environ["MARQO_CLOUD_URL"] = self.initial_marqo_cloud_url

def test_is_cloud_api_endpoint(self):
# Custom Marqo Cloud URL
os.environ["MARQO_CLOUD_URL"] = "https://arandomsite.ai"
Expand Down

0 comments on commit 692ee88

Please sign in to comment.