# Path: apps/broadcasts/tests/factories.py
# class BroadcastFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = Broadcast
# 
# Path: apps/broadcasts/models.py
# class Broadcast(models.Model):
#     # Metadata.
#     number = models.IntegerField(blank=True, null=True)
#     airdate = models.DateField(default=timezone.now)
#     status = models.CharField(blank=True, max_length=200,
#         help_text='Loosely related to Twitch\'s status field. Does not need to match. Will display on overlays.')
#     notes = models.TextField(blank=True)
# 
#     # Connections.
#     games = models.ManyToManyField(Game, related_name='appears_on')
#     series = models.ForeignKey(Series, blank=True, null=True, related_name='broadcasts',
#         help_text='Is this episode part of an ongoing series (i.e., "Whatever Wednesdays", etc.)?')
# 
#     # Statuses.
#     is_charity = models.BooleanField('is for charity?', default=False,
#         help_text='Is a charity fundraiser involved in this episode?')
#     is_marathon = models.BooleanField('is a marathon?', default=False,
#         help_text='Is this a marathon episode (longer than 12 hours)?')
# 
#     class Meta:
#         get_latest_by = 'airdate'
#         ordering = ['-airdate']
# 
#     def __str__(self):
#         return 'Episode {}'.format(self.number)
# 
#     def get_absolute_url(self):
#         return reverse('broadcast-detail', kwargs={'slug': self.number})


import pytest
from .factories import (BroadcastFactory)
from ..models import Broadcast
# -*- coding: utf-8 -*-


pytestmark = pytest.mark.django_db


class TestBroadcasts:
    def test_factory(self):
        factory = BroadcastFactory()

# Path: apps/broadcasts/tests/factories.py
# class BroadcastFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = Broadcast
# 
# Path: apps/broadcasts/models.py
# class Broadcast(models.Model):
#     # Metadata.
#     number = models.IntegerField(blank=True, null=True)
#     airdate = models.DateField(default=timezone.now)
#     status = models.CharField(blank=True, max_length=200,
#         help_text='Loosely related to Twitch\'s status field. Does not need to match. Will display on overlays.')
#     notes = models.TextField(blank=True)
# 
#     # Connections.
#     games = models.ManyToManyField(Game, related_name='appears_on')
#     series = models.ForeignKey(Series, blank=True, null=True, related_name='broadcasts',
#         help_text='Is this episode part of an ongoing series (i.e., "Whatever Wednesdays", etc.)?')
# 
#     # Statuses.
#     is_charity = models.BooleanField('is for charity?', default=False,
#         help_text='Is a charity fundraiser involved in this episode?')
#     is_marathon = models.BooleanField('is a marathon?', default=False,
#         help_text='Is this a marathon episode (longer than 12 hours)?')
# 
#     class Meta:
#         get_latest_by = 'airdate'
#         ordering = ['-airdate']
# 
#     def __str__(self):
#         return 'Episode {}'.format(self.number)
# 
#     def get_absolute_url(self):
#         return reverse('broadcast-detail', kwargs={'slug': self.number})


# Path: apps/broadcasts/tests/test_models.py
import pytest
from .factories import (BroadcastFactory)
from ..models import Broadcast

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


pytestmark = pytest.mark.django_db


class TestBroadcasts:
    def test_factory(self):
        factory = BroadcastFactory()

        assert isinstance(factory, Broadcast)