|
@@ -22,22 +22,15 @@ from unittest.mock import MagicMock
|
22
|
22
|
|
23
|
23
|
class TestWebdavFactory(StandardTest):
|
24
|
24
|
|
|
25
|
+ config_section = 'webdav_test'
|
|
26
|
+
|
25
|
27
|
def test_unit__initConfig__ok__nominal_case(self):
|
26
|
28
|
"""
|
27
|
29
|
Check if config is correctly modify for wsgidav using mocked
|
28
|
30
|
wsgidav and tracim conf (as dict)
|
29
|
31
|
:return:
|
30
|
32
|
"""
|
31
|
|
- tracim_settings = {
|
32
|
|
- 'website.base_url': 'http://localhost:6543',
|
33
|
|
- 'sqlalchemy.url': 'sqlite:///:memory:',
|
34
|
|
- 'user.auth_token.validity': '604800',
|
35
|
|
- 'depot_storage_dir': '/tmp/test/depot',
|
36
|
|
- 'depot_storage_name': 'test',
|
37
|
|
- 'preview_cache_dir': '/tmp/test/preview_cache',
|
38
|
|
- 'wsgidav.config_path': 'development.ini'
|
39
|
|
-
|
40
|
|
- }
|
|
33
|
+ tracim_settings = self.settings
|
41
|
34
|
wsgidav_setting = DEFAULT_CONFIG.copy()
|
42
|
35
|
wsgidav_setting.update(
|
43
|
36
|
{
|