Skip to content

Commit 1cc3dbd

Browse files
committed
✅ Add test for overlapping multi output
1 parent 9225f2e commit 1cc3dbd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: tests/test_integration.py

+11
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,17 @@ def on_click_same_output(n_clicks):
605605

606606
self.assertTrue('output5' in context.exception.args[0])
607607

608+
with self.assertRaises(DuplicateCallbackOutput) as context:
609+
@app.callback([Output('output1', 'children'),
610+
Output('output5', 'children')],
611+
[Input('output-btn', 'n_clicks')])
612+
def overlapping_multi_output(n_clicks):
613+
return n_clicks
614+
615+
self.assertTrue(
616+
'{\'output1.children\'}' in context.exception.args[0]
617+
)
618+
608619
self.startServer(app)
609620

610621
t = time.time()

0 commit comments

Comments
 (0)