Ensures that the build directory can be specified CLI :: --overwrite-signature
(capfd, hello_world_f90, monkeypatch)
| 460 | |
| 461 | |
| 462 | def test_overwrite(capfd, hello_world_f90, monkeypatch): |
| 463 | """Ensures that the build directory can be specified |
| 464 | |
| 465 | CLI :: --overwrite-signature |
| 466 | """ |
| 467 | ipath = Path(hello_world_f90) |
| 468 | monkeypatch.setattr( |
| 469 | sys, "argv", |
| 470 | f'f2py -h faker.pyf {ipath} --overwrite-signature'.split()) |
| 471 | |
| 472 | with util.switchdir(ipath.parent): |
| 473 | Path("faker.pyf").write_text("Fake news", encoding="ascii") |
| 474 | f2pycli() |
| 475 | out, _ = capfd.readouterr() |
| 476 | assert "Saving signatures to file" in out |
| 477 | |
| 478 | |
| 479 | def test_latexdoc(capfd, hello_world_f90, monkeypatch): |
nothing calls this directly
no test coverage detected
searching dependent graphs…