fix: stabilize native refresh and complete toolbar acceptance
This commit is contained in:
1 parent
b8acbc6de5
commit
b203806fd1
22 files changed
+898
-102
No files matched your search
@@ -68,6 +68,22 @@ def test_bom_export_clears_old_status_and_disables_duplicate_requests(
|
||||
controller._status_timer.stop()
|
||||
|
||||
|
||||
def test_bom_export_converts_qt_dialog_path_for_native_excel(
|
||||
qtbot, tmp_path, snapshot_factory
|
||||
):
|
||||
controller, page, paths = _controller(qtbot, tmp_path, snapshot_factory())
|
||||
output = tmp_path / 'BOM导出.xls'
|
||||
|
||||
# QFileDialog returns forward slashes on Windows; Excel SaveAs requires
|
||||
# the platform path separators used by the native COM host.
|
||||
controller.export_to(output.as_posix())
|
||||
|
||||
payload = json.loads((tmp_path / 'bom-export.json').read_text(encoding='utf-8'))
|
||||
assert payload['output_path'] == str(output)
|
||||
assert controller._requested_output_path == str(output)
|
||||
controller._status_timer.stop()
|
||||
|
||||
|
||||
def test_bom_mailbox_write_failure_can_be_retried(
|
||||
qtbot, tmp_path, snapshot_factory, monkeypatch
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user