
Make all the source and tests HACKING compliant and enable tox -e hacking on by default. Relative directory checks not enabled (yet) Change-Id: I8803f67c49b4d16caebe76ae690092ae5c9a6dd3
57 lines
1.5 KiB
Python
57 lines
1.5 KiB
Python
# -*- encoding: utf-8 -*-
|
|
#
|
|
# Copyright © 2013 eNovance
|
|
#
|
|
# Author: Julien Danjou <julien@danjou.info>
|
|
#
|
|
# 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.
|
|
"""Test API against SQLAlchemy.
|
|
"""
|
|
import compute_duration_by_resource as cdbr
|
|
import list_events
|
|
import list_meters
|
|
import list_projects
|
|
import list_users
|
|
|
|
|
|
class TestListEvents(list_events.TestListEvents):
|
|
database_connection = 'sqlite://'
|
|
|
|
|
|
class TestListEmptyMeters(list_meters.TestListEmptyMeters):
|
|
database_connection = 'sqlite://'
|
|
|
|
|
|
class TestListMeters(list_meters.TestListMeters):
|
|
database_connection = 'sqlite://'
|
|
|
|
|
|
class TestListEmptyUsers(list_users.TestListEmptyUsers):
|
|
database_connection = 'sqlite://'
|
|
|
|
|
|
class TestListUsers(list_users.TestListUsers):
|
|
database_connection = 'sqlite://'
|
|
|
|
|
|
class TestListEmptyProjects(list_projects.TestListEmptyProjects):
|
|
database_connection = 'sqlite://'
|
|
|
|
|
|
class TestListProjects(list_projects.TestListProjects):
|
|
database_connection = 'sqlite://'
|
|
|
|
|
|
class TestComputeDurationByResource(cdbr.TestComputeDurationByResource):
|
|
database_connection = 'sqlite://'
|