MCPcopy
hub / github.com/jazzband/django-constance / test_amget

Method test_amget

tests/test_async.py:27–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 self.assertTrue(any("Synchronous access" in str(warn.message) for warn in w))
26
27 async def test_amget(self):
28 values = await config.amget(["INT_VALUE", "BOOL_VALUE"])
29 self.assertEqual(values["INT_VALUE"], 1)
30 self.assertEqual(values["BOOL_VALUE"], True)
31
32 async def test_sync_math_in_async_loop(self):
33 # Accessing math should work but emit warning

Callers

nothing calls this directly

Calls 1

amgetMethod · 0.45

Tested by

no test coverage detected