aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_orchestrator/tests/unit_python/conftest.py
blob: 044489e6faef5d839759c9f3899603b099a6a201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import pytest
import requests_mock
import mock_pods
from utilities import CONTEXT


@pytest.fixture
def context():
    return CONTEXT


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