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
Work around a `httpretty` bug when returning None as the body

I'm not sure if this is a bug or not. The docs state this must be
a string. So this is as empty as we can get.
