Skip to content

Commit b034fc6

Browse files
committed
fix calls to assert_called_with
it's not `assert ...called_with`
1 parent 3321a50 commit b034fc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,17 @@ def test_reload_hub():
147147
"tljh.systemd.check_service_active"
148148
) as check_active, mock.patch("tljh.config.check_hub_ready") as check_ready:
149149
config.reload_component("hub")
150-
assert restart_service.called_with("jupyterhub")
151-
assert check_active.called_with("jupyterhub")
150+
restart_service.assert_called_with("jupyterhub")
151+
check_active.assert_called_with("jupyterhub")
152152

153153

154154
def test_reload_proxy(tljh_dir):
155155
with mock.patch("tljh.systemd.restart_service") as restart_service, mock.patch(
156156
"tljh.systemd.check_service_active"
157157
) as check_active:
158158
config.reload_component("proxy")
159-
assert restart_service.called_with("traefik")
160-
assert check_active.called_with("traefik")
159+
restart_service.assert_called_with("traefik")
160+
check_active.assert_called_with("traefik")
161161
assert os.path.exists(os.path.join(config.STATE_DIR, "traefik.toml"))
162162

163163

0 commit comments

Comments
 (0)