# Path: tests/helpers/movie_data.py
# class Movie(Document):
# 
#     title = CharField(nullable = True,indexed = True)
#     director = ForeignKeyField(related = 'Director',nullable = True,backref = 'movies')
#     cast = ManyToManyField(related = 'Actor')
#     year = IntegerField(indexed = True)
#     best_actor = ForeignKeyField('Actor',backref = 'best_movies')
# 
#     class Meta(Document.Meta):
# 
#         dbref_includes = ['title','year']


import pytest
from .helpers.movie_data import Movie
from __future__ import absolute_import




def test_delete_transaction(transactional_backend, small_transactional_test_data):

    (movies, actors, directors) = small_transactional_test_data


# Path: tests/helpers/movie_data.py
# class Movie(Document):
# 
#     title = CharField(nullable = True,indexed = True)
#     director = ForeignKeyField(related = 'Director',nullable = True,backref = 'movies')
#     cast = ManyToManyField(related = 'Actor')
#     year = IntegerField(indexed = True)
#     best_actor = ForeignKeyField('Actor',backref = 'best_movies')
# 
#     class Meta(Document.Meta):
# 
#         dbref_includes = ['title','year']


# Path: tests/test_transactions.py
import pytest
from .helpers.movie_data import Movie

from __future__ import absolute_import




def test_delete_transaction(transactional_backend, small_transactional_test_data):

    (movies, actors, directors) = small_transactional_test_data


    all_movies = transactional_backend.filter(Movie, {})