(tmp_path_factory: pytest.TempPathFactory)
| 22 | |
| 23 | |
| 24 | def test_invalid_value(tmp_path_factory: pytest.TempPathFactory) -> None: |
| 25 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst")) |
| 26 | |
| 27 | build_file_tree( |
| 28 | { |
| 29 | (src / "copier.yaml"): ( |
| 30 | """\ |
| 31 | _envops: |
| 32 | undefined: jinja2.ChainableUndefined |
| 33 | """ |
| 34 | ), |
| 35 | } |
| 36 | ) |
| 37 | |
| 38 | with pytest.raises( |
| 39 | ConfigFileError, |
| 40 | match="Unsupported envops.undefined value specified: jinja2.ChainableUndefined.", |
| 41 | ): |
| 42 | copier.run_copy(str(src), dst) |
| 43 | |
| 44 | |
| 45 | def test_undefined(tmp_path_factory: pytest.TempPathFactory) -> None: |
nothing calls this directly
no test coverage detected