Ejemplo n.º 1
0
Archivo: tests.py Proyecto: braskin/pd
def create_playdate_invite_designs(app, created_models, verbosity, **kwargs):
    playdates.create_playdate_invite_design(title="Basic", small_image="http://www.cnn.com", big_image="http://www.cnn.com",description="Basic Vanilla Invite",html="Yo. Is your kid coming or not? He better. It will rock." )
Ejemplo n.º 2
0
Archivo: tests.py Proyecto: braskin/pd
i=1
while i < 4:
    bd = datetime.date.today() - datetime.timedelta(i*365)
    child = create_child('Busty'+str(i),'Jackson','male', bd)
    family["child"+str(i)]=child
    adult_child = create_adult_child(user, child, 'P')
    adult_child = create_adult_child(user2, child, 'P')
    i=i+1

families.append(family)


from playdates import models as playdates

playdates.create_playdate_invite_design(title="Basic", small_image="http://www.cnn.com", big_image="http://www.cnn.com",description="Basic Vanilla Invite",html="Yo. Is your kid coming or not? He better. It will rock." )

pd = playdates.Playdate()


when_from = datetime.datetime.now() + datetime.timedelta(days=1, hours=2)
when_until = datetime.datetime.now() + datetime.timedelta(days=1, hours=3)


pd.organizer=families[0]["father"]
pd.organizer_child=families[0]["child1"]
pd.phone='732-432-7794'
pd.message='come play with me'
pd.address='5 Sterling Court, East Brunswick, NJ 08816'
pd.when_from=when_from
pd.when_until=when_until