Skip to content

Migrate last set of test examples to use the new parametrization decorator#1284

Open
lrandersson wants to merge 7 commits into
conda:mainfrom
lrandersson:dev-ra-838-4
Open

Migrate last set of test examples to use the new parametrization decorator#1284
lrandersson wants to merge 7 commits into
conda:mainfrom
lrandersson:dev-ra-838-4

Conversation

@lrandersson

Copy link
Copy Markdown
Contributor

Description

This is the last PR covering the improvements done to the test examples (based on the work from #1278).

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@lrandersson lrandersson self-assigned this Jul 8, 2026
@lrandersson lrandersson requested a review from a team as a code owner July 8, 2026 20:25
@lrandersson lrandersson marked this pull request as draft July 8, 2026 20:26
@github-project-automation github-project-automation Bot moved this to 🆕 New in 🔎 Review Jul 8, 2026
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jul 8, 2026
@lrandersson lrandersson marked this pull request as ready for review July 9, 2026 13:45
Comment thread tests/test_examples.py Outdated
@pytest.mark.skipif(sys.platform != "darwin", reason="macOS only")
def test_example_osxpkg(tmp_path, request):
@pytest.mark.parametrize("installer_type", installer_types_for_example(_example_path("osxpkg")))
def test_example_osxpkg(tmp_path, request, installer_type):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to parametrize the PKG tests? They are only intended for one installer type, so this seems unnecessary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, see 3095f08.

@marcoesters marcoesters left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One non-blocking suggestion, but LGTM

Comment thread tests/test_examples.py
)
def test_example_osxpkg_extra_pages(tmp_path, installer_type):
def test_example_osxpkg_extra_pages(tmp_path):
installer_type = "pkg"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's one option, or create_single_installer takes None and then just takes whatever is in the construct.yaml file.

@github-project-automation github-project-automation Bot moved this from 🆕 New to ✅ Approved in 🔎 Review Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Status: ✅ Approved

Development

Successfully merging this pull request may close these issues.

3 participants