Skip to content

chore(deps): update pytest requirement from ==7.*,>=7.4 to ==7.* - #4

Closed
dependabot[bot] wants to merge 1 commit into
mainlinefrom
dependabot/pip/pytest-eq-7.star
Closed

chore(deps): update pytest requirement from ==7.*,>=7.4 to ==7.*#4
dependabot[bot] wants to merge 1 commit into
mainlinefrom
dependabot/pip/pytest-eq-7.star

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 5, 2023

Copy link
Copy Markdown
Contributor

Updates the requirements on pytest to permit the latest version.

Release notes

Sourced from pytest's releases.

pytest 7.4.1 (2023-09-02)

Bug Fixes

  • #10337: Fixed bug where fake intermediate modules generated by --import-mode=importlib would not include the child modules as attributes of the parent modules.

  • #10702: Fixed error assertion handling in pytest.approx when None is an expected or received value when comparing dictionaries.

  • #10811: Fixed issue when using --import-mode=importlib together with --doctest-modules that caused modules to be imported more than once, causing problems with modules that have import side effects.

Commits

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@7.4.0...7.4.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from a team as a code owner September 5, 2023 17:22
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Sep 5, 2023
@moorec-aws

Copy link
Copy Markdown
Contributor

@dependabot rebase

@ddneilson

Copy link
Copy Markdown
Contributor

@dependabot close

@dependabot dependabot Bot closed this Nov 6, 2023
@dependabot
dependabot Bot deleted the dependabot/pip/pytest-eq-7.star branch November 6, 2023 20:49
mwiebe added a commit to mwiebe/openjd-model-for-python that referenced this pull request Jul 2, 2026
…from model-bindings quality report

Addresses the first four recommendations in
`reports/model-bindings-quality-evaluation-report.md`. Each item is
struck through in the report with a `**Resolved**` note.

Empty-steps decode failures surface under `ModelValidationError` rather
than v0's `DecodeValidationError`. The v1 binding splits decode-stage
(schema-level) failures from model-stage (structural-invariant)
failures, with the empty-steps check living in the model validator —
this is a deliberate v0 divergence, not a bug.

* spec's 'Exceptions' section updated: corrected empty-steps example,
  divergence note explaining the split and recommended catch-tuple
* strengthened the existing regression test in test_parse.py to assert
  the full message body per the AGENTS.md test quality standard

The Python str-Enum shim for `TemplateSpecificationVersion` was
already removed in a prior change; the Rust pyclass at
`openjd._openjd_rs.TemplateSpecificationVersion` is the single
canonical class, re-exported identity-preserving from
`openjd.model._v1`. The regression test had become passing (no
`xfail` marker) but was still parked in `test_known_gaps.py`.

* test moved to test_version_enums.py::TestTemplateSpecificationVersion
  ::test_template_specification_version_returned_from_decode with
  strengthened identity / value / string-equality assertions
* spec's 'Pickle Support' section: stale 'str-Enum shim' paragraph
  corrected — pickle goes directly through the module-level
  `_reconstruct_enum` helper; pickle table now lists both
  spec-revision enums explicitly

The upstream `MergedParameterDefinition::default` is `Option<String>` —
every variant is stringified through `default_value()`. The binding
contract per the spec is that callers receive the default in its
native Python type (`int` for INT, `float` for FLOAT, `list[T]` for
LIST[T], etc.).

* new `default_to_native` helper in create_job_fns.rs dispatches on
  `JobParameterType` and parses the stringified default back via
  `str::parse` / `serde_json::from_str`; parsing failures fall back
  to the raw string as a defensive guard
* pre-existing parametrized expectations in
  test_merge_job_parameters.py::TestMergeTemplates_v2023_09 updated
  to native form (`'default': 8` vs `'default': '8'`)
* two int/float xfail tests moved out of test_known_gaps.py and
  expanded into a full TestMergeDefaultNativeTypes class covering
  all 10 type variants with type-identity assertions

