bug fix test: there is bug in fixture
@@ -24,7 +24,7 @@ class BaseClass:
self.poisson_ratio = 0.5
-@pytest.fixture(scope="function")
+@pytest.fixture # (scope="function")
def constructor(n_elem, nu=0.0):
cls = BaseClass(n_elem, nu)
@@ -43,7 +43,7 @@ def constructor(n_elem, nu=0.0):
return cls, rod
-@pytest.fixture(scope="function")
+@pytest.fixture # (scope="function")
def compute_geometry_analytically(n_elem):
initial = BaseClass(n_elem)
@@ -64,7 +64,7 @@ def compute_geometry_analytically(n_elem):
return position, rest_lengths, tangents, radius
-@pytest.fixture(scope="function")
+@pytest.fixture # (scope="function")
def compute_all_dilatations_analytically(n_elem, dilatation):
initial = BaseClass(n_elem)
@@ -90,7 +90,7 @@ def compute_all_dilatations_analytically(n_elem, dilatation):
)
-@pytest.fixture(scope="function")
+@pytest.fixture # (scope="function")
def compute_dilatation_rate_analytically(n_elem, dilatation):
position, rest_lengths, tangents, radius = compute_geometry_analytically(n_elem)
@@ -111,7 +111,7 @@ def compute_dilatation_rate_analytically(n_elem, dilatation):
return dilatation_rate, velocity
-@pytest.fixture(scope="function")
+@pytest.fixture # (scope="function")
def compute_strain_analytically(n_elem, dilatation):
position, rest_lengths, tangents, radius = compute_geometry_analytically(n_elem)
(
@@ -127,7 +127,7 @@ def compute_strain_analytically(n_elem, dilatation):
return strain
-@pytest.fixture(scope="function")
+@pytest.fixture # (scope="function")
def compute_stress_analytically(n_elem, dilatation):
initial = BaseClass(n_elem)
strain = compute_strain_analytically(n_elem, dilatation)
@@ -138,7 +138,7 @@ def compute_stress_analytically(n_elem, dilatation):
return stress
-@pytest.fixture(scope="function")
+@pytest.fixture # (scope="function")
def compute_forces_analytically(n_elem, dilatation):
internal_stress = compute_stress_analytically(n_elem, dilatation)
# Internal forces in between elements have to be zero, because
