init here
This commit is contained in:
18
autotest/cases/case_02_users_create_mismatch.py
Normal file
18
autotest/cases/case_02_users_create_mismatch.py
Normal file
@@ -0,0 +1,18 @@
|
||||
TEST_NAME = "users:create mismatch"
|
||||
|
||||
|
||||
def run(context) -> None:
|
||||
payload = {
|
||||
context.K_FIRST_NAME: "Bob",
|
||||
context.K_LAST_NAME: "Doe",
|
||||
context.K_MIDDLE_NAME: "Ray",
|
||||
context.K_EDUCATION: "History",
|
||||
context.K_PASSWORD: "OnePass",
|
||||
context.K_CONFIRM_PASSWORD: "OtherPass",
|
||||
}
|
||||
status, body, _ = context.send_request("POST", "/api/users", body=payload)
|
||||
context.expect(status == 400, f"expected 400, got {status}")
|
||||
context.expect(
|
||||
context.MESSAGE_PASSWORD_MISMATCH in body,
|
||||
"expected mismatch message",
|
||||
)
|
||||
Reference in New Issue
Block a user