Update styling on portfolio admin page, update portfolio form to include description
This commit is contained in:
@@ -166,16 +166,17 @@ def test_cannot_update_portfolio_ppoc_perms(client, user_session):
|
||||
assert ppoc_pf_role.has_permission_set(PermissionSets.PORTFOLIO_POC)
|
||||
|
||||
|
||||
def test_update_portfolio_name(client, user_session):
|
||||
def test_update_portfolio_name_and_description(client, user_session):
|
||||
portfolio = PortfolioFactory.create()
|
||||
user_session(portfolio.owner)
|
||||
response = client.post(
|
||||
url_for("portfolios.edit", portfolio_id=portfolio.id),
|
||||
data={"name": "a cool new name"},
|
||||
data={"name": "a cool new name", "description": "a portfolio for things"},
|
||||
follow_redirects=True,
|
||||
)
|
||||
assert response.status_code == 200
|
||||
assert portfolio.name == "a cool new name"
|
||||
assert portfolio.description == "a portfolio for things"
|
||||
|
||||
|
||||
def updating_ppoc_successfully(client, old_ppoc, new_ppoc, portfolio):
|
||||
|
Reference in New Issue
Block a user