Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci-rust-python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ jobs:
- name: Create mutation diff
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: git diff "${BASE_SHA}..${HEAD_SHA}" -- '*.rs' > cargo-mutants.diff
run: git diff "${BASE_SHA}" -- '*.rs' > cargo-mutants.diff

- name: Run cargo-mutants with nextest
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn inspect_object_state<'py>(
py: Python<'py>,
container: &Bound<'py, PyAny>,
) -> PyResult<InspectedObjectState<'py>> {
inspect_object_state_inner(py, container, true)
inspect_object_state_inner(py, container, include_model_dump_by_default())
}

pub(crate) fn inspect_object_state_without_model_dump<'py>(
Expand All @@ -24,6 +24,10 @@ pub(crate) fn inspect_object_state_without_model_dump<'py>(
inspect_object_state_inner(py, container, false)
}

fn include_model_dump_by_default() -> bool {
true
}

fn inspect_object_state_inner<'py>(
py: Python<'py>,
container: &Bound<'py, PyAny>,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_plugin_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2652,9 +2652,9 @@ def test_ci_workflow_includes_parity_jobs_for_rust_plugin_checks(self) -> None:
self.assertIn("cargo install cargo-mutants --version 27.0.0 --locked", mutants_install_run)
self.assertIn("cargo mutants --version", mutants_install_run)
self.assertIn("fetch-depth: 0", mutants_section)
self.assertEqual('git diff "${BASE_SHA}..${HEAD_SHA}" -- \'*.rs\' > cargo-mutants.diff\n', mutants_diff_run)
self.assertEqual('git diff "${BASE_SHA}" -- \'*.rs\' > cargo-mutants.diff\n', mutants_diff_run)
self.assertIn("BASE_SHA: ${{ github.event.pull_request.base.sha }}", mutants_section)
self.assertIn("HEAD_SHA: ${{ github.event.pull_request.head.sha }}", mutants_section)
self.assertNotIn("HEAD_SHA:", mutants_section)
self.assertIn("mutation_job: ${{ fromJson(needs.validate-and-detect.outputs.mutation_jobs) }}", mutants_section)
self.assertIn("CARGO_PACKAGE: ${{ matrix.mutation_job.cargo_package }}", mutants_section)
self.assertIn("IN_DIFF: ${{ matrix.mutation_job.in_diff }}", mutants_section)
Expand Down
Loading