# -*- coding: utf-8 -*-
from __future__ import absolute_import

import datetime
from contextlib import contextmanager

import pytest
import simplejson
from pyramid.httpexceptions import exception_response
from webtest.utils import NoDefault

from pyramid_swagger import exceptions


def build_test_app(swagger_versions, **overrides):
    """Fixture for setting up a test test_app with particular settings."""
    from tests.acceptance.app import main
    from webtest import TestApp as App