File: test_fixtures_users.py

package info (click to toggle)
python-pytest-djangoapp 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 396 kB
  • sloc: python: 1,116; makefile: 114; sh: 6
file content (17 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

def test_user_create(user_create):

    assert not user_create().is_superuser
    assert user_create(superuser=True).is_superuser
    assert user_create(anonymous=True).is_anonymous


def test_user_model(user_model):

    assert user_model


def test_user(user):

    assert user
    assert user.password_plain == 'password'