feat: refresh Tencent quotes from GUI

This commit is contained in:
王鹏
2026-07-08 22:03:57 +08:00
parent f8cd9a92ab
commit 93e548d8a7
2 changed files with 11 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ def test_formatters_render_money_percent_and_empty_values():
def test_main_window_can_be_constructed_offscreen(tmp_path, monkeypatch):
monkeypatch.setenv("QT_QPA_PLATFORM", "offscreen")
from PySide6.QtWidgets import QApplication
from PySide6.QtWidgets import QApplication, QPushButton
from grid_trading.services.trading_service import TradingService
from grid_trading.ui.main_window import MainWindow
@@ -25,6 +25,7 @@ def test_main_window_can_be_constructed_offscreen(tmp_path, monkeypatch):
assert window.windowTitle() == "Grid Trading Manager"
assert window.holdings_table.columnCount() > 0
assert any(button.text() == "刷新行情" for button in window.findChildren(QPushButton))
window.close()
service.close()