Skip to content

Commit

Permalink
install package from PyPI and remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheila-nk committed May 10, 2023
1 parent 45fc57d commit 2e40379
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docker
escapism
jupyterhub>=1.0
pytest-jupyterhub @ git+https://github.com/jupyterhub/pytest-jupyterhub.git@main
pytest-jupyterhub
15 changes: 0 additions & 15 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import jupyterhub
import netifaces
import pytest

# from pytest_jupyterhub.jupyterhub_spawners import hub_app
from docker import from_env as docker_from_env
from docker.errors import APIError
from jupyterhub import version_info as jh_version_info
Expand Down Expand Up @@ -58,19 +56,6 @@ def pytest_collection_modifyitems(items):
assert not inspect.isasyncgenfunction(item.obj)


"""
@pytest.fixture
def app(jupyterhub_app):
app = jupyterhub_app
app.config.DockerSpawner.prefix = "dockerspawner-test"
# If it's a prerelease e.g. (2, 0, 0, 'rc4', '') use full tag
if len(jh_version_info) > 3 and jh_version_info[3]:
tag = jupyterhub.__version__
app.config.DockerSpawner.image = f"jupyterhub/singleuser:{tag}"
return app
"""


@pytest.fixture
async def app(hub_app):
config = {"Dockerspawner": {"prefix": "dockerspawner-test"}}
Expand Down

0 comments on commit 2e40379

Please sign in to comment.