Debian Codegraph @

blazar_tempest_plugin/tests/api/test_blazar_api.py

raw
1 #
2 # Licensed under the Apache License, Version 2.0 (the "License"); you may
3 # not use this file except in compliance with the License. You may obtain
4 # a copy of the License at
5 #
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11 # License for the specific language governing permissions and limitations
12 # under the License.
13
14 """A test module to exercise the Blazar API with gabbi."""
15
16 import os
17
18 from blazar_tempest_plugin.tests.api import fixtures
19 from gabbi import driver
20
21 TESTS_DIR = 'gabbits'
22
23
24 def load_tests(loader, tests, pattern):
25 """Provide a TestSuite to the discovery process."""
26 test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR)
27 return driver.build_tests(test_dir, loader,
28 test_loader_name=__name__,
29 fixture_module=fixtures,
30 url='http://127.0.0.1/')