Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/flask
/ MockCtx
Class
MockCtx
tests/test_cli.py:232–237 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
230
231
def
test_get_version(test_apps, capsys):
232
class
MockCtx:
233
resilient_parsing = False
234
color = None
235
236
def
exit(self):
237
return
238
239
ctx = MockCtx()
240
get_version(ctx, None,
"test"
)
Callers
1
test_get_version
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_get_version
Function · 0.68