<commit_before># MIT License
# Copyright (c) 2017 MassChallenge, Inc.

from __future__ import unicode_literals

import swapper
from datetime import (
    date,
    datetime,
    time,
    timedelta,
)
from factory import (
    DjangoModelFactory,
    Sequence,
    SubFactory,
)
from pytz import utc

from accelerator.apps import AcceleratorConfig
from accelerator.tests.factories import (
    EntrepreneurFactory,
    ExpertFactory,
)
from accelerator.tests.factories.location_factory import LocationFactory
from accelerator.tests.factories.program_factory import ProgramFactory
from accelerator.tests.factories.startup_factory import StartupFactory

MentorProgramOfficeHour = swapper.load_model(AcceleratorConfig.name,
                                             'MentorProgramOfficeHour')


class MentorProgramOfficeHourFactory(DjangoModelFactory):
    class Meta:
        model = MentorProgramOfficeHour

    program = SubFactory(ProgramFactory)
    mentor = SubFactory(ExpertFactory)
    finalist = SubFactory(EntrepreneurFactory)
    startup = SubFactory(StartupFactory)
    start_date_time = utc.localize(datetime.combine(
        date.today() + timedelta(days=3),
        time(hour=10)))
    end_date_time = utc.localize(datetime.combine(
        date.today() + timedelta(days=3),
        time(hour=12)))
    location = SubFactory(LocationFactory)
    description = Sequence(lambda n: "Description office hour {0}".format(n))
    notify_reservation = True
    topics = Sequence(lambda n: "Topics for test office hour {0}".format(n))
<commit_msg>[AC-7818] Add meeting_info to mentor_program_office_hour_factory.py<commit_after># MIT License
# Copyright (c) 2017 MassChallenge, Inc.

from __future__ import unicode_literals

import swapper
from datetime import (
    date,
    datetime,
    time,
    timedelta,
)
from factory import (
    DjangoModelFactory,
    Sequence,
    SubFactory,
)
from pytz import utc

from accelerator.apps import AcceleratorConfig
from accelerator.tests.factories import (
    EntrepreneurFactory,
    ExpertFactory,
)
from accelerator.tests.factories.location_factory import LocationFactory
from accelerator.tests.factories.program_factory import ProgramFactory
from accelerator.tests.factories.startup_factory import StartupFactory

MentorProgramOfficeHour = swapper.load_model(AcceleratorConfig.name,
                                             'MentorProgramOfficeHour')


class MentorProgramOfficeHourFactory(DjangoModelFactory):
    class Meta:
        model = MentorProgramOfficeHour

    program = SubFactory(ProgramFactory)
    mentor = SubFactory(ExpertFactory)
    finalist = SubFactory(EntrepreneurFactory)
    startup = SubFactory(StartupFactory)
    start_date_time = utc.localize(datetime.combine(
        date.today() + timedelta(days=3),
        time(hour=10)))
    end_date_time = utc.localize(datetime.combine(
        date.today() + timedelta(days=3),
        time(hour=12)))
    location = SubFactory(LocationFactory)
    description = Sequence(lambda n: "Description office hour {0}".format(n))
    notify_reservation = True
    topics = Sequence(lambda n: "Topics for test office hour {0}".format(n))
    meeting_info = Sequence(lambda n: "{0} zoom link".format(n))

{'fraction_non_alphanumeric': 0.08088007437248218, 'fraction_numerical': 0.008986674930275797, 'mean_word_length': 3.973805855161787, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6960627', 'n_tokens_mistral': 978, 'n_tokens_neox': 918, 'n_words': 208}