bcgov / wps

Wildfire Predictive Services to support decision making in prevention, preparedness, response and recovery
Apache License 2.0
41 stars 9 forks source link

Update dependency pytest_bdd to v8 #4099

Closed renovate[bot] closed 1 week ago

renovate[bot] commented 1 week ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pytest_bdd (source) ^5 -> ^8.0.0 age adoption passing confidence

Release Notes

pytest-dev/pytest-bdd (pytest_bdd) ### [`v8.0.0`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#800---2024-11-14) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/7.3.0...8.0.0) Added \+++++ - Gherkin keyword aliases can now be used and correctly reported in json and terminal output (see `Keywords `\_ for permitted list). - Added localization support. The language of the feature file can be specified using the `# language: ` directive at the beginning of the file. - Rule keyword can be used in feature files (see `Rule `\_) - Added support for multiple example tables - Added filtering by tags against example tables - Since the 7.x series: - Tags can now be on multiple lines (stacked) - Continuation of steps using asterisks (`*`) instead of `And`/`But` supported. - Added `datatable` argument for steps that contain a datatable (see `Data Tables `\_). - Added `docstring` argument for steps that contain a docstring (see `Doc Strings `\_). Changed \+++++++ - Changelog format updated to follow `Keep a Changelog `\_. - Text after the `#` character is no longer stripped from the Scenario and Feature name. - Since the 7.x series: - Use the `gherkin-official `\_ parser, replacing the custom parsing logic. This will make pytest-bdd more compatible with the Gherkin specification. - Multiline steps must now always use triple-quotes for the additional lines. - All feature files must now use the keyword `Feature:` to be considered valid. - Tags can no longer have spaces (e.g. `@tag one` and `@tag two` are no longer valid). - Text after the `#` character is no longer stripped from the Step name. - Multiline strings no longer match name based on multiple lines - only on the actual step text on the step line. Removed \+++++++ - Dropped support for python 3.8. Supported python versions: 3.9, 3.10, 3.11, 3.12, 3.13. - Since the 7.x series: - Drop compatibility with pytest < 7.0.0. Fixed \+++++ - Since the 7.x series: - Updated documentation to clarify that `--gherkin-terminal-reporter` needs to be used with `-v` or `-vv`. ### [`v7.3.0`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#730) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/7.2.0...7.3.0) - Fix an issue when only the first Step would inject a fixture, while later steps would not be able to. - Test against the latest versions of pytest (8.2, 8.3). ### [`v7.2.0`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#720) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/7.1.2...7.2.0) - Fix compatibility issue with Python 3.13. - Declare compatibility with Python 3.13. ### [`v7.1.2`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#712) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/7.1.1...7.1.2) - Address another compatibility issue with pytest 8.1 (fixture registration). `#​680 `\_ ### [`v7.1.1`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#711) - Address a bug introduced in pytest-bdd 7.1 caused by incorrect pytest version check. ### [`v7.1`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#712) - Address another compatibility issue with pytest 8.1 (fixture registration). `#​680 `\_ ### [`v7.0.1`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#701) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/7.0.0...7.0.1) - Fix errors occurring if `pytest_unconfigure` is called before `pytest_configure`. `#​362 `\_ `#​641 `\_ ### [`v7.0.0`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#700) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/6.1.1...7.0.0) - ⚠️ Backwards incompatible: - `parsers.re` now does a `fullmatch `\_ instead of a partial match. This is to make it work just like the other parsers, since they don't ignore non-matching characters at the end of the string. `#​539 `\_ - Drop python 3.7 compatibility, as it's no longer supported. `#​627 `\_ - Declare official support for python 3.12 `#​628 `\_ - Improve parser performance by 15% `#​623 `\_ by `@dcendents `\_ - Add support for Scenarios and Scenario Outlines to have descriptions. `#​600 `\_ ### [`v6.1.1`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#611) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/6.1.0...6.1.1) - Fix regression introduced in version 6.1.0 where the `pytest_bdd_after_scenario` hook would be called after every step instead of after the scenario. `#​577 `\_ ### [`v6.1.0`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#610) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/6.0.1...6.1.0) - Fix bug where steps without parsers would take precedence over steps with parsers. `#​534 `\_ - Step functions can now be decorated multiple times with [@​given](https://redirect.github.com/given), [@​when](https://redirect.github.com/when), [@​then](https://redirect.github.com/then). Previously every decorator would override `converters` and `target_fixture` every at every application. `#​534 `\_ `#​544 `\_ `#​525 `\_ - Require pytest>=6.2 `#​534 `\_ - Using modern way to specify hook options to avoid deprecation warnings with pytest >=7.2. - Add generic `step` decorator that will be used for all kind of steps `#​548 `\_ - Add `stacklevel` param to `given`, `when`, `then`, `step` decorators. This allows for programmatic step generation `#​548 `\_ - Hide pytest-bdd internal method in user tracebacks `#​557 `\_. - Make the package PEP 561-compatible `#​559 `\_ `#​563 `\_. - Configuration option `bdd_features_base_dir` is interpreted as relative to the `pytest root directory `\_ (previously it was relative to the current working directory). `#​573 `\_ ### [`v6.0.1`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#601) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/6.0.0...6.0.1) - Fix regression introduced in 6.0.0 where a step function decorated multiple using a parsers times would not be executed correctly. `#​530 `\_ `#​528 `\_ ### [`v6.0.0`](https://redirect.github.com/pytest-dev/pytest-bdd/blob/HEAD/CHANGES.rst#600) [Compare Source](https://redirect.github.com/pytest-dev/pytest-bdd/compare/5.0.0...6.0.0) This release introduces breaking changes in order to be more in line with the official gherkin specification. - Cleanup of the documentation and tests related to parametrization (elchupanebrej) `#​469 `\_ - Removed feature level examples for the gherkin compatibility (olegpidsadnyi) `#​490 `\_ - Removed vertical examples for the gherkin compatibility (olegpidsadnyi) `#​492 `\_ - Step arguments are no longer fixtures (olegpidsadnyi) `#​493 `\_ - Drop support of python 3.6, pytest 4 (elchupanebrej) `#​495 `\_ `#​504 `\_ - Step definitions can have "yield" statements again (4.0 release broke it). They will be executed as normal fixtures: code after the yield is executed during teardown of the test. (youtux) `#​503 `\_ - Scenario outlines unused example parameter validation is removed (olegpidsadnyi) `#​499 `\_ - Add type annotations (youtux) `#​505 `\_ - `pytest_bdd.parsers.StepParser` now is an Abstract Base Class. Subclasses must make sure to implement the abstract methods. (youtux) `#​505 `\_ - Angular brackets in step definitions are only parsed in "Scenario Outline" (previously they were parsed also in normal "Scenario"s) (youtux) `#​524 `\_.

Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.37%. Comparing base (30efad7) to head (a38b6b7).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #4099 +/- ## ========================================== - Coverage 80.89% 80.37% -0.52% ========================================== Files 309 309 Lines 11845 11845 Branches 537 537 ========================================== - Hits 9582 9521 -61 + Misses 2145 2138 -7 - Partials 118 186 +68 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

renovate[bot] commented 1 week ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 8.x releases. But if you manually upgrade to 8.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.