Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
tests: Attempt to pacify pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Sep 10, 2019
1 parent 490e6b9 commit 3cd539f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/unit/test_edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
x = sympy.symbols('x')


@pytest.mark.parametrize("degree", range(0, 7))
@pytest.mark.parametrize("degree", list(range(0, 7)))
def test_gll_edge_basis_values(degree):
"""Ensure that edge elements are histopolatory"""

Expand All @@ -47,7 +47,7 @@ def test_gll_edge_basis_values(degree):
assert(math.isclose(int_sub, 0., abs_tol=1e-9))


@pytest.mark.parametrize("degree", range(2, 7))
@pytest.mark.parametrize("degree", list(range(2, 7)))
def test_egl_edge_basis_values(degree):
"""Ensure that edge elements are histopolatory"""

Expand Down
8 changes: 4 additions & 4 deletions test/unit/test_extended_gauss_legendre.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from FIAT.reference_element import UFCInterval


@pytest.mark.parametrize("degree", range(2, 7))
@pytest.mark.parametrize("degree", list(range(2, 7)))
def test_egl_basis_values(degree):
"""Ensure that integrating a simple monomial produces the expected results."""
from FIAT import ufc_simplex, ExtendedGaussLegendre, make_quadrature
Expand All @@ -44,9 +44,9 @@ def test_egl_basis_values(degree):
assert np.allclose(integral, reference, rtol=1e-14)


@pytest.mark.parametrize(("points, degree"), ((p, d)
for p in range(3, 10)
for d in range(2*p - 7)))
@pytest.mark.parametrize(("points, degree"), list((p, d)
for p in range(3, 10)
for d in range(2*p - 7)))
def test_extended_gauss_legendre_quadrature(points, degree):
"""Check that the quadrature rules correctly integrate all the right
polynomial degrees."""
Expand Down

0 comments on commit 3cd539f

Please sign in to comment.