We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12eb537 commit a1a040dCopy full SHA for a1a040d
tests/tests_asyncio/test_utils.py
@@ -166,6 +166,7 @@ class TestGetFloatSetting(IsolatedAsyncioTestCase):
166
async def test_get_float_setting(self):
167
settings = Settings(
168
{
169
+ "ZERO": 0,
170
"FLOAT": 1.5,
171
"DECIMAL": Decimal("2.5"),
172
"INT": 3,
@@ -175,6 +176,7 @@ async def test_get_float_setting(self):
175
176
"LIST": [1, 2, 3],
177
}
178
)
179
+ assert _get_float_setting(settings, "ZERO") == 0.0
180
assert _get_float_setting(settings, "FLOAT") == 1.5
181
assert _get_float_setting(settings, "DECIMAL") == 2.5
182
assert _get_float_setting(settings, "INT") == 3.0
0 commit comments