Make common methods threading safe. pytest enhancements
[osm/common.git] / osm_common / tests / test_fslocal.py
index 3a2bbb4..86b0491 100644 (file)
@@ -22,9 +22,9 @@ def invalid_path():
     return '/#tweeter/'
 
 
-@pytest.fixture
-def fs_local():
-    fs = FsLocal()
+@pytest.fixture(scope="function", params=[True, False])
+def fs_local(request):
+    fs = FsLocal(lock=request.param)
     fs.fs_connect({'path': valid_path()})
     return fs