Skip to content

Commit

Permalink
chore: Simplify test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Jun 26, 2024
1 parent d8f20ef commit d350cee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions argilla/tests/unit/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def test_default_client(self):
assert client.api_key == "admin.apikey"

def test_multiple_clients(self):
with mock.patch("argilla.client._api.APIClient.http_client"):
local_client = rg.Argilla(api_url="http://localhost:6900", api_key="admin.apikey")
remote_client = rg.Argilla(api_url="http://argilla.production.net", api_key="admin.apikey")
assert local_client.api_url == "http://localhost:6900"
assert remote_client.api_url == "http://argilla.production.net"
local_client = rg.Argilla(api_url="http://localhost:6900", api_key="admin.apikey")
remote_client = rg.Argilla(api_url="http://argilla.production.net", api_key="admin.apikey")

assert local_client.api_url == "http://localhost:6900"
assert remote_client.api_url == "http://argilla.production.net"

0 comments on commit d350cee

Please sign in to comment.