# Path: tests/conftest.py
# def _mongodb_backend(config, autoload_embedded=True):
# def temporary_path(request):
# def mongodb_backend(request):
# def small_mongodb_test_data(request, mongodb_backend):
#     def get_sql_engine():
#     def _sql_backend(request, engine, **kwargs):
#         def finalizer():
#     def sql_backend(request):
#     def small_sql_test_data(request, sql_backend):
# def backend(request, temporary_path):
# def no_autoload_backend(request, temporary_path):
# def no_autoload_mongodb_backend(request, temporary_path):
# def transactional_backend(request, temporary_path):
# def large_test_data(request, backend):
# def small_test_data(request, backend):
# def large_transactional_test_data(request, transactional_backend):
# def small_transactional_test_data(request, transactional_backend):
# def _backend(request, temporary_path, autoload_embedded=True):
# def _init_indexes(backend):
# def _file_backend(request, temporary_path, config, autoload_embedded=True):
# def file_backend(request, temporary_path):
# 
# Path: tests/helpers/movie_data.py
# class Actor(Document):
# 
#     name = CharField(indexed = True)
#     gross_income_m = FloatField(indexed = True)
#     salary_amount = FloatField(indexed = True,key = 'salary.amount')
#     salary_currency = CharField(indexed = True,key = 'salary.currency')
#     appearances = IntegerField(indexed = True)
#     birth_year = IntegerField(indexed = True)
#     favorite_food = ManyToManyField('Food')
#     is_funny = BooleanField(indexed = True)
#     movies = ManyToManyField('Movie',backref = 'actors')


from ..conftest import test_mongo
from ..helpers.movie_data import Actor

if test_mongo:

    def test_regex(mongodb_backend):
        # DB setup
        backend = mongodb_backend

# Path: tests/conftest.py
# def _mongodb_backend(config, autoload_embedded=True):
# def temporary_path(request):
# def mongodb_backend(request):
# def small_mongodb_test_data(request, mongodb_backend):
#     def get_sql_engine():
#     def _sql_backend(request, engine, **kwargs):
#         def finalizer():
#     def sql_backend(request):
#     def small_sql_test_data(request, sql_backend):
# def backend(request, temporary_path):
# def no_autoload_backend(request, temporary_path):
# def no_autoload_mongodb_backend(request, temporary_path):
# def transactional_backend(request, temporary_path):
# def large_test_data(request, backend):
# def small_test_data(request, backend):
# def large_transactional_test_data(request, transactional_backend):
# def small_transactional_test_data(request, transactional_backend):
# def _backend(request, temporary_path, autoload_embedded=True):
# def _init_indexes(backend):
# def _file_backend(request, temporary_path, config, autoload_embedded=True):
# def file_backend(request, temporary_path):
# 
# Path: tests/helpers/movie_data.py
# class Actor(Document):
# 
#     name = CharField(indexed = True)
#     gross_income_m = FloatField(indexed = True)
#     salary_amount = FloatField(indexed = True,key = 'salary.amount')
#     salary_currency = CharField(indexed = True,key = 'salary.currency')
#     appearances = IntegerField(indexed = True)
#     birth_year = IntegerField(indexed = True)
#     favorite_food = ManyToManyField('Food')
#     is_funny = BooleanField(indexed = True)
#     movies = ManyToManyField('Movie',backref = 'actors')


# Path: tests/mongo/test_regex.py
from ..conftest import test_mongo
from ..helpers.movie_data import Actor


if test_mongo:

    def test_regex(mongodb_backend):
        # DB setup
        backend = mongodb_backend

        backend.filter(Actor, {}).delete()