Skip to content

Commit 8c9a4ba

Browse files
flask8 fix 3
1 parent cf0dd62 commit 8c9a4ba

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_iv_k6517b_simple_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
from unittest.mock import patch, MagicMock, mock_open, call
2+
from unittest.mock import patch, MagicMock, mock_open
33

44
# Import the main function from the script we want to test
55
from Keithley_6517B.High_Resistance.Backends.IV_K6517B_Simple_Backend_v10 import main as iv_simple_main

tests/test_pica_launcher.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# MOCK HELPER CLASSES for GUI Testing
66
# These classes simulate the necessary parts of the GUI environment (like Tkinter)
77
# -----------------------------------------------------------------------------
8+
9+
810
class MockTkWidget:
911
"""Mock object for Tkinter/PyQt widgets to simulate button interactions."""
1012
def __init__(self, command=None):
@@ -49,7 +51,7 @@ class TestPicaLauncher(unittest.TestCase):
4951
"""
5052
Tests the main PICA Launcher (PICA_v6.py) to ensure correct routing logic.
5153
"""
52-
54+
5355
# We patch the actual method that is called by the button to ensure it fires.
5456
@patch('test_pica_launcher.MockPicaLauncher.open_iv_sweep')
5557
def test_iv_sweep_button_click_calls_function(self, mock_open_iv_sweep):

0 commit comments

Comments
 (0)