Skip to content

Commit a1a040d

Browse files
committed
Test zero value
1 parent 12eb537 commit a1a040d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tests_asyncio/test_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ class TestGetFloatSetting(IsolatedAsyncioTestCase):
166166
async def test_get_float_setting(self):
167167
settings = Settings(
168168
{
169+
"ZERO": 0,
169170
"FLOAT": 1.5,
170171
"DECIMAL": Decimal("2.5"),
171172
"INT": 3,
@@ -175,6 +176,7 @@ async def test_get_float_setting(self):
175176
"LIST": [1, 2, 3],
176177
}
177178
)
179+
assert _get_float_setting(settings, "ZERO") == 0.0
178180
assert _get_float_setting(settings, "FLOAT") == 1.5
179181
assert _get_float_setting(settings, "DECIMAL") == 2.5
180182
assert _get_float_setting(settings, "INT") == 3.0

0 commit comments

Comments
 (0)