Debian Codegraph @

debian/patches/remove_mock.patch

raw
1 Description: remove need for python3-six
2 Author: Alexandre Detiste <[email protected]>
3 Forwarded: no, project is archived
4
5 --- a/influxdb/tests/client_test.py
6 +++ b/influxdb/tests/client_test.py
7 @@ -27,7 +27,7 @@
8 import io
9 import gzip
10 import json
11 -import mock
12 +from unittest import mock
13 import requests
14 import requests.exceptions
15 import requests_mock
16 --- a/influxdb/tests/helper_test.py
17 +++ b/influxdb/tests/helper_test.py
18 @@ -11,7 +11,7 @@
19 import unittest
20 import warnings
21
22 -import mock
23 +from unittest import mock
24 from influxdb import SeriesHelper, InfluxDBClient
25 from requests.exceptions import ConnectionError
26
27 --- a/influxdb/tests/influxdb08/client_test.py
28 +++ b/influxdb/tests/influxdb08/client_test.py
29 @@ -8,7 +8,7 @@
30 import random
31 import warnings
32
33 -import mock
34 +from unittest import mock
35 import requests
36 import requests.exceptions
37 import requests_mock
38 @@ -34,7 +34,7 @@
39 return newfunc
40 return decorate
41
42 -from mock import patch
43 +from unittest.mock import patch
44
45 from influxdb.influxdb08 import InfluxDBClient
46 from influxdb.influxdb08.client import session
47 --- a/influxdb/tests/influxdb08/helper_test.py
48 +++ b/influxdb/tests/influxdb08/helper_test.py
49 @@ -4,7 +4,7 @@
50 import unittest
51 import warnings
52
53 -import mock
54 +from unittest import mock
55 from influxdb.influxdb08 import SeriesHelper, InfluxDBClient
56 from requests.exceptions import ConnectionError
57