@@ -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