Skip to content

Commit b304e09

Browse files
committed
tested user creation
1 parent 3711c97 commit b304e09

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
512 Bytes
Binary file not shown.

test/test_users.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
def test_create_user(client):
88
res = client.post(
9-
"/users/", json={"email": "hello123@gmail.com", "password": "password123"})
9+
"/users/", json={"email": "hello123@gmail.com", "password": "password123", "id": 1})
1010

11-
new_user = schemas.UserOut(**res.json())
11+
print(res.json())
12+
new_user = schemas.UserResponse(**res.json())
1213
assert new_user.email == "hello123@gmail.com"
1314
assert res.status_code == 201

0 commit comments

Comments
 (0)