sync cleanup
This commit is contained in:
1 parent
263f18a1df
commit
de20ed726f
4 files changed
+2
-43
No files matched your search
@@ -1,27 +0,0 @@
|
||||
import unittest
|
||||
|
||||
import settings
|
||||
from sync.data import scan_subdirs
|
||||
from sync.data.fs import FSProvider
|
||||
|
||||
|
||||
class MyTestCase(unittest.TestCase):
|
||||
def test_document(self):
|
||||
p = FSProvider(settings.dir_documents)
|
||||
|
||||
documents = scan_subdirs(p, '.pdf')
|
||||
# documents = lmap(
|
||||
# lambda document: create_document(p, document),
|
||||
# documents
|
||||
# )
|
||||
|
||||
self.assertEqual(True, True)
|
||||
|
||||
def test_scan(self):
|
||||
p = FSProvider(settings.dir_documents)
|
||||
documents = scan_subdirs(p, '.pdf')
|
||||
self.assertIsInstance(documents, list)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user