fix: fix json migration UI and tests (#1484)

* fix: fix json migration UI and tests

* fix: just replace the Qt stuff with the actual iterator, please

* fix: skip UI iterator logic and just run iterator in migration modal

* fix: remove unnecessary for loop in test
This commit is contained in:
Travis Abendshien
2026-08-16 23:12:47 -07:00
committed by GitHub
parent 7e7def5a52
commit 12fd4933be
2 changed files with 7 additions and 17 deletions
-5
View File
@@ -3,7 +3,6 @@
from pathlib import Path
from time import time
from tagstudio.qt.mixed.migration_modal import JsonMigrationModal
@@ -14,10 +13,6 @@ def test_json_migration():
modal = JsonMigrationModal(CWD.parent / "fixtures" / "json_library")
modal.migrate(skip_ui=True)
start = time()
while not modal.done and (time() - start < 60):
pass
# Entries ==================================================================
# Count
assert len(modal.json_lib.entries) == modal.sql_lib.entries_count