-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_qt.py
More file actions
31 lines (22 loc) · 715 Bytes
/
Copy pathtest_qt.py
File metadata and controls
31 lines (22 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import os
import sys
import unittest
from PyQt6.QtWidgets import QApplication
import script as run
from qt_windows.qt_main import MainWindow
class TestQT(unittest.TestCase):
def test_receive_data(self):
"""
Test -> if qt_main properly transforms data into files and folders
"""
app = QApplication(sys.argv)
window = MainWindow()
window.receive_data(["STATEMENTS"],"JSON", "NAME")
def test_received_data_to_script(self):
"""
Test -> see if extraction in script.create_file() understands data
"""
dir_file = f"{os.getcwd()}\\test_finance"
run.create_file(dir_file)
if __name__ == '__main__':
unittest.main()