{"action":"created","issue":{"url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/issues/88","repository_url":"https://api.github.com/repos/dennissiemensma/dsmr-reader","labels_url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/issues/88/comments","events_url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/issues/88/events","html_url":"https://github.com/dennissiemensma/dsmr-reader/issues/88","id":139679194,"number":88,"title":"Prevent tests from failing due to moment of execution","user":{"login":"dennissiemensma","id":16581744,"avatar_url":"https://avatars.githubusercontent.com/u/16581744?v=3","gravatar_id":"","url":"https://api.github.com/users/dennissiemensma","html_url":"https://github.com/dennissiemensma","followers_url":"https://api.github.com/users/dennissiemensma/followers","following_url":"https://api.github.com/users/dennissiemensma/following{/other_user}","gists_url":"https://api.github.com/users/dennissiemensma/gists{/gist_id}","starred_url":"https://api.github.com/users/dennissiemensma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennissiemensma/subscriptions","organizations_url":"https://api.github.com/users/dennissiemensma/orgs","repos_url":"https://api.github.com/users/dennissiemensma/repos","events_url":"https://api.github.com/users/dennissiemensma/events{/privacy}","received_events_url":"https://api.github.com/users/dennissiemensma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/labels/development","name":"development","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/milestones/14","html_url":"https://github.com/dennissiemensma/dsmr-reader/milestones/0.15%20(%CE%B2)","labels_url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/milestones/14/labels","id":1624164,"number":14,"title":"0.15 (β)","description":"","creator":{"login":"dennissiemensma","id":16581744,"avatar_url":"https://avatars.githubusercontent.com/u/16581744?v=3","gravatar_id":"","url":"https://api.github.com/users/dennissiemensma","html_url":"https://github.com/dennissiemensma","followers_url":"https://api.github.com/users/dennissiemensma/followers","following_url":"https://api.github.com/users/dennissiemensma/following{/other_user}","gists_url":"https://api.github.com/users/dennissiemensma/gists{/gist_id}","starred_url":"https://api.github.com/users/dennissiemensma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennissiemensma/subscriptions","organizations_url":"https://api.github.com/users/dennissiemensma/orgs","repos_url":"https://api.github.com/users/dennissiemensma/repos","events_url":"https://api.github.com/users/dennissiemensma/events{/privacy}","received_events_url":"https://api.github.com/users/dennissiemensma/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2016-03-06T01:57:13Z","updated_at":"2016-03-14T21:08:33Z","due_on":"2016-03-19T23:00:00Z","closed_at":null},"comments":4,"created_at":"2016-03-09T19:37:47Z","updated_at":"2016-03-15T17:52:15Z","closed_at":null,"body":"Only seem to fail around midnight. Solution is to mock `timezone.now()`\r\n\r\n```\r\n.....................F............................................................................F..SF.......S...........\r\n======================================================================\r\nFAIL: Test whether backups are restricted by one backup per day.\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/opt/python/3.4.2/lib/python3.4/unittest/mock.py\", line 1136, in patched\r\n    return func(*args, **keywargs)\r\n  File \"/home/travis/build/dennissiemensma/dsmr-reader/dsmr_backup/tests/test_services.py\", line 61, in test_check_interval_restriction\r\n    self.assertTrue(create_backup_mock.called)\r\nAssertionError: False is not true\r\n\r\n======================================================================\r\nFAIL: test_analyze_service_clear_cache (dsmr_stats.tests.test_services.TestServices)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/opt/python/3.4.2/lib/python3.4/unittest/mock.py\", line 1136, in patched\r\n    return func(*args, **keywargs)\r\n  File \"/home/travis/build/dennissiemensma/dsmr-reader/dsmr_stats/tests/test_services.py\", line 119, in test_analyze_service_clear_cache\r\n    self.assertTrue(clear_cache_mock.called)\r\nAssertionError: False is not true\r\n\r\n======================================================================\r\nFAIL: test_flush (dsmr_stats.tests.test_services.TestServices)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/travis/build/dennissiemensma/dsmr-reader/dsmr_stats/tests/test_services.py\", line 123, in test_flush\r\n    self.assertTrue(DayStatistics.objects.exists())\r\nAssertionError: False is not true\r\n```"},"comment":{"url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/issues/comments/196946435","html_url":"https://github.com/dennissiemensma/dsmr-reader/issues/88#issuecomment-196946435","issue_url":"https://api.github.com/repos/dennissiemensma/dsmr-reader/issues/88","id":196946435,"user":{"login":"dennissiemensma","id":16581744,"avatar_url":"https://avatars.githubusercontent.com/u/16581744?v=3","gravatar_id":"","url":"https://api.github.com/users/dennissiemensma","html_url":"https://github.com/dennissiemensma","followers_url":"https://api.github.com/users/dennissiemensma/followers","following_url":"https://api.github.com/users/dennissiemensma/following{/other_user}","gists_url":"https://api.github.com/users/dennissiemensma/gists{/gist_id}","starred_url":"https://api.github.com/users/dennissiemensma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennissiemensma/subscriptions","organizations_url":"https://api.github.com/users/dennissiemensma/orgs","repos_url":"https://api.github.com/users/dennissiemensma/repos","events_url":"https://api.github.com/users/dennissiemensma/events{/privacy}","received_events_url":"https://api.github.com/users/dennissiemensma/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T17:52:15Z","updated_at":"2016-03-15T17:52:15Z","body":"I think I've found the issue. Tonight after midnight new attempt."}}