# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

"""A test module to exercise the Enamel API with gabbi

This loads the yaml files in the gabbits directory and runs each
of them as a single ordered test suite.
"""

import os

from gabbi import driver

from enamel.tests.functional.gabbi import fixtures as fixture_module

TESTS_DIR = 'gabbits'

# NOTE(cdent): Replace with real wsgi app factory.
def load_app():

    def stub(environ, start_response):
        start_response('200 OK', [])
        return ['']

    return stub


def load_tests(loader, tests, pattern):
    """Provide a TestSuite to the discovery process."""
    test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR)
    return driver.build_tests(test_dir, loader, host=None,
                              intercept=load_app,
                              fixture_module=fixture_module)

@@ -835,16 +835,17 @@
 bbits'%0A%0A
+%0A
 # NOTE(c

fix pep8 on test_gabbi