MCPcopy Create free account
hub / github.com/bpython/bpython / create_repl

Function create_repl

bpython/test/test_brackets_completion.py:20–31  ·  view source on GitHub ↗
(brackets_enabled=False, **kwargs)

Source from the content-addressed store, hash-verified

18
19
20def create_repl(brackets_enabled=False, **kwargs):
21 config = setup_config(
22 {"editor": "true", "brackets_completion": brackets_enabled}
23 )
24 repl = curtsiesrepl.BaseRepl(
25 config, cast(CursorAwareWindow, None), **kwargs
26 )
27 os.environ["PAGER"] = "true"
28 os.environ.pop("PYTHONSTARTUP", None)
29 repl.width = 50
30 repl.height = 20
31 return repl
32
33
34class TestBracketCompletionEnabled(TestCase):

Callers 2

setUpMethod · 0.70
setUpMethod · 0.70

Calls 1

setup_configFunction · 0.70

Tested by

no test coverage detected