mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
Rename to mocked_app to avoid shadowing app
This commit is contained in:
@@ -52,13 +52,15 @@ def io_loop():
|
|||||||
@fixture(scope='module')
|
@fixture(scope='module')
|
||||||
def app(request):
|
def app(request):
|
||||||
"""Mock a jupyterhub app for testing"""
|
"""Mock a jupyterhub app for testing"""
|
||||||
app = MockHub.instance(log_level=logging.DEBUG)
|
mocked_app = MockHub.instance(log_level=logging.DEBUG)
|
||||||
app.start([])
|
mocked_app.start([])
|
||||||
|
|
||||||
|
|
||||||
def fin():
|
def fin():
|
||||||
MockHub.clear_instance()
|
MockHub.clear_instance()
|
||||||
app.stop()
|
mocked_app.stop()
|
||||||
request.addfinalizer(fin)
|
request.addfinalizer(fin)
|
||||||
return app
|
return mocked_app
|
||||||
|
|
||||||
|
|
||||||
# mock services for testing.
|
# mock services for testing.
|
||||||
|
Reference in New Issue
Block a user