aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_models.py
blob: 23c17adcc5e3b895e53148224cdaacbde8100737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- coding: utf-8 -*-
"""
Test(s) for Database Models
"""
from app.models import User


def test_usermodel(app, client):
    """
    Test User Model
    """
    user = User(first_name="John", email="test@example.com", password="pass")
    assert user.full_name == "John None"
    assert user.get_role() is None
    assert user.get_team() is None
    assert user.is_paid() is None