更新
This commit is contained in:
@@ -356,8 +356,11 @@ def test_notes_render_cover_thumbnail_and_keep_safe_open_and_single_delete(
|
||||
assert thumb._apply_payload(_png_bytes(192, 96), thumb._generation)
|
||||
assert thumb.property("loadState") == "ready"
|
||||
assert thumb._rendered_pixmap.size() == QSize(64, 64)
|
||||
previews: list[tuple[list[str], int]] = []
|
||||
timeline.preview_images_requested.connect(lambda sources, index: previews.append((sources, index)))
|
||||
thumb.click()
|
||||
assert opened == [tongue_url]
|
||||
assert opened == []
|
||||
assert previews == [([tongue_url], 0)]
|
||||
|
||||
remove_buttons = timeline.findChildren(QPushButton, "DiagnosisAttachmentRemove")
|
||||
assert len(remove_buttons) == 2
|
||||
|
||||
Reference in New Issue
Block a user