Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/flask
/ fake_init_db
Function
fake_init_db
examples/tutorial/tests/test_db.py:23–24 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
called = False
22
23
def
fake_init_db():
24
Recorder.called = True
25
26
monkeypatch.setattr(
"flaskr.db.init_db"
, fake_init_db)
27
result = runner.invoke(args=[
"init-db"
])
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected