Skip to content

Commit de6775d

Browse files
committed
fix test
1 parent d55ab8a commit de6775d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_user.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ async def test_create_user_success(self, mock_db, sample_user_data, sample_user_
2020
with patch("src.app.api.v1.users.crud_users") as mock_crud:
2121
# Mock that email and username don't exist
2222
mock_crud.exists = AsyncMock(side_effect=[False, False]) # email, then username
23-
mock_crud.create = AsyncMock(return_value={"id": 1})
24-
mock_crud.get = AsyncMock(return_value=sample_user_read.model_dump())
23+
mock_crud.create = AsyncMock(return_value=sample_user_read.model_dump())
2524

2625
with patch("src.app.api.v1.users.get_password_hash") as mock_hash:
2726
mock_hash.return_value = "hashed_password"

0 commit comments

Comments
 (0)