Skip to content

Commit 0de2db3

Browse files
committed
pre-commit: run hooks
1 parent 436c81f commit 0de2db3

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/integration-test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
TEST_IMAGE_NAME = "test-systemd"
1111

1212

13-
@functools.lru_cache()
13+
@functools.lru_cache
1414
def _get_container_runtime_cli():
1515
runtimes = ["docker", "podman"]
1616
for runtime in runtimes:

integration-tests/test_extensions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def test_labextensions():
2929
# jupyter-labextension writes to stdout and stderr weirdly
3030
proc = subprocess.run(
3131
["/opt/tljh/user/bin/jupyter-labextension", "list"],
32-
stderr=subprocess.PIPE,
33-
stdout=subprocess.PIPE,
32+
capture_output=True,
3433
)
3534

3635
extensions = [

tests/test_config.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,21 @@ def test_remove_from_config_error():
143143

144144

145145
def test_reload_hub():
146-
with mock.patch("tljh.systemd.restart_service") as restart_service, mock.patch(
147-
"tljh.systemd.check_service_active"
148-
) as check_active, mock.patch("tljh.config.check_hub_ready") as check_ready:
146+
with (
147+
mock.patch("tljh.systemd.restart_service") as restart_service,
148+
mock.patch("tljh.systemd.check_service_active") as check_active,
149+
mock.patch("tljh.config.check_hub_ready") as check_ready,
150+
):
149151
config.reload_component("hub")
150152
restart_service.assert_called_with("jupyterhub")
151153
check_active.assert_called_with("jupyterhub")
152154

153155

154156
def test_reload_proxy(tljh_dir):
155-
with mock.patch("tljh.systemd.restart_service") as restart_service, mock.patch(
156-
"tljh.systemd.check_service_active"
157-
) as check_active:
157+
with (
158+
mock.patch("tljh.systemd.restart_service") as restart_service,
159+
mock.patch("tljh.systemd.check_service_active") as check_active,
160+
):
158161
config.reload_component("proxy")
159162
restart_service.assert_called_with("traefik")
160163
check_active.assert_called_with("traefik")

0 commit comments

Comments
 (0)