Update {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_drf_views.py
OK. I agree with your idea. Even to me, this code is more explicit to check result.
@@ -27,4 +27,9 @@ class TestUserViewSet:
response = view.me(request)
- assert response.data == UserSerializer(user, context={"request": request}).data
+ assert response.data == {
+ "username": user.username,
+ "email": user.email,
+ "name": user.name,
+ "url": f"/api/users/{user.username}/",
+ }
