MCPcopy
hub / github.com/plotly/dash / assert_item

Function assert_item

tests/integration/callbacks/test_wildcards.py:60–68  ·  view source on GitHub ↗
(item, text, done, prefix="", suffix="")

Source from the content-addressed store, hash-verified

58 return dash_duo.find_element(selector)
59
60 def assert_item(item, text, done, prefix="", suffix=""):
61 dash_duo.wait_for_text_to_equal(css_escape('#{"item":%d}' % item), text)
62
63 expected_note = "" if done else (prefix + " preceding items are done" + suffix)
64 dash_duo.wait_for_text_to_equal(
65 css_escape('#{"item":%d,"preceding":true}' % item), expected_note
66 )
67
68 assert bool(get_done_item(item).get_attribute("checked")) == done
69
70 new_item.send_keys("apples")
71 add_item.click()

Callers 1

test_cbwc001_todo_appFunction · 0.85

Calls 3

css_escapeFunction · 0.85
get_done_itemFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…