-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(indicators): add inverse parameter to coverage function and add inversed eubucco coverage #762
Conversation
@@ -39,8 +39,8 @@ def __init__( | |||
self.above_one_th = 1.30 | |||
|
|||
@classmethod | |||
async def coverage(cls) -> Polygon | MultiPolygon: | |||
result = await db_client.get_eubucco_coverage() | |||
async def coverage(cls, inverse=True) -> Polygon | MultiPolygon: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async def coverage(cls, inverse=True) -> Polygon | MultiPolygon: | |
async def coverage(cls, inverse=False) -> Polygon | MultiPolygon: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -43,9 +43,18 @@ def test_get_indicator_definitions_with_project(): | |||
assert indicator.projects == ["core"] | |||
|
|||
|
|||
def test_get_coverage(mock_select_eubucco_coverage): | |||
coverage = asyncio.run(definitions.get_coverage("building-comparison")) | |||
def test_get_coverage(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Description
Corresponding issue
Closes #749
New or changed dependencies
Checklist
main
(e.g. throughgit rebase main
)