# Path: django_evolution/support.py



from functools import wraps
from unittest import SkipTest
from django_evolution.support import (supports_constraints,
                                      supports_index_together,
                                      supports_indexes,
                                      supports_migrations)
import django
requires_meta_index_together = _build_requires_support_decorator(
    flag=supports_index_together,
    skip_message=("Meta.index_together isn't supported on Django "
                  "%(django_version)s"))


#: Decorator to require Meta.indexes support for running a test.
#:
#: Args:
#:     func (callable):
#:         The unit test function to wrap.
#:
#: Raises:
#:     unittest.SkipTest:
#:         The current version of Django doesn't support ``Meta.indexes``.
requires_meta_indexes = _build_requires_support_decorator(
    flag=supports_indexes,
    skip_message="Meta.indexes isn't supported on Django %(django_version)s")


#: Decorator to require migrations support for running a test.
#:
#: Args:
#:     func (callable):
#:         The unit test function to wrap.
#:
#: Raises:
#:     unittest.SkipTest:
#:         The current version of Django doesn't support migrations.
requires_migrations = _build_requires_support_decorator(

# Path: django_evolution/support.py



# Path: django_evolution/tests/decorators.py
from functools import wraps
from unittest import SkipTest
from django_evolution.support import (supports_constraints,
                                      supports_index_together,
                                      supports_indexes,
                                      supports_migrations)
import django

requires_meta_index_together = _build_requires_support_decorator(
    flag=supports_index_together,
    skip_message=("Meta.index_together isn't supported on Django "
                  "%(django_version)s"))


#: Decorator to require Meta.indexes support for running a test.
#:
#: Args:
#:     func (callable):
#:         The unit test function to wrap.
#:
#: Raises:
#:     unittest.SkipTest:
#:         The current version of Django doesn't support ``Meta.indexes``.
requires_meta_indexes = _build_requires_support_decorator(
    flag=supports_indexes,
    skip_message="Meta.indexes isn't supported on Django %(django_version)s")


#: Decorator to require migrations support for running a test.
#:
#: Args:
#:     func (callable):
#:         The unit test function to wrap.
#:
#: Raises:
#:     unittest.SkipTest:
#:         The current version of Django doesn't support migrations.
requires_migrations = _build_requires_support_decorator(

    flag=supports_migrations,