diff --git a/jupyterlab_vre/tests/test_handlers.py b/jupyterlab_vre/tests/test_handlers.py index bfb53c82f..f82cccc55 100644 --- a/jupyterlab_vre/tests/test_handlers.py +++ b/jupyterlab_vre/tests/test_handlers.py @@ -78,3 +78,17 @@ def test_cellshandler_post(self): self.assertNotEqual(response_body, None) + def test_cellshandler_post_deprecated_modules(self): + cell_index = 0 + git_token = 'test_token' + self.add_cell(cell_index=cell_index) + # self.add_git_token(git_token=git_token) + + with mock.patch.object(ExtractorHandler, 'get_secure_cookie') as m: + m.return_value = 'cookie' + payload = {'port': 'port', 'type': 'type'} + response = self.fetch('/cellshandler', method='POST', body=json.dumps(payload)) + + # delete_all_cells() + response_body = json.loads(to_unicode(response.body)) + self.assertNotEqual(response_body, None) \ No newline at end of file