Buckets:

download
raw
640 Bytes
from unittest.mock import patch
import pytest
from httpx import Timeout
from extralit import Extralit
@pytest.fixture(autouse=True)
def mock_validate_connection():
with patch("extralit._api._client.APIClient._validate_connection") as mocked_validator:
yield mocked_validator
# Example usage in a test module
def test_create_default_client(mock_validate_connection):
http_client = Extralit().http_client
assert http_client is not None
assert http_client.base_url == "http://localhost:6900"
assert http_client.timeout == Timeout(60)
assert http_client.headers["X-Extralit-Api-Key"] == "extralit.apikey"

Xet Storage Details

Size:
640 Bytes
·
Xet hash:
342de23fb17dc983d1ab80acedb9fcec213cf6c70145a0be72846094119bdaf1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.