mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 00:58:31 +02:00
add test that detected file is also copied
This commit is contained in:
parent
da8733883c
commit
cee238b7a5
1 changed files with 3 additions and 4 deletions
|
@ -32,11 +32,10 @@ class TestClasses(unittest.TestCase):
|
||||||
self.assertTrue(os.path.isdir(self.journal.data_path))
|
self.assertTrue(os.path.isdir(self.journal.data_path))
|
||||||
|
|
||||||
def test_file_copied(self):
|
def test_file_copied(self):
|
||||||
self.assertTrue(len(os.list))
|
self.assertEqual(len(os.listdir(self.journal.data_path)), 0)
|
||||||
with open(os.path.join(self.test_data_path, 'url_test.txt')) as f:
|
with open(os.path.join(self.test_data_path, 'url_test.txt')) as f:
|
||||||
journal.new_entry(f.read())
|
self.journal.new_entry(f.read())
|
||||||
# TODO: check that copied file exists
|
self.assertEqual(len(os.listdir(self.journal.data_path)), 1)
|
||||||
|
|
||||||
|
|
||||||
def test_rendering_md(self):
|
def test_rendering_md(self):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue