1.1 --- a/tests/list_table.py Tue Oct 17 17:16:36 2017 +0200
1.2 +++ b/tests/list_table.py Tue Oct 17 22:24:09 2017 +0200
1.3 @@ -60,6 +60,9 @@
1.4
1.5 if table == "entries":
1.6 group = args[0]
1.7 + if not journal:
1.8 + print >>sys.stderr, "Journal not present."
1.9 + sys.exit(1)
1.10 data = journal.get_entries(user, group)
1.11 show_periods(data)
1.12
1.13 @@ -87,6 +90,9 @@
1.14 show_tuples(data)
1.15
1.16 elif table == "journal_freebusy_providers":
1.17 + if not journal:
1.18 + print >>sys.stderr, "Journal not present."
1.19 + sys.exit(1)
1.20 data = journal.get_freebusy_providers(user)
1.21 show_tuples(data)
1.22
1.23 @@ -105,6 +111,9 @@
1.24
1.25 elif table == "journal_object":
1.26 uid = args[0]
1.27 + if not journal:
1.28 + print >>sys.stderr, "Journal not present."
1.29 + sys.exit(1)
1.30 obj = journal.get_event(user, uid)
1.31 show_object(obj)
1.32