File: test_models.py

package info (click to toggle)
python-django-structlog 9.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,000 kB
  • sloc: python: 3,359; sh: 206; javascript: 79; makefile: 19
file content (10 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
import pytest
from django.conf import settings

pytestmark = pytest.mark.django_db


def test_user_get_absolute_url(user: settings.AUTH_USER_MODEL):
    assert user.get_absolute_url() == "/users/{username}/".format(
        username=user.username
    )