Skip to content

Commit 4d66c6b

Browse files
committed
ci: only import what we need from jupyterhub's conftest.py file
1 parent c152988 commit 4d66c6b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

batchspawner/tests/conftest.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
"""py.test fixtures imported from Jupyterhub testing"""
1+
"""Relevant pytest fixtures are re-used from JupyterHub's test suite"""
22

3-
from jupyterhub.tests.conftest import *
3+
# We only use "db" and "io_loop", but we also need event_loop which is used by
4+
# io_loop to be available with jupyterhub 1+.
5+
from jupyterhub.tests.conftest import db, io_loop
6+
7+
try:
8+
from jupyterhub.tests.conftest import event_loop
9+
except:
10+
pass

0 commit comments

Comments
 (0)