ignore dev routes for tests coverage and add placeholders for reports
This commit is contained in:
parent
b667d3331c
commit
d9d7917dd8
2
.coveragerc
Normal file
2
.coveragerc
Normal file
@ -0,0 +1,2 @@
|
||||
[run]
|
||||
omit = atst/routes/dev.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
|
||||
|
Loading…
x
Reference in New Issue
Block a user