def test_app_ctx_globals_pop() -> None: g = _AppCtxGlobals() g.foo = 'bar' # type: ignore assert g.pop('foo') == 'bar' assert g.pop('foo', None) is None with pytest.raises(KeyError): g.pop('foo')
def test_app_ctx_globals_pop() -> None: g = _AppCtxGlobals() g.foo = "bar" # type: ignore assert g.pop("foo") == "bar" assert g.pop("foo", None) is None with pytest.raises(KeyError): g.pop("foo")