Skip to content

Commit

Permalink
fix #76
Browse files Browse the repository at this point in the history
  • Loading branch information
skoulouzis committed Mar 22, 2022
1 parent 4fd7776 commit 21444b5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions jupyterlab_vre/tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 21444b5

Please sign in to comment.