Skip to content

Commit

Permalink
Fix parametrize syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoesters committed Nov 25, 2024
1 parent d971190 commit 5614ce7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,14 @@ def test_example_customized_welcome_conclusion(tmp_path, request):
_run_installer(input_path, installer, install_dir, request=request)


@pytest.mark.skipif(sys.platform != "win32", reason="Windows only")
@pytest.mark.parametrize(
"extra_pages",
pytest.param(["extra_page_1.nsi", "extra_page_2.nsi"], id="two pages"),
pytest.param("extra_page_1.nsi", id="single page"),
(
pytest.param(["extra_page_1.nsi", "extra_page_2.nsi"], id="two pages"),
pytest.param("extra_page_1.nsi", id="single page"),
)
)
@pytest.mark.skipif(sys.platform != "win32", reason="Windows only")
def test_example_extra_pages_win(tmp_path, request, extra_pages):
recipe_path = _example_path("exe_extra_pages")
input_path = tmp_path / "input"
Expand Down

0 comments on commit 5614ce7

Please sign in to comment.