aboutsummaryrefslogtreecommitdiffstats
path: root/python_moonutilities/tests/unit_python/conftest.py
blob: 34e5c27209c820d2514aa389f05f3cede5dbec07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest
import requests_mock
import mock_repo


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

        print("End registering URI")
        yield m