Checks the generation of files based on a module name CLI :: -m
(capfd, hello_world_f90, monkeypatch)
| 323 | |
| 324 | |
| 325 | def test_mod_gen_f77(capfd, hello_world_f90, monkeypatch): |
| 326 | """Checks the generation of files based on a module name |
| 327 | CLI :: -m |
| 328 | """ |
| 329 | MNAME = "hi" |
| 330 | foutl = get_io_paths(hello_world_f90, mname=MNAME) |
| 331 | ipath = foutl.f90inp |
| 332 | monkeypatch.setattr(sys, "argv", f'f2py {ipath} -m {MNAME}'.split()) |
| 333 | with util.switchdir(ipath.parent): |
| 334 | f2pycli() |
| 335 | |
| 336 | # Always generate C module |
| 337 | assert Path.exists(foutl.cmodf) |
| 338 | # File contains a function, check for F77 wrappers |
| 339 | assert Path.exists(foutl.wrap77) |
| 340 | |
| 341 | |
| 342 | def test_mod_gen_gh25263(capfd, hello_world_f77, monkeypatch): |
nothing calls this directly
no test coverage detected