initial commit
This commit is contained in:
9
benchcoach/users/tests/test_models.py
Normal file
9
benchcoach/users/tests/test_models.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import pytest
|
||||
|
||||
from benchcoach.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}/"
|
||||
Reference in New Issue
Block a user