Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /mardiros_fastlife /tests /functionals /steps /assertions.py
| from collections.abc import Mapping | |
| from playwright.async_api import Page, expect | |
| from tursu import then | |
| from tests.functionals.steps.form import Any | |
| async def assert_text(page: Page, text: str): | |
| loc = page.get_by_text(text) | |
| await expect(loc).to_be_visible() | |
| 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 | |
| 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.