mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-28 19:40:54 +00:00
Allow attach custom storage backend
This commit is contained in:
parent
a91a7790c5
commit
3b0328ca1e
6 changed files with 66 additions and 6 deletions
|
@ -25,6 +25,7 @@ from . import (FileSystem, MultiFileSystem, DataBaseSystem,
|
|||
GitFileSystem, GitMultiFileSystem)
|
||||
from .helpers import get_file_content
|
||||
import sys
|
||||
from tests import CustomStorageSystem
|
||||
|
||||
|
||||
class BaseRequests(object):
|
||||
|
@ -83,7 +84,7 @@ class BaseRequests(object):
|
|||
|
||||
# Generate classes with different configs
|
||||
cl_list = [FileSystem, MultiFileSystem, DataBaseSystem,
|
||||
GitFileSystem, GitMultiFileSystem]
|
||||
GitFileSystem, GitMultiFileSystem, CustomStorageSystem]
|
||||
for cl in cl_list:
|
||||
classname = "Test%s" % cl.__name__
|
||||
setattr(sys.modules[__name__],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue