mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 02:34:31 +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)
|
||||||
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…
Reference in New Issue
Block a user