Buckets:

download
raw
835 Bytes
from fastapi.testclient import TestClient
from inteliver.main import app
client = TestClient(app)
def test_i18n_root_en():
# Send a request with Accept-Language: en header
response = client.get("/", headers={"Accept-Language": "en"})
assert response.status_code == 200
# Parse the JSON response
response_data = response.json()
# Assert the text of the returned JSON
assert response_data["message"] == "API is up and ok."
def test_i18n_root_fa():
# Send a request with Accept-Language: en header
response = client.get("/", headers={"Accept-Language": "fa"})
assert response.status_code == 200
# Parse the JSON response
response_data = response.json()
# Assert the text of the returned JSON
assert response_data["message"] == "API به درستی کار می‌کند"

Xet Storage Details

Size:
835 Bytes
·
Xet hash:
a84cc6e35302250c97cc3146442fce73495d1642e9608e38244b8ff2dcef2d55

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