Functions | |
| check (label, ok) | |
Variables | |
| out = tempfile.mkdtemp(prefix="rutherford_e2e_") | |
| C = Cable() | |
| msh = os.path.join(out, "rutherford.msh") | |
| conf = os.path.join(out, "rutherford_topology.conf") | |
| text = open(msh).read() | |
| topo = open(conf).read() | |
End-to-end: the exact config of main.py, then the physical tags and the periodic block of the written mesh are checked. Calls gmsh.
| check | ( | label, | |
| ok ) |
| rutherford.tests.test_e2e.C = Cable() |
| rutherford.tests.test_e2e.conf = os.path.join(out, "rutherford_topology.conf") |
| rutherford.tests.test_e2e.msh = os.path.join(out, "rutherford.msh") |
| rutherford.tests.test_e2e.out = tempfile.mkdtemp(prefix="rutherford_e2e_") |
| rutherford.tests.test_e2e.text = open(msh).read() |
| rutherford.tests.test_e2e.topo = open(conf).read() |