use post endpoint for updating user in test
This commit is contained in:
parent
d25ee2fe99
commit
771bd27794
@ -19,7 +19,7 @@ def test_user_can_update_profile(user_session, client):
|
||||
new_data["date_latest_training"] = new_data["date_latest_training"].strftime(
|
||||
"%m/%d/%Y"
|
||||
)
|
||||
client.post(url_for("users.user"), data=new_data)
|
||||
client.post(url_for("users.update_user"), data=new_data)
|
||||
updated_user = Users.get_by_dod_id(user.dod_id)
|
||||
assert updated_user.first_name == "chad"
|
||||
assert updated_user.last_name == "vader"
|
||||
|
Loading…
x
Reference in New Issue
Block a user