diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..0e05aa16 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +omit = atst/routes/dev.py diff --git a/tests/domain/test_reports.py b/tests/domain/test_reports.py index dcb0bfa8..1aa832ea 100644 --- a/tests/domain/test_reports.py +++ b/tests/domain/test_reports.py @@ -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