#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest

from flask import Flask, jsonify


@pytest.fixture
def app():
    app = Flask(__name__)

    @app.route('/ping')
    def ping():
        return jsonify(ping='pong')

    return app

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest

from flask import Flask, jsonify


@pytest.fixture
def app():
    app = Flask(__name__)

    @app.route('/')
    def index():
        return app.response_class('OK')

    @app.route('/ping')
    def ping():
        return jsonify(ping='pong')

    return app

Add index route to test application
Add index route to test application

This endpoint uses to start :class:`LiveServer` instance with minimum
waiting timeout.
