mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed test to match new output.
This commit is contained in:
parent
5ddd26cc69
commit
fa5ac0a885
@ -124,7 +124,7 @@ class Todo(callbacks.Privmsg):
|
|||||||
priority = ", priority: %s" % pri
|
priority = ", priority: %s" % pri
|
||||||
added_time = time.strftime(conf.humanTimestampFormat,
|
added_time = time.strftime(conf.humanTimestampFormat,
|
||||||
time.localtime(int(added_at)))
|
time.localtime(int(added_at)))
|
||||||
s = "%s%s (Added at: %s)" % (task, priority, added_time)
|
s = "%s%s (Added at %s)" % (task, priority, added_time)
|
||||||
irc.reply(msg, s)
|
irc.reply(msg, s)
|
||||||
else:
|
else:
|
||||||
cursor = self.db.cursor()
|
cursor = self.db.cursor()
|
||||||
|
@ -86,7 +86,7 @@ if sqlite is not None:
|
|||||||
self.assertRegexp('todo 1', 'moo, priority: 50 \(Added '
|
self.assertRegexp('todo 1', 'moo, priority: 50 \(Added '
|
||||||
'at: .*?\)')
|
'at: .*?\)')
|
||||||
self.assertNotError('setpriority 1 0')
|
self.assertNotError('setpriority 1 0')
|
||||||
self.assertRegexp('todo 1', 'moo \(Added at: .*?\)')
|
self.assertRegexp('todo 1', 'moo \(Added at .*?\)')
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user