mirror of
https://github.com/kakwa/ldapcherry
synced 2024-12-26 14:50:03 +01:00
adding unit tests for missing parameters in main conf file
This commit is contained in:
parent
bb56bdea6f
commit
2c4ce35b52
@ -60,6 +60,14 @@ class TestError(object):
|
||||
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):
|
||||
app = LdapCherry()
|
||||
|
Loading…
x
Reference in New Issue
Block a user