mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Change default value for external users
This commit is contained in:
parent
a7f4ffa7d4
commit
caf5ff1080
9 changed files with 16 additions and 15 deletions
|
@ -134,10 +134,11 @@ class TestConfig:
|
|||
|
||||
def test_internal(self):
|
||||
configuration = config.load()
|
||||
configuration.update({"internal": {"internal_server": "True"}}, "test")
|
||||
configuration.update({"internal": {"internal_server": "True"}}, "test",
|
||||
internal=True)
|
||||
with pytest.raises(Exception) as exc_info:
|
||||
configuration.update({"internal": {"internal_server": "True"}},
|
||||
"test", internal=False)
|
||||
configuration.update(
|
||||
{"internal": {"internal_server": "True"}}, "test")
|
||||
e = exc_info.value
|
||||
assert "Invalid section 'internal'" in str(e)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue