Move creating Aardvark and Beluga from remove_sampe_data to seed_sample;

Refactor seed_sample into reusable functions;
Rename Aardvark to A-Wing and Beluga to B-Wing, and use Star Wars names
for other portfolios
This commit is contained in:
leigh-mil
2019-03-01 14:52:10 -05:00
parent 7919dcdac8
commit 201e4e9e35
4 changed files with 137 additions and 169 deletions

View File

@@ -81,7 +81,7 @@ def test_portfolio_reports(client, user_session):
def test_portfolio_reports_with_mock_portfolio(client, user_session):
portfolio = PortfolioFactory.create(name="Aardvark")
portfolio = PortfolioFactory.create(name="A-Wing")
user_session(portfolio.owner)
response = client.get(
url_for("portfolios.portfolio_reports", portfolio_id=portfolio.id)