fix: trace job imported wordcloud stickers
This commit is contained in:
@@ -145,6 +145,15 @@ def test_scanner_skips_wordcloud_without_job_id():
|
||||
assert find_visible_wordcloud_sources(document, assets.__getitem__) == []
|
||||
|
||||
|
||||
def test_scanner_accepts_job_imported_wordcloud_stickers():
|
||||
document = {"elements": [{"type": "sticker", "assetId": "wc-a"}]}
|
||||
assets = {"wc-a": {"type": "sticker", "job_id": "a" * 32}}
|
||||
|
||||
assert find_visible_wordcloud_sources(document, assets.__getitem__) == [
|
||||
WordcloudSource("wc-a", "a" * 32)
|
||||
]
|
||||
|
||||
|
||||
def test_snapshot_rejects_non_sqlite_file_without_creating_destination(tmp_path):
|
||||
source = tmp_path / "not-a-database.sqlite"
|
||||
destination = tmp_path / "archive" / "word_locations.sqlite"
|
||||
|
||||
Reference in New Issue
Block a user