diff --git a/test/UIController_test.py b/test/UIController_test.py index 362e289..2dacf8f 100644 --- a/test/UIController_test.py +++ b/test/UIController_test.py @@ -1,12 +1,21 @@ import tkinter as tk from tkinter import ttk +import pytest + from controller.UIController import UIController +from entity.BilibiliVideo import BilibiliVideo class TestUIController: + @pytest.mark.skip(reason="函数会展开UI窗口,请手动测试。") def test_main(self): UI = UIController() + ##测试数据 + data1 = BilibiliVideo(2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) + data2 = BilibiliVideo(2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) + text_date = [data1, data2] + UI.scRuslt_data=text_date UI.main() # # 创建主窗口 # root = tk.Tk()