File: factories.py

package info (click to toggle)
python-django-casclient 1.2.0-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 400 kB
  • sloc: python: 764; makefile: 160; sh: 24
file content (15 lines) | stat: -rw-r--r-- 310 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.contrib.auth.models import User


import factory


class UserFactory(factory.DjangoModelFactory):
    class Meta:
        model = User

    username = "derekst"
    first_name = "new"
    last_name = "user"
    is_staff = True
    password = factory.PostGenerationMethodCall('set_password', '1234')