<commit_before>from django.test import TestCase, override_settings
# from django.db.models import ImageField
# from django.db.models.fields.files import ImageFieldFile
from imager_images.models import Photo, Album
from imager_profile.tests import UserFactory
import factory


class PhotoFactory(factory.django.DjangoModelFactory):
    """Set up Photo Factory."""
    class Meta:
        model = Photo
    image = factory.django.ImageField(filename='/tmp/image01.jpg')
    date_published = '2016-04-11'


class AlbumFactory(factory.django.DjangoModelFactory):
    """Set up Photo Factory."""
    class Meta:
        model = Album
    date_published = '2016-04-11'


@override_settings(MEDIA_URL='tmp/')
class PhotoTest(TestCase):<commit_msg>updated imager tests<commit_after>from django.test import TestCase, override_settings
# from django.db.models import ImageField
# from django.db.models.fields.files import ImageFieldFile
from imager_images.models import Photo, Album
from imager_profile.tests import UserFactory
import factory


# @override_settings(MEDIA_ROOT='/tmp')
class PhotoFactory(factory.django.DjangoModelFactory):
    """Set up Photo Factory."""
    class Meta:
        model = Photo
    image = factory.django.ImageField(filename='/tmp/image01.jpg')
    date_published = '2016-04-11'


class AlbumFactory(factory.django.DjangoModelFactory):
    """Set up Photo Factory."""
    class Meta:
        model = Album
    date_published = '2016-04-11'


# @override_settings(MEDIA_ROOT='/tmp/')
class PhotoTest(TestCase):
{'fraction_non_alphanumeric': 0.10450685826257348, 'fraction_numerical': 0.023514043109079032, 'mean_word_length': 4.550724637681159, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '97408', 'n_tokens_mistral': 463, 'n_tokens_neox': 434, 'n_words': 108}