# Path: aodh/storage/sqlalchemy/models.py
# class JSONEncodedDict(TypeDecorator):
# class TimestampUTC(TypeDecorator):
# class AodhBase(object):
# class Alarm(Base):
# class AlarmChange(Base):
# class Quota(Base):
#     def process_bind_param(value, dialect):
#     def process_result_value(value, dialect):
#     def load_dialect_impl(self, dialect):
#     def __setitem__(self, key, value):
#     def __getitem__(self, key):
#     def update(self, values):
# 
# Path: aodh/tests/base.py
# class BaseTestCase(base.BaseTestCase):
# class SkipNotImplementedMeta(type):
#     def setup_messaging(self, conf, exchange=None):
#     def assertTimestampEqual(self, first, second, msg=None):
#     def assertIsEmpty(self, obj):
#     def assertIsNotEmpty(self, obj):
#     def assertDictContains(self, parent, child):
#     def path_get(project_file=None):
#     def assert_single_item(self, items, **filters):
#     def assert_multiple_items(self, items, count, **filters):
#         def _matches(item, **props):
# def _skip_decorator(func):
#     def skip_if_not_implemented(*args, **kwargs):
#     def __new__(cls, name, bases, local):
# 
# Path: aodh/tests/functional/db.py
# class SQLManager(fixtures.Fixture):
# class PgSQLManager(SQLManager):
# class MySQLManager(SQLManager):
# class SQLiteManager(fixtures.Fixture):
# class TestBase(test_base.BaseTestCase,
#                metaclass=test_base.SkipNotImplementedMeta):
#     def __init__(self, conf):
#     def _create_db(conn, db_name):
#     def _create_db(conn, db_name):
#     def __init__(self, conf):
#     def setUp(self):
#     def tearDown(self):
#     def _get_connection(self, conf):
#     DRIVER_MANAGERS = {
#         'mysql': MySQLManager,
#         'postgresql': PgSQLManager,
#         'sqlite': SQLiteManager,
#     }


import abc
from unittest import mock
from oslo_db.sqlalchemy import test_migrations
from aodh.storage.sqlalchemy import models
from aodh.tests import base
from aodh.tests.functional import db as tests_db
#
#    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.




class ABCSkip(base.SkipNotImplementedMeta, abc.ABCMeta):
    pass


class ModelsMigrationsSync(tests_db.TestBase,
                           test_migrations.ModelsMigrationsSync,
                           metaclass=ABCSkip):

    def setUp(self):
        super(ModelsMigrationsSync, self).setUp()
        self.db = mock.Mock()

    @staticmethod
    def get_metadata():

# Path: aodh/storage/sqlalchemy/models.py
# class JSONEncodedDict(TypeDecorator):
# class TimestampUTC(TypeDecorator):
# class AodhBase(object):
# class Alarm(Base):
# class AlarmChange(Base):
# class Quota(Base):
#     def process_bind_param(value, dialect):
#     def process_result_value(value, dialect):
#     def load_dialect_impl(self, dialect):
#     def __setitem__(self, key, value):
#     def __getitem__(self, key):
#     def update(self, values):
# 
# Path: aodh/tests/base.py
# class BaseTestCase(base.BaseTestCase):
# class SkipNotImplementedMeta(type):
#     def setup_messaging(self, conf, exchange=None):
#     def assertTimestampEqual(self, first, second, msg=None):
#     def assertIsEmpty(self, obj):
#     def assertIsNotEmpty(self, obj):
#     def assertDictContains(self, parent, child):
#     def path_get(project_file=None):
#     def assert_single_item(self, items, **filters):
#     def assert_multiple_items(self, items, count, **filters):
#         def _matches(item, **props):
# def _skip_decorator(func):
#     def skip_if_not_implemented(*args, **kwargs):
#     def __new__(cls, name, bases, local):
# 
# Path: aodh/tests/functional/db.py
# class SQLManager(fixtures.Fixture):
# class PgSQLManager(SQLManager):
# class MySQLManager(SQLManager):
# class SQLiteManager(fixtures.Fixture):
# class TestBase(test_base.BaseTestCase,
#                metaclass=test_base.SkipNotImplementedMeta):
#     def __init__(self, conf):
#     def _create_db(conn, db_name):
#     def _create_db(conn, db_name):
#     def __init__(self, conf):
#     def setUp(self):
#     def tearDown(self):
#     def _get_connection(self, conf):
#     DRIVER_MANAGERS = {
#         'mysql': MySQLManager,
#         'postgresql': PgSQLManager,
#         'sqlite': SQLiteManager,
#     }


# Path: aodh/tests/functional/storage/sqlalchemy/test_migrations.py
import abc
from unittest import mock
from oslo_db.sqlalchemy import test_migrations
from aodh.storage.sqlalchemy import models
from aodh.tests import base
from aodh.tests.functional import db as tests_db

#
#    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.




class ABCSkip(base.SkipNotImplementedMeta, abc.ABCMeta):
    pass


class ModelsMigrationsSync(tests_db.TestBase,
                           test_migrations.ModelsMigrationsSync,
                           metaclass=ABCSkip):

    def setUp(self):
        super(ModelsMigrationsSync, self).setUp()
        self.db = mock.Mock()

    @staticmethod
    def get_metadata():

        return models.Base.metadata