You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/test_backends_logic.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
"""
2
-
tests/test_backends_logic.py
2
+
Purpose: Structure verification for control scripts.
3
3
4
-
This file tests the LOGIC of the backends without connecting to hardware.
5
-
It is designed to handle Classes, Scripts with main(), or loose Procedural Scripts.
4
+
What it does: Analyzes your backend files to determine if they are classes, procedural scripts, or functions, and attempts to run them in a "dry" mode to verify their logic structure.
Copy file name to clipboardExpand all lines: tests/test_deep_simulation.py
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
"""
2
+
Purpose: Robustness and loop safety (Circuit Breakers).
3
+
4
+
What it does: Runs full measurement scripts while mocking time.sleep to prevent infinite loops. It acts as a "watchdog," forcing scripts to exit if they run too long, ensuring your while True loops don't freeze the test server.
Copy file name to clipboardExpand all lines: tests/test_full_stack_simulation.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
"""
2
+
Purpose: End-to-end protocol verification.
3
+
4
+
What it does: Simulates specific instrument responses (e.g., feeding fake temperature data like "10.0, 50.0" to the Lakeshore script) and verifies that the script sends the correct commands back (e.g., "HTRSET").
Copy file name to clipboardExpand all lines: tests/test_gui_layouts.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
"""
2
-
tests/test_gui_layouts.py
3
-
Tests GUI instantiation by deeply patching the Matplotlib Figure class.
2
+
Purpose: GUI instantiation stability.
3
+
4
+
What it does: Attempts to build the GUI windows in memory. It uses a "Safe" mock for Matplotlib to prevent graphing errors from crashing the test, ensuring the layout logic is sound.
Copy file name to clipboardExpand all lines: tests/test_gui_modules_initialization.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
"""
2
+
Purpose: Module-level GUI smoke tests.
3
+
4
+
What it does: Dynamically finds all files ending in _GUI.py, imports them, and tries to initialize their main class to ensure they don't crash on startup.
0 commit comments