feat: refresh Tencent quotes from GUI
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user