aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/python_moonclient/tests/unit_python/conftest.py
blob: d26df9466f2d5dfa4d0fc7c13c5970e156272ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import pytest
import requests_mock
import mock_config


@pytest.fixture(autouse=True)
def no_requests(monkeypatch):
    """ Modify the response from Requests module
    """
    with requests_mock.Mocker(real_http=True) as m:
        mock_config.register_consul(m)
        yield m