MCPcopy Create free account
hub / github.com/microsoft/debugpy / start_django

Function start_django

tests/debugpy/test_django.py:28–42  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

26
27@pytest.fixture
28def start_django(run):
29 def start(session, multiprocess=False):
30 # No clean way to kill Django server, expect non-zero exit code
31 session.expected_exit_code = some.int
32
33 session.config.update({"django": True, "subProcess": bool(multiprocess)})
34
35 args = ["runserver"]
36 if not multiprocess:
37 args += ["--noreload"]
38 args += ["--", str(django_server.port)]
39
40 return run(session, targets.Program(paths.app_py, args=args), cwd=paths.django1)
41
42 return start
43
44
45@pytest.mark.parametrize("bp_target", ["code", "template"])

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…