Skip to content

Commit 4e2cf3f

Browse files
committed
Added atip entry (currently doesnt do much). Fix for test failure caused by deprecated use of mock.called_with
1 parent f70edb3 commit 4e2cf3f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dev = [
4646
]
4747

4848
[project.scripts]
49-
#Do we want an entry into atip as well?
49+
atip = "atip.__main__:main"
5050
virtac = "virtac.__main__:main"
5151

5252
[project.urls]

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)