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:
parent
8e3465b5d4
commit
180e96b332
10 changed files with 36 additions and 37 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue