Skip to content

Commit

Permalink
Remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKarlBauer committed Feb 6, 2023
1 parent 5630842 commit b8c3dc2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test_material.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def test_variants_arguments_steel():
assert np.allclose(getattr(mat, key), val)


def test_reference():
@pytest.fixture()
def reference_coefficients():
return {
"C11_voigt": 15.755, # e11 Pa
"C44_voigt": 5.3184, # e11 Pa
Expand All @@ -86,8 +87,8 @@ def test_reference():


@pytest.mark.filterwarnings("ignore::UserWarning")
def test_reference_values():
inp = test_reference()
def test_reference_values(reference_coefficients):
inp = reference_coefficients
for comb in itertools.combinations(inp.keys(), 2):
print("######################\n", comb)
mat = mechkit.material.Isotropic(**{k: inp[k] for k in comb})
Expand Down

0 comments on commit b8c3dc2

Please sign in to comment.