Repository navigation
5.0.0
Works with VRT server 6.0. 4.9.0 and earlier raise ValueError on the autoApproved status, which is on by default, so every user should upgrade. Details: #41.
Changes
TestRunStatushas all six server statuses. An unknown status becomesUNKNOWNwith a warning instead of raising.track()fails only onnewandunresolved.start()returns theBuild. The PlaywrighttrackPage*andtrackElementHandle*methods return theTestRunResult.- Requests time out: 10 s to connect,
httpTimeoutInSecondsto read (default 360 s,0means no limit; alsoVRT_HTTPTIMEOUTINSECONDSandvrt.json). - HTTP errors raise
ServerErrorwithstatus_codeand the server's message. Timeouts and connection failures raiseRequestError; the apiKey is never in the message. - Image, diff and baseline URLs are
{apiUrl}/images/{name}. - A trailing slash in
apiUrlis stripped. - Packaging moved to
pyproject.toml; published through PyPI trusted publishing.
Breaking changes
- Python 3.10 or later; 3.9 is dropped.
ServerError(status_code, message)replacesServerError(*args);str(error)isHTTP <code>: <message>.- Transport failures raise
RequestErrorinstead of rawrequestsexceptions. vrt.jsonis read from the current working directory.- Requests time out (4.9.0 waited forever).
TestRunStatushas new members.- Image URLs need server 5.0.10 or later.
config.determine_config_pathis removed.
Thanks to @a-klimov (#34) and @alexey-polovinkin (#32).