From bfbf2c05211d75c8f2287cf53d66dfb6383ee7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Fri, 3 May 2019 16:41:43 +0200 Subject: [PATCH] Dict rewritten as literal --- jupyterhub/tests/mocking.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jupyterhub/tests/mocking.py b/jupyterhub/tests/mocking.py index 9e2a928d..5ac2406d 100644 --- a/jupyterhub/tests/mocking.py +++ b/jupyterhub/tests/mocking.py @@ -166,8 +166,7 @@ class FormSpawner(MockSpawner): options_form = "IMAFORM" def options_from_form(self, form_data): - options = {} - options['notspecified'] = 5 + options = {'notspecified': 5} if 'bounds' in form_data: options['bounds'] = [int(i) for i in form_data['bounds']] if 'energy' in form_data: @@ -379,9 +378,9 @@ class MockHub(JupyterHub): class MockSingleUserServer(SingleUserNotebookApp): """Mock-out problematic parts of single-user server when run in a thread - + Currently: - + - disable signal handler """