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')
|
||||
def app(request):
|
||||
"""Mock a jupyterhub app for testing"""
|
||||
app = MockHub.instance(log_level=logging.DEBUG)
|
||||
app.start([])
|
||||
mocked_app = MockHub.instance(log_level=logging.DEBUG)
|
||||
mocked_app.start([])
|
||||
|
||||
|
||||
def fin():
|
||||
MockHub.clear_instance()
|
||||
app.stop()
|
||||
mocked_app.stop()
|
||||
request.addfinalizer(fin)
|
||||
return app
|
||||
return mocked_app
|
||||
|
||||
|
||||
# mock services for testing.
|
||||
|
Reference in New Issue
Block a user