File: conftest.py

package info (click to toggle)
python-exotel 0.1.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 124 kB
  • sloc: python: 178; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-


import pytest
import requests_mock


@pytest.fixture(scope='function', autouse=True)
def mock_http():
    """pytest fixture to intercept outbound HTTP requests."""

    with requests_mock.mock() as m:
        yield m