Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Extralit_extralit /extralit /tests /unit /test_interface.py
| from unittest import mock | |
| import extralit as ex | |
| class TestExtralit: | |
| def test_default_client(self): | |
| with mock.patch("extralit.Extralit") as mock_client: | |
| mock_client.return_value.api_url = "http://localhost:6900" | |
| mock_client.return_value.api_key = "admin.apikey" | |
| mock_client.return_value.workspace = "extralit" | |
| client = ex.Extralit(api_url="http://localhost:6900", api_key="admin.apikey") | |
| assert client.api_url == "http://localhost:6900" | |
| assert client.api_key == "admin.apikey" | |
| def test_multiple_clients(self): | |
| local_client = ex.Extralit(api_url="http://localhost:6900", api_key="admin.apikey") | |
| remote_client = ex.Extralit(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" | |
Xet Storage Details
- Size:
- 931 Bytes
- Xet hash:
- 71848c135b42b93c46afe15f3dd9acb3775d39f26f2034d2a1e508eea6c1d14c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.