Skip to content

Upgrade "pytest" to "7.2.0" to get all the new improvements #1578

@mdmintz

Description

@mdmintz

Upgrade pytest to 7.2.0 to get all the new improvements

  • @pytest.mark.parametrize() (and similar functions) now accepts any Sequence[str] for the argument names, instead of just list[str] and tuple[str, ...].
  • The --no-showlocals flag has been added. This can be passed directly to tests to override --showlocals declared through addopts.
  • Assertion failures with strings in NFC and NFD forms that normalize to the same string now have a dedicated error message detailing the issue, and their utf-8 representation is expressed instead.
  • Introduce multiline display for warning matching and enhancing match comparison.
  • Improve pytest.raises. Previously passing an empty tuple would give a confusing error. We now raise immediately with a more helpful message.
  • Display assertion message without escaped newline characters with -vv.
  • Improved error message that is shown when no collector is found for a given file.
  • Some coloring has been added to the short test summary.
  • Normalize the help description of all command-line options.
  • Display full crash messages in short test summary info, when running in a CI environment.
  • Added support for hidden configuration file by allowing .pytest.ini as an alternative to pytest.ini.

Metadata

Metadata

Assignees

Labels

SeleniumBase 4SeleniumBase 4dependenciesThis involves updating a dependency fileenhancementMaking things bettertestsThis involves test updates or new tests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions