Skip to content

Commit 5b02a6b

Browse files
committed
Update tests
1 parent a886400 commit 5b02a6b

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

tests/test_operator.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,11 @@ def test_inputs_outputs_scopings_container(allkindofcomplexity):
556556
assert scop.location == dpf.core.locations.elemental
557557

558558
stress = model.results.stress()
559-
stress.inputs.connect(op.outputs)
559+
with (
560+
pytest.warns(match="Pin connection is ambiguous"),
561+
pytest.warns(DeprecationWarning, match="Use explicit"),
562+
):
563+
stress.inputs.connect(op.outputs)
560564
fc = stress.outputs.fields_container()
561565
assert fc.labels == ["elshape", "time"]
562566
assert len(fc) == 4
@@ -589,8 +593,17 @@ def test_inputs_outputs_meshes_container(allkindofcomplexity):
589593
sc = opsc.outputs.mesh_scoping()
590594

591595
stress = model.results.stress()
592-
stress.inputs.connect(op.outputs)
593-
stress.inputs.connect(opsc.outputs)
596+
with (
597+
pytest.warns(match="Pin connection is ambiguous"),
598+
pytest.warns(DeprecationWarning, match="Use explicit"),
599+
):
600+
stress.inputs.connect(op.outputs)
601+
602+
with (
603+
pytest.warns(match="Pin connection is ambiguous"),
604+
pytest.warns(DeprecationWarning, match="Use explicit"),
605+
):
606+
stress.inputs.connect(opsc.outputs)
594607
fc = stress.outputs.fields_container()
595608
assert fc.labels == ["body", "elshape", "time"]
596609
assert len(fc) == 4

0 commit comments

Comments
 (0)