blob: fb2eadefec437e2662fedeb47d9d8c0d9e50768c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import pytest
from ctrack.users.models import User
pytestmark = pytest.mark.django_db
def test_user_get_absolute_url(user: User):
assert user.get_absolute_url() == f"/users/{user.username}/"
def test_user_is_person_object(user: User):
"""User comes from ctrack.conftest.
"""
assert user.oes_user is False
|