Skip to content

Commit 1f4ef5c

Browse files
committed
tests: update test_elasticity_pde method names
1 parent 2690073 commit 1f4ef5c

3 files changed

Lines changed: 29 additions & 28 deletions

File tree

pytential/symbolic/elasticity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ class ElasticityDoubleLayerWrapperYoshida(ElasticityDoubleLayerWrapperBase):
549549
def __post_init__(self):
550550
if not self.dim == 3:
551551
raise ValueError("unsupported dimension given to "
552-
"ElasticityDoubleLayerWrapperYoshida: {self.dim}")
552+
f"ElasticityDoubleLayerWrapperYoshida: {self.dim}")
553553

554554
@cached_property
555555
def laplace_kernel(self):

pytential/symbolic/stokes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from typing import Optional
3030

3131
import numpy as np
32+
from pytools import MovedFunctionDeprecationWrapper
3233
from sumpy.kernel import (AxisSourceDerivative, AxisTargetDerivative,
3334
BiharmonicKernel, LaplaceKernel,
3435
TargetPointMultiplier)
@@ -529,8 +530,8 @@ def make_stresslet_wrapper(
529530
"Needs to be one of naive, laplace, biharmonic")
530531

531532

532-
StokesletWrapper = make_stokeslet_wrapper
533-
StressletWrapper = make_stresslet_wrapper
533+
StokesletWrapper = MovedFunctionDeprecationWrapper(make_stokeslet_wrapper)
534+
StressletWrapper = MovedFunctionDeprecationWrapper(make_stresslet_wrapper)
534535

535536
# }}}
536537

test/test_stokes.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def run_exterior_stokes(actx_factory, *,
199199
# Use the naive method here as biharmonic requires source derivatives
200200
# of point_source
201201
sym_source_pot = make_elasticity_wrapper(ambient_dim, mu=sym_mu,
202-
nu=sym_nu, method=Method.naive).apply(sym_sigma, qbx_forced_limit=None)
202+
nu=sym_nu, method=Method.Naive).apply(sym_sigma, qbx_forced_limit=None)
203203

204204
# }}}
205205

@@ -733,36 +733,36 @@ def apply_pde_using_calculus_patch(self, cp, potential):
733733

734734
@pytest.mark.parametrize("dim, method, nu, is_double_layer", [
735735
# Single layer
736-
pytest.param(2, "biharmonic", 0.4, False),
737-
pytest.param(2, "biharmonic", 0.5, False),
738-
pytest.param(2, "laplace", 0.5, False),
739-
pytest.param(3, "laplace", 0.5, False),
740-
pytest.param(3, "laplace", 0.4, False),
741-
pytest.param(2, "naive", 0.4, False, marks=pytest.mark.slowtest),
742-
pytest.param(3, "naive", 0.4, False, marks=pytest.mark.slowtest),
743-
pytest.param(2, "naive", 0.5, False, marks=pytest.mark.slowtest),
744-
pytest.param(3, "naive", 0.5, False, marks=pytest.mark.slowtest),
736+
pytest.param(2, "Biharmonic", 0.4, False),
737+
pytest.param(2, "Biharmonic", 0.5, False),
738+
pytest.param(2, "Laplace", 0.5, False),
739+
pytest.param(3, "Laplace", 0.5, False),
740+
pytest.param(3, "Laplace", 0.4, False),
741+
pytest.param(2, "Naive", 0.4, False, marks=pytest.mark.slowtest),
742+
pytest.param(3, "Naive", 0.4, False, marks=pytest.mark.slowtest),
743+
pytest.param(2, "Naive", 0.5, False, marks=pytest.mark.slowtest),
744+
pytest.param(3, "Naive", 0.5, False, marks=pytest.mark.slowtest),
745745
# FIXME: re-enable when merge_int_g_exprs is in
746-
pytest.param(3, "biharmonic", 0.4, False, marks=pytest.mark.skip),
747-
pytest.param(3, "biharmonic", 0.5, False, marks=pytest.mark.skip),
746+
pytest.param(3, "Biharmonic", 0.4, False, marks=pytest.mark.skip),
747+
pytest.param(3, "Biharmonic", 0.5, False, marks=pytest.mark.skip),
748748
# FIXME: re-enable when StokesletWrapperYoshida is implemented for 2D
749-
pytest.param(2, "laplace", 0.4, False, marks=pytest.mark.xfail),
749+
pytest.param(2, "Laplace", 0.4, False, marks=pytest.mark.xfail),
750750
751751
# Double layer
752-
pytest.param(2, "laplace", 0.5, True),
753-
pytest.param(3, "laplace", 0.5, True),
754-
pytest.param(3, "laplace", 0.4, True),
755-
pytest.param(2, "naive", 0.4, True, marks=pytest.mark.slowtest),
756-
pytest.param(3, "naive", 0.4, True, marks=pytest.mark.slowtest),
757-
pytest.param(2, "naive", 0.5, True, marks=pytest.mark.slowtest),
758-
pytest.param(3, "naive", 0.5, True, marks=pytest.mark.slowtest),
752+
pytest.param(2, "Laplace", 0.5, True),
753+
pytest.param(3, "Laplace", 0.5, True),
754+
pytest.param(3, "Laplace", 0.4, True),
755+
pytest.param(2, "Naive", 0.4, True, marks=pytest.mark.slowtest),
756+
pytest.param(3, "Naive", 0.4, True, marks=pytest.mark.slowtest),
757+
pytest.param(2, "Naive", 0.5, True, marks=pytest.mark.slowtest),
758+
pytest.param(3, "Naive", 0.5, True, marks=pytest.mark.slowtest),
759759
# FIXME: re-enable when merge_int_g_exprs is in
760-
pytest.param(2, "biharmonic", 0.4, True, marks=pytest.mark.skip),
761-
pytest.param(2, "biharmonic", 0.5, True, marks=pytest.mark.skip),
762-
pytest.param(3, "biharmonic", 0.4, True, marks=pytest.mark.skip),
763-
pytest.param(3, "biharmonic", 0.5, True, marks=pytest.mark.skip),
760+
pytest.param(2, "Biharmonic", 0.4, True, marks=pytest.mark.skip),
761+
pytest.param(2, "Biharmonic", 0.5, True, marks=pytest.mark.skip),
762+
pytest.param(3, "Biharmonic", 0.4, True, marks=pytest.mark.skip),
763+
pytest.param(3, "Biharmonic", 0.5, True, marks=pytest.mark.skip),
764764
# FIXME: re-enable when StressletWrapperYoshida is implemented for 2D
765-
pytest.param(2, "laplace", 0.4, True, marks=pytest.mark.xfail),
765+
pytest.param(2, "Laplace", 0.4, True, marks=pytest.mark.xfail),
766766
])
767767
def test_elasticity_pde(actx_factory, dim, method, nu, is_double_layer,
768768
visualize=False):

0 commit comments

Comments
 (0)