The upstream `MergedParameterDefinition` struct does not surface a
description field — only `name` / `param_type` / `default` /
`object_type` / `data_flow` / `source` / merged constraints. v0
carried it on the typed pyclass merged result, so v1 was losing
per-parameter human-readable text that downstream tooling
(deadline-cli's parameter-prompt UI) relies on for parameter labels.

* py_merge_job_parameter_definitions now walks env templates in order
  then the job template, building a name→description `HashMap`. Later
  descriptions overwrite earlier ones, matching how the upstream merge
  tracks `default`
* the merged dict carries the `description` key only when at least
  one contributing template provided one (consistent with how
  `default` / `objectType` / `dataFlow` are conditionally emitted)
* spec's 'Return shape' key list now lists `description` with its
  last-wins ordering semantics
* xfail test moved out of test_known_gaps.py and expanded into a
  5-case TestMergeDescriptionPropagation class

* python -m pytest test/openjd/model_v0 test/openjd/model_v1 → 3269
  passed (+5 from the new tests), 0 xfails
* python -m pytest test/ → 5131 passed, 24 skipped, 3 unrelated
  `expr` xfails
* cargo clippy --manifest-path rust-bindings/Cargo.toml --all-targets
  -- -D warnings → clean
* No public binding signatures changed; _openjd_rs.pyi unchanged

Signed-off-by: Mark <399551+mwiebe@users.noreply.github.com>
mwiebe added a commit that referenced this pull request Jul 3, 2026
Addresses the first four recommendations in
`reports/model-bindings-quality-evaluation-report.md`. Each item is
struck through in the report with a `**Resolved**` note.

Empty-steps decode failures surface under `ModelValidationError` rather
than v0's `DecodeValidationError`. The v1 binding splits decode-stage
(schema-level) failures from model-stage (structural-invariant)
failures, with the empty-steps check living in the model validator —
this is a deliberate v0 divergence, not a bug.

* spec's 'Exceptions' section updated: corrected empty-steps example,
  divergence note explaining the split and recommended catch-tuple
* strengthened the existing regression test in test_parse.py to assert
  the full message body per the AGENTS.md test quality standard

The Python str-Enum shim for `TemplateSpecificationVersion` was
already removed in a prior change; the Rust pyclass at
`openjd._openjd_rs.TemplateSpecificationVersion` is the single
canonical class, re-exported identity-preserving from
`openjd.model._v1`. The regression test had become passing (no
`xfail` marker) but was still parked in `test_known_gaps.py`.

* test moved to test_version_enums.py::TestTemplateSpecificationVersion
  ::test_template_specification_version_returned_from_decode with
  strengthened identity / value / string-equality assertions
* spec's 'Pickle Support' section: stale 'str-Enum shim' paragraph
  corrected — pickle goes directly through the module-level
  `_reconstruct_enum` helper; pickle table now lists both
  spec-revision enums explicitly

The upstream `MergedParameterDefinition::default` is `Option<String>` —
every variant is stringified through `default_value()`. The binding
contract per the spec is that callers receive the default in its
native Python type (`int` for INT, `float` for FLOAT, `list[T]` for
LIST[T], etc.).

* new `default_to_native` helper in create_job_fns.rs dispatches on
  `JobParameterType` and parses the stringified default back via
  `str::parse` / `serde_json::from_str`; parsing failures fall back
  to the raw string as a defensive guard
* pre-existing parametrized expectations in
  test_merge_job_parameters.py::TestMergeTemplates_v2023_09 updated
  to native form (`'default': 8` vs `'default': '8'`)
* two int/float xfail tests moved out of test_known_gaps.py and
  expanded into a full TestMergeDefaultNativeTypes class covering
  all 10 type variants with type-identity assertions

The upstream `MergedParameterDefinition` struct does not surface a
description field — only `name` / `param_type` / `default` /
`object_type` / `data_flow` / `source` / merged constraints. v0
carried it on the typed pyclass merged result, so v1 was losing
per-parameter human-readable text that downstream tooling
(deadline-cli's parameter-prompt UI) relies on for parameter labels.

* py_merge_job_parameter_definitions now walks env templates in order
  then the job template, building a name→description `HashMap`. Later
  descriptions overwrite earlier ones, matching how the upstream merge
  tracks `default`
* the merged dict carries the `description` key only when at least
  one contributing template provided one (consistent with how
  `default` / `objectType` / `dataFlow` are conditionally emitted)
* spec's 'Return shape' key list now lists `description` with its
  last-wins ordering semantics
* xfail test moved out of test_known_gaps.py and expanded into a
  5-case TestMergeDescriptionPropagation class

Also refreshes `THIRD-PARTY-LICENSES.txt` for a Python-side dep bump
(`typing_extensions` 4.15.0 → 4.16.0) so the
`third_party_licenses` CI job stays green. Regenerated via
`bash scripts/check_third_party_licenses.sh --update`.

* python -m pytest test/openjd/model_v0 test/openjd/model_v1 → 3269
  passed (+5 from the new tests), 0 xfails
* python -m pytest test/ → 5131 passed, 24 skipped, 3 unrelated
  `expr` xfails
* cargo fmt --check → clean
* cargo clippy --all-targets -- -D warnings → clean
* cargo-deny check licenses bans sources → ok
* THIRD-PARTY-LICENSES.txt sync check → up to date
* No public binding signatures changed; _openjd_rs.pyi unchanged

Signed-off-by: Mark <399551+mwiebe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants