Skip to content

5.0.0

Choose a tag to compare

@pashidlos pashidlos released this 02 Nov 17:11
· 8 commits to master since this release
87b8e33

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

  • TestRunStatus has all six server statuses. An unknown status becomes UNKNOWN with a warning instead of raising. track() fails only on new and unresolved.
  • start() returns the Build. The Playwright trackPage* and trackElementHandle* methods return the TestRunResult.
  • Requests time out: 10 s to connect, httpTimeoutInSeconds to read (default 360 s, 0 means no limit; also VRT_HTTPTIMEOUTINSECONDS and vrt.json).
  • HTTP errors raise ServerError with status_code and the server's message. Timeouts and connection failures raise RequestError; the apiKey is never in the message.
  • Image, diff and baseline URLs are {apiUrl}/images/{name}.
  • A trailing slash in apiUrl is 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) replaces ServerError(*args); str(error) is HTTP <code>: <message>.
  • Transport failures raise RequestError instead of raw requests exceptions.
  • vrt.json is read from the current working directory.
  • Requests time out (4.9.0 waited forever).
  • TestRunStatus has new members.
  • Image URLs need server 5.0.10 or later.
  • config.determine_config_path is removed.

Thanks to @a-klimov (#34) and @alexey-polovinkin (#32).