test_init_db_command() — flask Function Reference
Architecture documentation for the test_init_db_command() function in test_db.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD d2918b13_eeb7_2b27_d0ae_6a8fa3270e14["test_init_db_command()"] 5fbc7fc1_d1e4_ea0b_c168_f334eb0d86e6["test_db.py"] d2918b13_eeb7_2b27_d0ae_6a8fa3270e14 -->|defined in| 5fbc7fc1_d1e4_ea0b_c168_f334eb0d86e6 style d2918b13_eeb7_2b27_d0ae_6a8fa3270e14 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
examples/tutorial/tests/test_db.py lines 19–29
def test_init_db_command(runner, monkeypatch):
class Recorder:
called = False
def fake_init_db():
Recorder.called = True
monkeypatch.setattr("flaskr.db.init_db", fake_init_db)
result = runner.invoke(args=["init-db"])
assert "Initialized" in result.output
assert Recorder.called
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_init_db_command() do?
test_init_db_command() is a function in the flask codebase, defined in examples/tutorial/tests/test_db.py.
Where is test_init_db_command() defined?
test_init_db_command() is defined in examples/tutorial/tests/test_db.py at line 19.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free