File: remove_mock.patch

package info (click to toggle)
influxdb-python 5.3.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,576 kB
  • sloc: python: 7,274; makefile: 5
file content (57 lines) | stat: -rw-r--r-- 1,394 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Description: remove need for python3-six
Author: Alexandre Detiste <tchet@debian.org>
Forwarded: no, project is archived

--- a/influxdb/tests/client_test.py
+++ b/influxdb/tests/client_test.py
@@ -27,7 +27,7 @@
 import io
 import gzip
 import json
-import mock
+from unittest import mock
 import requests
 import requests.exceptions
 import requests_mock
--- a/influxdb/tests/helper_test.py
+++ b/influxdb/tests/helper_test.py
@@ -11,7 +11,7 @@
 import unittest
 import warnings
 
-import mock
+from unittest import mock
 from influxdb import SeriesHelper, InfluxDBClient
 from requests.exceptions import ConnectionError
 
--- a/influxdb/tests/influxdb08/client_test.py
+++ b/influxdb/tests/influxdb08/client_test.py
@@ -8,7 +8,7 @@
 import random
 import warnings
 
-import mock
+from unittest import mock
 import requests
 import requests.exceptions
 import requests_mock
@@ -34,7 +34,7 @@
         return newfunc
     return decorate
 
-from mock import patch
+from unittest.mock import patch
 
 from influxdb.influxdb08 import InfluxDBClient
 from influxdb.influxdb08.client import session
--- a/influxdb/tests/influxdb08/helper_test.py
+++ b/influxdb/tests/influxdb08/helper_test.py
@@ -4,7 +4,7 @@
 import unittest
 import warnings
 
-import mock
+from unittest import mock
 from influxdb.influxdb08 import SeriesHelper, InfluxDBClient
 from requests.exceptions import ConnectionError