diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-19 15:57:06 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-19 15:57:06 +0000 |
commit | 9d76a3c52b8310726ec09e0262813f0438c21df6 (patch) | |
tree | 4acf47dce6c3aa75f8ad7c5cb56fe6486c2d64a7 /ctrack/users/tests/test_models.py |
init commit - from cookiecutter
Diffstat (limited to 'ctrack/users/tests/test_models.py')
-rw-r--r-- | ctrack/users/tests/test_models.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ctrack/users/tests/test_models.py b/ctrack/users/tests/test_models.py new file mode 100644 index 0000000..1b33961 --- /dev/null +++ b/ctrack/users/tests/test_models.py @@ -0,0 +1,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}/" |