Added cron field to database
This commit is contained in:
@@ -38,3 +38,12 @@ def test_check_if_admin_data_exists():
|
||||
assert check_if_admin_data_exists(dict(admin=True)) is True
|
||||
assert check_if_admin_data_exists(dict(admin=None)) is False
|
||||
assert check_if_admin_data_exists(dict()) is False
|
||||
|
||||
|
||||
def test_check_if_cron_data_exists():
|
||||
"""
|
||||
Test check_if_cron_data_exists function
|
||||
"""
|
||||
assert check_if_cron_data_exists(dict(cron="* * * * *")) is True
|
||||
assert check_if_cron_data_exists(dict(cron="")) is False
|
||||
assert check_if_cron_data_exists(dict()) is False
|
||||
|
Reference in New Issue
Block a user