Buckets:

download
raw
809 Bytes
from collections.abc import Mapping
from playwright.async_api import Page, expect
from tursu import then
from tests.functionals.steps.form import Any
@then('the user sees the text "{text}"')
async def assert_text(page: Page, text: str):
loc = page.get_by_text(text)
await expect(loc).to_be_visible()
@then("the user sees the json")
async def assert_json(page: Page, response: Any, doc_string: Mapping[str, Any]):
resp = await response.get_response()
actual_json = await resp.json()
assert actual_json == doc_string
@then('the user sees the python set in "{field}"')
async def assert_json_contains_set(
page: Page, response: Any, doc_string: set[str], field: str
):
actual_json = await (await response.get_response()).json()
assert set(actual_json[field]) == doc_string

Xet Storage Details

Size:
809 Bytes
·
Xet hash:
ffb2092c2c22f0fb732d6e3ce9ea5cb740740ac2ac39d2f1deaacae45f263fe3

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