import httpretty
import pytest
import webtest

from via.app import create_app


@pytest.fixture
def test_app(pyramid_settings):
    return webtest.TestApp(create_app(None, **pyramid_settings))


@pytest.fixture
def checkmate_pass(pyramid_settings):
    httpretty.register_uri(
        httpretty.GET, "http://localhost:9099/api/check", status=204, body=None
    )

import httpretty
import pytest
import webtest

from via.app import create_app


@pytest.fixture
def test_app(pyramid_settings):
    return webtest.TestApp(create_app(None, **pyramid_settings))


@pytest.fixture
def checkmate_pass(pyramid_settings):
    httpretty.register_uri(
        httpretty.GET, "http://localhost:9099/api/check", status=204, body=""
    )

Work around a `httpretty` bug when returning None as the body