1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Move internal options to other sections

This commit is contained in:
Unrud 2020-02-19 09:50:36 +01:00
parent 8e3465b5d4
commit 180e96b332
10 changed files with 36 additions and 37 deletions

View file

@ -131,15 +131,15 @@ class TestConfig:
assert "section 'server" in str(e)
assert "'x'" in str(e)
def test_internal(self):
def test_privileged(self):
configuration = config.load()
configuration.update({"_internal": {"internal_server": "True"}},
configuration.update({"server": {"_internal_server": "True"}},
"test", privileged=True)
with pytest.raises(Exception) as exc_info:
configuration.update(
{"_internal": {"internal_server": "True"}}, "test")
{"server": {"_internal_server": "True"}}, "test")
e = exc_info.value
assert "Invalid section '_internal'" in str(e)
assert "Invalid option '_internal_server'" in str(e)
def test_plugin_schema(self):
plugin_schema = {"auth": {"new_option": {"value": "False",