Commit 81ef91a9 by willmcgugan

Added sqlitefs to fs.contrib

parent d1849210
......@@ -133,8 +133,7 @@ List contents of [PATH]"""
for line, path in zip(lines, column):
line.append(path)
return '\n'.join(u' '.join(line) for line in lines)
if options.long:
for path in paths:
if path in dirs:
......
......@@ -135,6 +135,9 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
def __str__(self):
return "<OSFS: %s>" % self.root_path
def __repr__(self):
return "<OSFS: %r>" % self.root_path
def __unicode__(self):
return u"<OSFS: %s>" % self.root_path
......
try:
from fs.contrib.sqlitefs import SqliteFS
except ImportError:
SqliteFS = None
from fs.tests import FSTestCases
import unittest
import os
if SqliteFS:
class TestSqliteFS(unittest.TestCase, FSTestCases):
def setUp(self):
self.fs = SqliteFS("sqlitefs.db")
def tearDown(self):
os.remove('sqlitefs.db')
\ No newline at end of file
......@@ -22,7 +22,7 @@ from six import PY3, b
class TestWrapFS(unittest.TestCase, FSTestCases, ThreadingTestCases):
__test__ = False
#__test__ = False
def setUp(self):
self.temp_dir = tempfile.mkdtemp(u"fstest")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment