-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove check of default value in _non_empty_fields (#565)
- Loading branch information
1 parent
d9af0c2
commit 2fceb67
Showing
2 changed files
with
8 additions
and
6 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from docarray.score import NamedScore | ||
|
||
|
||
def test_str_representation(): | ||
assert str(NamedScore(value=0.0)) == str({'value': 0.0}) | ||
assert str(NamedScore(value=None)) == str(dict()) | ||
assert str(NamedScore(value=0.3)) == str({'value': 0.3}) |