|
1 | | -from functools import partial |
2 | 1 | from typing import Any |
3 | 2 |
|
4 | 3 | import pytest |
|
12 | 11 | indirect=True, |
13 | 12 | ids=["no-setup"] |
14 | 13 | ) |
15 | | -@pytest.mark.parametrize( |
16 | | - argnames="robust_demo__add_rust_extension", |
17 | | - argvalues=[False, True], |
18 | | - indirect=True, |
19 | | - ids=["base", "maturin"] |
20 | | -) |
21 | | -@pytest.mark.parametrize( |
22 | | - argnames="robust_file__path__relative", |
23 | | - argvalues=templates_matching(".github/workflows/*.yml"), |
24 | | - indirect=True, |
25 | | - ids=lambda path: path.stem |
26 | | -) |
27 | 14 | class TestWorkflow: |
28 | | - def test_workflow_basic_loading(self, robust_yaml: dict[str, Any]) -> None: |
| 15 | + @pytest.mark.parametrize( |
| 16 | + argnames="robust_demo__add_rust_extension", |
| 17 | + argvalues=[False], |
| 18 | + indirect=True, |
| 19 | + ids=["base"] |
| 20 | + ) |
| 21 | + @pytest.mark.parametrize( |
| 22 | + argnames="robust_file__path__relative", |
| 23 | + argvalues=templates_matching(".github/workflows/*[!rust].yml"), |
| 24 | + indirect=True, |
| 25 | + ids=lambda path: path.stem |
| 26 | + ) |
| 27 | + def test_workflow_basic_loading_with_python(self, robust_yaml: dict[str, Any]) -> None: |
| 28 | + assert robust_yaml |
| 29 | + |
| 30 | + @pytest.mark.parametrize( |
| 31 | + argnames="robust_demo__add_rust_extension", |
| 32 | + argvalues=[True], |
| 33 | + indirect=True, |
| 34 | + ids=["maturin"] |
| 35 | + ) |
| 36 | + @pytest.mark.parametrize( |
| 37 | + argnames="robust_file__path__relative", |
| 38 | + argvalues=templates_matching(".github/workflows/*.yml"), |
| 39 | + indirect=True, |
| 40 | + ids=lambda path: path.stem |
| 41 | + ) |
| 42 | + def test_workflow_basic_loading_with_maturin(self, robust_yaml: dict[str, Any]) -> None: |
29 | 43 | assert robust_yaml |
0 commit comments