mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
TEST: Allow greater or equal modified_date on rename.
This commit is contained in:
parent
72aeb78aaf
commit
e8fd4ba9c2
@ -279,7 +279,10 @@ class TestContentsManager(TestCase):
|
||||
new_path = 'renamed.ipynb'
|
||||
cm.rename(path, new_path)
|
||||
renamed = cm.get(new_path)
|
||||
self.assertEqual(renamed['last_modified'], saved['last_modified'])
|
||||
self.assertGreaterEqual(
|
||||
renamed['last_modified'],
|
||||
saved['last_modified'],
|
||||
)
|
||||
|
||||
def test_get(self):
|
||||
cm = self.contents_manager
|
||||
|
Loading…
Reference in New Issue
Block a user