Ensures that the build directory can be specified CLI :: --overwrite-signature
(capfd, hello_world_f90, monkeypatch)
| 438 | |
| 439 | |
| 440 | def test_overwrite(capfd, hello_world_f90, monkeypatch): |
| 441 | """Ensures that the build directory can be specified |
| 442 | |
| 443 | CLI :: --overwrite-signature |
| 444 | """ |
| 445 | ipath = Path(hello_world_f90) |
| 446 | monkeypatch.setattr( |
| 447 | sys, "argv", |
| 448 | f'f2py -h faker.pyf {ipath} --overwrite-signature'.split()) |
| 449 | |
| 450 | with util.switchdir(ipath.parent): |
| 451 | Path("faker.pyf").write_text("Fake news", encoding="ascii") |
| 452 | f2pycli() |
| 453 | out, _ = capfd.readouterr() |
| 454 | assert "Saving signatures to file" in out |
| 455 | |
| 456 | |
| 457 | def test_latexdoc(capfd, hello_world_f90, monkeypatch): |
nothing calls this directly
no test coverage detected