@@ -561,15 +561,15 @@ def test_BeamLine_with_string_references():
561561 assert beamline .name == "fodo_cell"
562562 assert len (beamline .line ) == 3
563563
564- # First element should be an ElementReference that behaves like the string "drift1"
565- assert isinstance (beamline .line [0 ], pals .ElementReference )
564+ # First element should be an PlaceholderName that behaves like the string "drift1"
565+ assert isinstance (beamline .line [0 ], pals .PlaceholderName )
566566 assert beamline .line [0 ] == "drift1"
567567 assert beamline .line [0 ].name == "drift1"
568568 assert beamline .line [0 ].element is None # Not yet resolved
569569 assert not beamline .line [0 ].is_resolved ()
570570
571- # Second element should be an ElementReference that behaves like the string "quad1"
572- assert isinstance (beamline .line [1 ], pals .ElementReference )
571+ # Second element should be an PlaceholderName that behaves like the string "quad1"
572+ assert isinstance (beamline .line [1 ], pals .PlaceholderName )
573573 assert beamline .line [1 ] == "quad1"
574574 assert beamline .line [1 ].name == "quad1"
575575 assert beamline .line [1 ].element is None # Not yet resolved
@@ -588,17 +588,17 @@ def test_BeamLine_with_string_references():
588588 assert beamline .line [0 ].element .length == 1.0
589589
590590
591- def test_ElementReference_direct ():
592- """Test ElementReference creation and behavior directly"""
591+ def test_PlaceholderName_direct ():
592+ """Test PlaceholderName creation and behavior directly"""
593593 # Test creation with positional argument
594- ref1 = pals .ElementReference ("test_element" )
594+ ref1 = pals .PlaceholderName ("test_element" )
595595 assert ref1 .name == "test_element"
596596 assert str (ref1 ) == "test_element"
597597 assert ref1 == "test_element"
598598 assert not ref1 .is_resolved ()
599599
600600 # Test creation with keyword argument
601- ref2 = pals .ElementReference (name = "another_element" )
601+ ref2 = pals .PlaceholderName (name = "another_element" )
602602 assert ref2 .name == "another_element"
603603 assert str (ref2 ) == "another_element"
604604 assert ref2 == "another_element"
0 commit comments