use post endpoint for updating user in test

This commit is contained in:
dandds 2018-10-17 10:47:30 -04:00
parent d25ee2fe99
commit 771bd27794

View File

@ -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"