1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Mark internal configuration options and sections with underscore

This commit is contained in:
Unrud 2020-02-19 09:50:27 +01:00
parent 0bda1f4c16
commit 5371be2b39
12 changed files with 58 additions and 63 deletions

View file

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