Generates a single f90 file for testing
(tmpdir_factory)
| 100 | |
| 101 | @pytest.fixture(scope="session") |
| 102 | def f2cmap_f90(tmpdir_factory): |
| 103 | """Generates a single f90 file for testing""" |
| 104 | fdat = util.getpath("tests", "src", "f2cmap", "isoFortranEnvMap.f90").read_text() |
| 105 | f2cmap = util.getpath("tests", "src", "f2cmap", ".f2py_f2cmap").read_text() |
| 106 | fn = tmpdir_factory.getbasetemp() / "f2cmap.f90" |
| 107 | fmap = tmpdir_factory.getbasetemp() / "mapfile" |
| 108 | fn.write_text(fdat, encoding="ascii") |
| 109 | fmap.write_text(f2cmap, encoding="ascii") |
| 110 | return fn |
| 111 | |
| 112 | |
| 113 | def test_gh22819_cli(capfd, gh22819_cli, monkeypatch): |
nothing calls this directly
no test coverage detected