# Path: models/love.py
# class Love(ndb.Model):
#     """Models an instance of sent love."""
#     message = ndb.TextProperty()
#     recipient_key = ndb.KeyProperty(kind=Employee)
#     secret = ndb.BooleanProperty(default=False)
#     sender_key = ndb.KeyProperty(kind=Employee)
#     timestamp = ndb.DateTimeProperty(auto_now_add=True)
#     company_values = ndb.StringProperty(repeated=True)
# 
#     @property
#     def seconds_since_epoch(self):
#         return int(mktime(self.timestamp.timetuple()))


from models import Love
# -*- coding: utf-8 -*-

DEFAULT_LOVE_MESSAGE = 'So Long, and Thanks For All the Fish'


def create_love(
    sender_key,
    recipient_key,
    message=DEFAULT_LOVE_MESSAGE,
    secret=False,
    company_values=()
):

    love = Love(
        sender_key=sender_key,
        recipient_key=recipient_key,
        message=message,

# Path: models/love.py
# class Love(ndb.Model):
#     """Models an instance of sent love."""
#     message = ndb.TextProperty()
#     recipient_key = ndb.KeyProperty(kind=Employee)
#     secret = ndb.BooleanProperty(default=False)
#     sender_key = ndb.KeyProperty(kind=Employee)
#     timestamp = ndb.DateTimeProperty(auto_now_add=True)
#     company_values = ndb.StringProperty(repeated=True)
# 
#     @property
#     def seconds_since_epoch(self):
#         return int(mktime(self.timestamp.timetuple()))


# Path: testing/factories/love.py
from models import Love

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

DEFAULT_LOVE_MESSAGE = 'So Long, and Thanks For All the Fish'


def create_love(
    sender_key,
    recipient_key,
    message=DEFAULT_LOVE_MESSAGE,
    secret=False,
    company_values=()
):

    love = Love(
        sender_key=sender_key,
        recipient_key=recipient_key,
        message=message,

        secret=secret,