# Path: apps/quotes/tests/factories.py
# class QuoteFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = Quote
# 
# Path: apps/quotes/models.py
# class Quote(models.Model):
#     text = models.TextField()
#     timestamp = models.DateField(default=timezone.now)
#     subject = models.CharField(blank=True, max_length=200,
#         help_text='The person that was quoted.')
#     creator = models.CharField(blank=True, max_length=200,
#         help_text='The person that created the quote.')
#     broadcast = models.ForeignKey(Broadcast, blank=True, null=True, related_name='quotes')
#     game = models.ForeignKey(Game, blank=True, null=True, related_name='quoted_on')
# 
#     class Meta:
#         ordering = ['-timestamp']
# 
#     def __str__(self):
#         return '{}'.format(self.text)


import pytest
from .factories import QuoteFactory
from ..models import Quote
# -*- coding: utf-8 -*-


pytestmark = pytest.mark.django_db


def test_quote_factory():
    factory = QuoteFactory()

# Path: apps/quotes/tests/factories.py
# class QuoteFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = Quote
# 
# Path: apps/quotes/models.py
# class Quote(models.Model):
#     text = models.TextField()
#     timestamp = models.DateField(default=timezone.now)
#     subject = models.CharField(blank=True, max_length=200,
#         help_text='The person that was quoted.')
#     creator = models.CharField(blank=True, max_length=200,
#         help_text='The person that created the quote.')
#     broadcast = models.ForeignKey(Broadcast, blank=True, null=True, related_name='quotes')
#     game = models.ForeignKey(Game, blank=True, null=True, related_name='quoted_on')
# 
#     class Meta:
#         ordering = ['-timestamp']
# 
#     def __str__(self):
#         return '{}'.format(self.text)


# Path: apps/quotes/tests/test_factories.py
import pytest
from .factories import QuoteFactory
from ..models import Quote

# -*- coding: utf-8 -*-


pytestmark = pytest.mark.django_db


def test_quote_factory():
    factory = QuoteFactory()

    assert isinstance(factory, Quote)