From: Jochen Sprickerhof Date: Mon, 4 Jan 2021 10:04:18 +0100 Subject: Skip test failing on reproducible-builds maybe related to testing with a fake time: FAIL: test_get_credentials_with_refresh (tests.test_gmail.TestGmailService) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/2/bugwarrior-1.8.0/2nd/tests/test_gmail.py", line 62, in test_get_credentials_with_refresh self.assertEqual(expired_credential.valid, False) AssertionError: True != False --- tests/test_gmail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_gmail.py b/tests/test_gmail.py index 3a01820..a5c270f 100644 --- a/tests/test_gmail.py +++ b/tests/test_gmail.py @@ -2,7 +2,7 @@ import os.path import pickle from copy import copy from datetime import datetime, timedelta -from unittest import mock +from unittest import mock, skip from unittest.mock import patch from dateutil.tz import tzutc @@ -51,6 +51,7 @@ class TestGmailService(ConfigTest): self.assertEqual(service.get_credentials().to_json(), expected.to_json()) + @skip('Fails for reproducible builds in expired_credential.valid') def test_get_credentials_with_refresh(self): mock_api = mock.Mock() gmail.GmailService.build_api = mock_api