12 lines
302 B
Python
12 lines
302 B
Python
import pytest
|
|
|
|
import requests
|
|
|
|
@pytest.fixture()
|
|
def http_client():
|
|
sess = requests.Session()
|
|
adapter = requests.adapters.HTTPAdapter(pool_connections=100,
|
|
pool_maxsize=100)
|
|
sess.mount('http://', adapter)
|
|
sess.mount('https://', adapter)
|
|
return sess
|