| 217 | |
| 218 | |
| 219 | def test_editor_data_items(editor_data): |
| 220 | assert list(editor_data.items(fallback=False)) == [ |
| 221 | ("item1", "value1"), |
| 222 | ] |
| 223 | assert ("item2", "fallback2") not in editor_data.items(fallback=False) |
| 224 | assert len(editor_data.items(fallback=False)) == 1 |
| 225 | |
| 226 | editor_data["item3"] = "x3" |
| 227 | assert list(editor_data.items()) == [ |
| 228 | ("item1", "value1"), |
| 229 | ("item2", "fallback2"), |
| 230 | ("item3", "x3"), |
| 231 | ] |
| 232 | assert ("item2", "fallback2") in editor_data.items() |
| 233 | assert ("item3", "x3") in editor_data.items() |
| 234 | assert len(editor_data.items()) == 3 |
| 235 | |
| 236 | |
| 237 | def test_editor_data_values(editor_data): |