Checks the generation of files based on a module name CLI :: -m
(capfd, hello_world_f90, monkeypatch)
| 345 | |
| 346 | |
| 347 | def test_mod_gen_f77(capfd, hello_world_f90, monkeypatch): |
| 348 | """Checks the generation of files based on a module name |
| 349 | CLI :: -m |
| 350 | """ |
| 351 | MNAME = "hi" |
| 352 | foutl = get_io_paths(hello_world_f90, mname=MNAME) |
| 353 | ipath = foutl.f90inp |
| 354 | monkeypatch.setattr(sys, "argv", f'f2py {ipath} -m {MNAME}'.split()) |
| 355 | with util.switchdir(ipath.parent): |
| 356 | f2pycli() |
| 357 | |
| 358 | # Always generate C module |
| 359 | assert Path.exists(foutl.cmodf) |
| 360 | # File contains a function, check for F77 wrappers |
| 361 | assert Path.exists(foutl.wrap77) |
| 362 | |
| 363 | |
| 364 | def test_mod_gen_gh25263(capfd, hello_world_f77, monkeypatch): |
nothing calls this directly
no test coverage detected
searching dependent graphs…