File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,17 +147,17 @@ def test_reload_hub():
147
147
"tljh.systemd.check_service_active"
148
148
) as check_active , mock .patch ("tljh.config.check_hub_ready" ) as check_ready :
149
149
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" )
152
152
153
153
154
154
def test_reload_proxy (tljh_dir ):
155
155
with mock .patch ("tljh.systemd.restart_service" ) as restart_service , mock .patch (
156
156
"tljh.systemd.check_service_active"
157
157
) as check_active :
158
158
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" )
161
161
assert os .path .exists (os .path .join (config .STATE_DIR , "traefik.toml" ))
162
162
163
163
You can’t perform that action at this time.
0 commit comments