<reponame>peterbrittain/appveyor-artifacts<filename>tests/conftest.py
"""Configure tests."""

import logging
import sys

import httpretty
import pytest
import requests.packages.urllib3


@pytest.fixture(autouse=True, scope='session')
def config_httpretty():
    """Configure httpretty global variables."""
    httpretty.HTTPretty.allow_net_connect = False


@pytest.fixture(autouse=True, scope='session')
def config_requests():
    """Disable SSL warnings during testing."""
    if sys.version_info[:3] < (2, 7, 9):
        requests.packages.urllib3.disable_warnings()
    logging.getLogger('requests').setLevel(logging.WARNING)

"""Configure tests."""

import logging
import sys

import httpretty
import pytest
import requests.packages.urllib3


@pytest.fixture(autouse=True, scope='session')
def config_httpretty():
    """Configure httpretty global variables."""
    httpretty.HTTPretty.allow_net_connect = False


@pytest.fixture(autouse=True, scope='session')
def config_requests():
    """Disable SSL warnings during testing."""
    if sys.version_info[:3] < (2, 7, 9):
        requests.packages.urllib3.disable_warnings()
    logging.getLogger('requests').setLevel(logging.WARNING)
Configure tests. Configure httpretty global variables. Disable SSL warnings during testing.