-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stable Fedora is on 1.26 while rawhide already has 2.2 we need to support both the function compute_certainty is not used in the CLI codebase but in server we need this to properly build detective in Fedora as an RPM Signed-off-by: Tomas Tomecek <[email protected]>
- Loading branch information
1 parent
81ad0d1
commit 2998ed1
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import pytest | ||
Check warning Code scanning / vcs-diff-lint Unable to import 'pytest' Warning test
Unable to import 'pytest'
|
||
from logdetective.utils import compute_certainty | ||
|
||
|
||
@pytest.mark.parametrize("probs",( | ||
[{"a": 66.6}], | ||
[{"b": 99.9}, {"c": 1.0}] | ||
)) | ||
def test_compute_certainty(probs): | ||
Check warning Code scanning / vcs-diff-lint test_compute_certainty: Missing function or method docstring Warning test
test_compute_certainty: Missing function or method docstring
|
||
compute_certainty(probs) |