MCPcopy Index your code
hub / github.com/plotly/dash / test_typi_callback_basic

Function test_typi_callback_basic

tests/compliance/test_callback_typing.py:116–124  ·  view source on GitHub ↗

Test that callback passes type checking in normal mode.

(typing_module, callback_code, expected_status, tmp_path)

Source from the content-addressed store, hash-verified

114 ],
115)
116def test_typi_callback_basic(typing_module, callback_code, expected_status, tmp_path):
117 """Test that callback passes type checking in normal mode."""
118 codefile = os.path.join(tmp_path, "code.py")
119 code = format_template_and_save(callback_template, codefile, callback_code)
120
121 output, error, status = run_module(codefile, typing_module)
122 assert (
123 status == expected_status
124 ), f"Status: {status}\nOutput: {output}\nError: {error}\nCode: {code}\nModule: {typing_module}"
125
126
127@pytest.mark.parametrize("typing_module", typing_modules)

Callers

nothing calls this directly

Calls 2

format_template_and_saveFunction · 0.90
run_moduleFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…