Return updated config from PATCH requests

This commit is contained in:
Thomas Kluyver 2014-10-27 16:32:55 -07:00
parent c26b0f6961
commit ae6ae8f7b0
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -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}})