File: baker_recipes.py

package info (click to toggle)
python-model-bakery 1.20.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 532 kB
  • sloc: python: 4,298; sh: 149; makefile: 21
file content (17 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.utils.timezone import now

from model_bakery.recipe import Recipe
from tests.generic.models import Person

person = Recipe(
    Person,
    name="Uninstalled",
    nickname="uninstalled",
    age=18,
    bio="Uninstalled",
    blog="http://uninstalled.com",
    days_since_last_login=4,
    birthday=now().date(),
    appointment=now(),
    birth_time=now(),
)