mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-19 13:20:36 +08:00
Added test for deleting non empty dirs
This commit is contained in:
parent
31a6625e23
commit
d136c12c3b
@ -522,6 +522,12 @@ class APITest(NotebookTestBase):
|
||||
listing = self.api.list('/').json()['content']
|
||||
self.assertEqual(listing, [])
|
||||
|
||||
def test_delete_non_empty_dir(self):
|
||||
# Test that non empty directory can be deleted
|
||||
self.api.delete(u'å b')
|
||||
# Assertion will pass only if self.api.delete does not throw and error
|
||||
assert True
|
||||
|
||||
def test_rename(self):
|
||||
resp = self.api.rename('foo/a.ipynb', 'foo/z.ipynb')
|
||||
self.assertEqual(resp.headers['Location'].split('/')[-1], 'z.ipynb')
|
||||
|
Loading…
x
Reference in New Issue
Block a user