]> git.ozlabs.org Git - patchwork/commit
test_notifications: Fix testNotificationUpdated timestamp comparison
authorDamien Lespiau <damien.lespiau@intel.com>
Sat, 8 Nov 2014 13:25:58 +0000 (13:25 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 10 Nov 2014 12:27:28 +0000 (20:27 +0800)
commit8904a7dcaf959da8db4a9a5d92b91a61eed05201
tree3a06642d069587ccc841d10e2f024e777d173278
parenta5d803a565aea5b655058ff244e9ae8356004963
test_notifications: Fix testNotificationUpdated timestamp comparison

With MySQL, the django ORM defaults to mapping DateTimeField to
Timestamp and this has only a precision of seconds.

Let's use >= here then, which doesn't affect the correctness of this
test.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/tests/test_notifications.py