# This file is part of Tryton.  The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import DeactivableMixin, ModelSQL, ModelView
from trytond.pool import Pool
from trytond.report import Report


class TestMixin:
    __slots__ = ()


class TestSecondMixin:
    __slots__ = ()


class NotMixin:
    __slots__ = ()


class ReportMixin:
    __slots__ = ()


class DeactivableModelView(DeactivableMixin, ModelView):
    __name__ = 'test.deactivable.modelview'


class DeactivableModelSQL(DeactivableMixin, ModelSQL):
    __name__ = 'test.deactivable.modelsql'


def register(module):
    Pool.register(
        DeactivableModelView,
        DeactivableModelSQL,
        module=module, type_='model')
    Pool.register_mixin(TestMixin, ModelView, module=module)
    Pool.register_mixin(TestSecondMixin, ModelView, module=module)
    Pool.register_mixin(NotMixin, ModelView, module='__wrong__')
    Pool.register_mixin(ReportMixin, Report, module=module)
