test_examples module
Contents
test_examples module¶
Module to perform tests for all example cases.
This file is executed by pytest
to have good CI.
- class test_examples.TestExamples[source]¶
Bases:
object
Class to bundle all examples tests.
All tests are compared against reference errors.
- solver_path = 'fenicsR13'¶
- run_solver(inputfile, working_dir_)[source]¶
Run the solver as subprocess with the given input file.
Test fails if subprocess return Exception or error.
- create_meshes(working_dir_)[source]¶
Create the test meshes. Executed before any test of the class.
Often not needed if meshes are in Git through LFS for reproducability.
- test_channel_flow_pressure()[source]¶
Test the pressure-induced channel flow case and generate table with Kn vs. massflow.