From 7aeef0bd570be939861e0d2eca0f4f0721a272e2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 23:26:01 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_elements.py | 4 ++-- tests/test_fea2d.py | 10 +++++----- tests/test_primitives.py | 2 +- tests/test_solvers.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/test_elements.py b/tests/test_elements.py index b4a77a8..0d71e12 100644 --- a/tests/test_elements.py +++ b/tests/test_elements.py @@ -5,7 +5,7 @@ class TestQ4ElementK: - @pytest.fixture() + @pytest.fixture def q4element_k_instance(self): return Q4Element_K(e=1.0, nu=1 / 3, dx=0.5, dy=0.5) @@ -16,7 +16,7 @@ def test_element(self, q4element_k_instance): class TestQ4ElementT: - @pytest.fixture() + @pytest.fixture def q4element_t_instance(self): return Q4Element_T(k=1.0, dx=0.5, dy=0.5) diff --git a/tests/test_fea2d.py b/tests/test_fea2d.py index 22eeac9..4eeb2da 100644 --- a/tests/test_fea2d.py +++ b/tests/test_fea2d.py @@ -5,20 +5,20 @@ from tofea.fea2d import FEA2D_K, FEA2D_T -@pytest.fixture() +@pytest.fixture def rng(): seed = 36523523 return np.random.default_rng(seed) class TestFEA2DK: - @pytest.fixture() + @pytest.fixture def fea2d_k_instance(self): fixed = np.zeros((5, 5, 2), dtype=bool) fixed[0] = 1 return FEA2D_K(fixed) - @pytest.fixture() + @pytest.fixture def x_and_b(self, fea2d_k_instance, rng): x = rng.random(fea2d_k_instance.shape) b = rng.random(fea2d_k_instance.fixed.shape) @@ -68,13 +68,13 @@ def test_compliance_grads(self, fea2d_k_instance, x_and_b, rng): class TestFEA2DT: - @pytest.fixture() + @pytest.fixture def fea2d_t_instance(self): fixed = np.zeros((5, 5), dtype=bool) fixed[0, 0] = 1 return FEA2D_T(fixed) - @pytest.fixture() + @pytest.fixture def x_and_b(self, fea2d_t_instance, rng): x = rng.random(fea2d_t_instance.shape) b = rng.random(fea2d_t_instance.fixed.shape) diff --git a/tests/test_primitives.py b/tests/test_primitives.py index 54774c0..b494c54 100644 --- a/tests/test_primitives.py +++ b/tests/test_primitives.py @@ -7,7 +7,7 @@ from tofea.solvers import get_solver -@pytest.fixture() +@pytest.fixture def rng(): seed = 36523525 return np.random.default_rng(seed) diff --git a/tests/test_solvers.py b/tests/test_solvers.py index 60e864a..8d96253 100644 --- a/tests/test_solvers.py +++ b/tests/test_solvers.py @@ -8,7 +8,7 @@ from tofea.solvers import get_solver -@pytest.fixture() +@pytest.fixture def rng(): seed = 36523525 return np.random.default_rng(seed)