display DOD ID on user update page
This commit is contained in:
@@ -4,6 +4,7 @@ from atst.domain.users import Users
|
||||
|
||||
from tests.factories import UserFactory
|
||||
|
||||
|
||||
def test_user_can_view_profile(user_session, client):
|
||||
user = UserFactory.create()
|
||||
user_session(user)
|
||||
@@ -15,7 +16,9 @@ def test_user_can_update_profile(user_session, client):
|
||||
user = UserFactory.create()
|
||||
user_session(user)
|
||||
new_data = {**user.to_dictionary(), "first_name": "chad", "last_name": "vader"}
|
||||
new_data["date_latest_training"] = new_data["date_latest_training"].strftime("%m/%d/%Y")
|
||||
new_data["date_latest_training"] = new_data["date_latest_training"].strftime(
|
||||
"%m/%d/%Y"
|
||||
)
|
||||
client.post(url_for("users.user"), data=new_data)
|
||||
updated_user = Users.get_by_dod_id(user.dod_id)
|
||||
assert updated_user.first_name == "chad"
|
||||
|
Reference in New Issue
Block a user