Skip to content

Commit b91bb75

Browse files
committed
Fixed mock issue in python3.12
Fixed issue causing test failure due to deprecation in python3.12
1 parent a48b3a3 commit b91bb75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_lattice_data_source.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ def test_lat_get_value():
115115
atlds = atip.sim_data_sources.ATLatticeDataSource(atsim)
116116
assert atlds.get_value("dispersion") == 2.5
117117
atlds.get_value("x")
118-
assert atsim.get_orbit.called_with("x")
118+
atsim.get_orbit.assert_called_with("x")
119119
atlds.get_value("phase_x")
120-
assert atsim.get_orbit.called_with("px")
120+
atsim.get_orbit.assert_called_with("px")
121121
atlds.get_value("y")
122-
assert atsim.get_orbit.called_with("y")
122+
atsim.get_orbit.assert_called_with("y")
123123
atlds.get_value("phase_y")
124-
assert atsim.get_orbit.called_with("py")
124+
atsim.get_orbit.assert_called_with("py")
125125

126126

127127
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)