Remove redundant 'ccpo' from ccpo route function names
This commit is contained in:
@@ -8,11 +8,11 @@ from tests.factories import UserFactory
|
||||
def test_ccpo_users(user_session, client):
|
||||
ccpo = UserFactory.create_ccpo()
|
||||
user_session(ccpo)
|
||||
response = client.get(url_for("ccpo.ccpo_users"))
|
||||
response = client.get(url_for("ccpo.users"))
|
||||
assert ccpo.email in response.data.decode()
|
||||
|
||||
|
||||
def test_submit_add_new_ccpo_user(user_session, client):
|
||||
def test_submit_new_user(user_session, client):
|
||||
ccpo = UserFactory.create_ccpo()
|
||||
new_user = UserFactory.create()
|
||||
random_dod_id = "1234567890"
|
||||
@@ -20,18 +20,18 @@ def test_submit_add_new_ccpo_user(user_session, client):
|
||||
|
||||
# give new_user CCPO permissions
|
||||
response = client.post(
|
||||
url_for("ccpo.submit_add_new_ccpo_user"), data={"dod_id": new_user.dod_id}
|
||||
url_for("ccpo.submit_new_user"), data={"dod_id": new_user.dod_id}
|
||||
)
|
||||
assert new_user.email in response.data.decode()
|
||||
|
||||
# give person with out ATAT account CCPO permissions
|
||||
response = client.post(
|
||||
url_for("ccpo.submit_add_new_ccpo_user"), data={"dod_id": random_dod_id}
|
||||
url_for("ccpo.submit_new_user"), data={"dod_id": random_dod_id}
|
||||
)
|
||||
assert translate("ccpo.form.user_not_found_title") in response.data.decode()
|
||||
|
||||
|
||||
def test_confirm_new_ccpo_user(user_session, client):
|
||||
def test_confirm_new_user(user_session, client):
|
||||
ccpo = UserFactory.create_ccpo()
|
||||
new_user = UserFactory.create()
|
||||
random_dod_id = "1234567890"
|
||||
@@ -39,7 +39,7 @@ def test_confirm_new_ccpo_user(user_session, client):
|
||||
|
||||
# give new_user CCPO permissions
|
||||
response = client.post(
|
||||
url_for("ccpo.confirm_new_ccpo_user"),
|
||||
url_for("ccpo.confirm_new_user"),
|
||||
data={"dod_id": new_user.dod_id},
|
||||
follow_redirects=True,
|
||||
)
|
||||
@@ -47,7 +47,7 @@ def test_confirm_new_ccpo_user(user_session, client):
|
||||
|
||||
# give person with out ATAT account CCPO permissions
|
||||
response = client.post(
|
||||
url_for("ccpo.confirm_new_ccpo_user"),
|
||||
url_for("ccpo.confirm_new_user"),
|
||||
data={"dod_id": random_dod_id},
|
||||
follow_redirects=True,
|
||||
)
|
||||
|
Reference in New Issue
Block a user