Skip to content

Commit b5157dd

Browse files
Remove last uses of mock (#163)
1 parent cbe7242 commit b5157dd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"pytest-asyncio",
6464
"pytest-httpserver",
6565
"trustme",
66-
"mock",
6766
"requests",
6867
"aiohttp",
6968
"httpx",

tests/node/test_http_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
import gzip
1919
import ssl
2020
import warnings
21+
from unittest.mock import Mock, patch
2122

2223
import pytest
2324
import requests
24-
from mock import Mock, patch
2525
from requests.auth import HTTPBasicAuth
2626

2727
from elastic_transport import NodeConfig, RequestsHttpNode

tests/node/test_http_urllib3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
import re
2020
import ssl
2121
import warnings
22+
from unittest.mock import Mock, patch
2223

2324
import pytest
2425
import urllib3
25-
from mock import Mock, patch
2626
from urllib3.response import HTTPHeaderDict
2727

2828
from elastic_transport import NodeConfig, TransportError, Urllib3HttpNode

0 commit comments

Comments
 (0)