File: 0005-Disable-test-due-to-old-python3-google-auth.patch

package info (click to toggle)
bugwarrior 1.8.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,112 kB
  • sloc: python: 9,247; makefile: 150
file content (29 lines) | stat: -rw-r--r-- 964 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Jochen Sprickerhof <jspricke@debian.org>
Date: Mon, 28 Dec 2020 16:42:53 +0100
Subject: Disable test due to old python3-google-auth

---
 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..f100b33 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
@@ -39,6 +39,7 @@ class TestGmailService(ConfigTest):
 
         self.service_config = ServiceConfig(GmailService.CONFIG_PREFIX, self.config, "myservice")
 
+    @skip('python3-google-auth in Debian has no to_json (version < 1.8.0)')
     def test_get_credentials_exists_and_valid(self):
         mock_api = mock.Mock()
         gmail.GmailService.build_api = mock_api