Skip to content

Commit

Permalink
test new and updated examples in test_examples()
Browse files Browse the repository at this point in the history
  • Loading branch information
rc committed Mar 23, 2024
1 parent b674099 commit 5c4829b
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions sfepy/tests/test_declarative_examples.py
Expand Up @@ -17,6 +17,7 @@ def inedir(filename):
'diffusion/darcy_flow_multicomp.py',
'diffusion/laplace_1d.py',
'diffusion/laplace_coupling_lcbcs.py',
'diffusion/laplace_fluid_2d.py',
'diffusion/laplace_time_ebcs.py',
'diffusion/poisson.py',
'diffusion/poisson_field_dependent_material.py',
Expand Down Expand Up @@ -44,11 +45,15 @@ def inedir(filename):
'linear_elasticity/linear_elastic_up.py',
'linear_elasticity/linear_viscoelastic.py',
'linear_elasticity/material_nonlinearity.py',
'linear_elasticity/mixed_mesh.py',
'linear_elasticity/modal_analysis_declarative.py',
'linear_elasticity/multi_node_lcbcs.py',
'linear_elasticity/nodal_lcbcs.py',
'linear_elasticity/prestress_fibres.py',
'linear_elasticity/seismic_load.py',
'linear_elasticity/shell10x_cantilever.py',
'linear_elasticity/truss_bridge3d.py',
'linear_elasticity/truss_bridge.py',
'linear_elasticity/two_bodies_contact.py',
'linear_elasticity/wedge_mesh.py',
'multi_physics/biot.py',
Expand Down Expand Up @@ -83,18 +88,6 @@ def inedir(filename):
'navier_stokes/navier_stokes2d_iga.py',
])

try:
import primme

except ImportError:
pass

else:
examples.extend([
'linear_elasticity/modal_analysis_declarative.py',
])


@pytest.mark.parametrize('ex_filename', examples)
def test_examples(ex_filename, output_dir):
conditions = run_declaratice_example(
Expand Down

0 comments on commit 5c4829b

Please sign in to comment.