ignore dev routes for tests coverage and add placeholders for reports

This commit is contained in:
dandds 2018-10-09 10:28:19 -04:00
parent b667d3331c
commit d9d7917dd8
2 changed files with 22 additions and 0 deletions

2
.coveragerc Normal file
View File

@ -0,0 +1,2 @@
[run]
omit = atst/routes/dev.py

View File

@ -16,3 +16,23 @@ def test_workspace_totals():
report = Reports.workspace_totals(workspace)
total = 200 * len(CLIN_NUMS)
assert report == {"budget": total, "spent": 0}
# this is sketched in until we do real reporting
def test_monthly_totals():
request = RequestFactory.create()
workspace = WorkspaceFactory.create(request=request)
monthly = Reports.monthly_totals(workspace)
assert not monthly["environments"]
assert not monthly["projects"]
assert not monthly["workspace"]
# this is sketched in until we do real reporting
def test_cumulative_budget():
request = RequestFactory.create()
workspace = WorkspaceFactory.create(request=request)
months = Reports.cumulative_budget(workspace)
assert len(months["months"]) == 12