Skip to content
Snippets Groups Projects
Unverified Commit 81e418a4 authored by Lars Bilke's avatar Lars Bilke
Browse files

Apply 4 suggestion(s) to 2 file(s)

parent cfa16f4f
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ def test_gmsh2ogs_extract_boundary(tmp_path, mesh, gmsh2_physical_id):
)
== 0
)
if x in [1, 2]: # inner boundarie
if x in [1, 2]: # inner boundaries
assert (
cli.vtkdiff(
f"{tmp_path}/A2_{x}.vtu",
......@@ -65,7 +65,7 @@ def test_gmsh2ogs_extract_boundary(tmp_path, mesh, gmsh2_physical_id):
== 0
)
if x in [0, 3, 4, 5, 6, 7]: # outer boundarie
if x in [0, 3, 4, 5, 6, 7]: # outer boundaries
assert (
cli.vtkdiff(
f"{tmp_path}/A2_{x}.vtu",
......
......@@ -21,12 +21,12 @@ There are two ways to build OGS with Python bindings:
To run the Python-based tests:
- Source `build-dir/.envrc` (activates the virtual environment and sets `OGS_USE_PATH` environment variable)
- Source `build-dir/.envrc` (i.e., run `source build-dir/.envrc` in your terminal. This activates the virtual environment and sets `OGS_USE_PATH` environment variable).
- Run e.g. `pytest` from inside the source directory. On Windows run `Invoke-Expression build-dir/.envrc.ps1` in your PowerShell.
- Run e.g. `pytest` from inside the source directory or `pytest ../path/to/source/dir`.
- Alternatively you can also run the Python-based with `ctest`, e.g. `ctest -R pytest`.
If you make modifications on the C++ side you need to run `make` or `ninja` in the build directory again. If you make modifications on the Python bindings you need to run `cmake .` again in the build directory. Modifications on the Python tests are immediately available to `pytest`.
If you make modifications on the C++ side you need to run `make` or `ninja` in the build directory again. If you modify Python code you need to run `cmake .` again in the build directory. Modifications on the Python tests are immediately available to `pytest`.
To get the output of a specific test:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment