mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 20:37:48 +02:00
adding unit tests for missing parameters in main conf file
This commit is contained in:
parent
bb56bdea6f
commit
2c4ce35b52
1 changed files with 8 additions and 0 deletions
|
@ -60,6 +60,14 @@ class TestError(object):
|
||||||
app._set_access_log(cfg, logging.DEBUG)
|
app._set_access_log(cfg, logging.DEBUG)
|
||||||
app._set_access_log(cfg, logging.DEBUG)
|
app._set_access_log(cfg, logging.DEBUG)
|
||||||
|
|
||||||
|
def testMissingParameters(self):
|
||||||
|
app = LdapCherry()
|
||||||
|
try:
|
||||||
|
app.reload({})
|
||||||
|
except SystemExit:
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
raise AssertionError("expected an exception")
|
||||||
|
|
||||||
def testLogger(self):
|
def testLogger(self):
|
||||||
app = LdapCherry()
|
app = LdapCherry()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue