Skip to content

Commit a1c4b1f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 743e53d commit a1c4b1f

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
docker
22
escapism
33
jupyterhub>=1.0
4-
pytest-jupyterhub @ git+https://github.com/jupyterhub/pytest-jupyterhub.git@main
4+
pytest-jupyterhub @ git+https://github.com/jupyterhub/pytest-jupyterhub.git@main

tests/conftest.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import jupyterhub
99
import netifaces
1010
import pytest
11+
1112
# from pytest_jupyterhub.jupyterhub_spawners import hub_app
1213
# from pytest_jupyterhub.jupyterhub_spawners import hub_app
1314
from docker import from_env as docker_from_env
@@ -17,7 +18,6 @@
1718

1819
from dockerspawner import DockerSpawner, SwarmSpawner, SystemUserSpawner
1920

20-
2121
# import base jupyterhub fixtures
2222

2323
# make Hub connectable from docker by default
@@ -74,20 +74,16 @@ def app(jupyterhub_app):
7474
app.config.DockerSpawner.image = f"jupyterhub/singleuser:{tag}"
7575
return app
7676
"""
77-
77+
7878

7979
@pytest.fixture
8080
async def app(hub_app):
81-
config = {
82-
"Dockerspawner": {
83-
"prefix": "dockerspawner-test"
84-
}
85-
}
81+
config = {"Dockerspawner": {"prefix": "dockerspawner-test"}}
8682

8783
if len(jh_version_info) > 3 and jh_version_info[3]:
8884
tag = jupyterhub.__version__
8985
config["Dockerspawner"]["image"] = f"jupyterhub/singleuser:{tag}"
90-
86+
9187
app = await hub_app(config=config)
9288

9389
return app

0 commit comments

Comments
 (0)