From 61cfef22f17cd21486b6ecbc27c38732d99d105c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pl=C3=ADchal?= Date: Fri, 9 Oct 2015 16:18:57 +0200 Subject: [PATCH] Simplify idonethis smoke test as data are changing --- tests/plugins/test_idonethis.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/plugins/test_idonethis.py b/tests/plugins/test_idonethis.py index 85d904dd..c6bcc80b 100644 --- a/tests/plugins/test_idonethis.py +++ b/tests/plugins/test_idonethis.py @@ -65,10 +65,11 @@ def test_all_dones(): did.base.Config(CONFIG_OK) result = did.cli.main(INTERVAL) stats = result[0][0].stats[0].stats[0].stats - assert len(stats) == 5 - _stats = [u'[2015-10-07] [ ] did goal test 1', - u'[2015-10-06] [x] did goal done test 2', - u'[2015-10-06] did done test 1', - u'[2015-10-06] did done test 2', - u'[2015-10-06] did done test 3'] - assert sorted(_stats) == sorted(stats) + assert any('did done test' in stat for stat in stats) +# assert len(stats) == 5 +# _stats = [u'[2015-10-07] [ ] did goal test 1', +# u'[2015-10-06] [x] did goal done test 2', +# u'[2015-10-06] did done test 1', +# u'[2015-10-06] did done test 2', +# u'[2015-10-06] did done test 3'] +# assert sorted(_stats) == sorted(stats)