mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-19 13:20:36 +08:00
Return updated config from PATCH requests
This commit is contained in:
parent
c26b0f6961
commit
ae6ae8f7b0
@ -76,7 +76,7 @@ class ConfigHandler(IPythonHandler):
|
||||
with f:
|
||||
json.dump(section, f)
|
||||
|
||||
self.set_status(204)
|
||||
self.finish(json.dumps(section))
|
||||
|
||||
|
||||
# URL to handler mappings
|
||||
|
@ -56,9 +56,6 @@ class APITest(NotebookTestBase):
|
||||
'sub': {'a': 8, 'b': None, 'd': 9},
|
||||
'sub2': {'c': None} # should delete sub2
|
||||
})
|
||||
self.assertEqual(r.status_code, 204)
|
||||
|
||||
r = self.config_api.get('example')
|
||||
self.assertEqual(r.status_code, 200)
|
||||
self.assertEqual(r.json(), {'baz': 75, 'wib': [1,2,3],
|
||||
'sub': {'a': 8, 'd': 9}})
|
||||
|
Loading…
x
Reference in New Issue
Block a user