예제 #1
0
파일: test_ctx.py 프로젝트: tharvik/quart
def test_app_ctx_globals_setdefault() -> None:
    g = _AppCtxGlobals()
    g.setdefault('foo', []).append('bar')
    assert g.foo == ['bar']  # type: ignore
예제 #2
0
def test_app_ctx_globals_setdefault() -> None:
    g = _AppCtxGlobals()
    g.setdefault("foo", []).append("bar")
    assert g.foo == ["bar"]  # type: ignore