aboutsummaryrefslogblamecommitdiffstats
path: root/ctrack/users/tests/test_models.py
blob: 1b33961aa34f5677157c8473ded9b12ae29cf90f (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                
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}/"