Remove rednundant if __main__ from hardware tests

This commit is contained in:
Julian Stirling 2025-06-25 16:01:59 +01:00
parent ce5b5b781c
commit 0751457ed3
2 changed files with 0 additions and 8 deletions

View file

@ -69,7 +69,3 @@ def test_exposure_time_drift():
"""
for desired_time in [100, 1000, 10000]:
_test_exposure_time_drift(desired_time)
if __name__ == "__main__":
test_exposure_time_drift()

View file

@ -28,7 +28,3 @@ def test_sensor_mode():
# Note: Numpy array shape is (y,x), but the sensor is set with (x,y)
# hence the need to compare index 0 with index 1.
assert arr.shape[0] == size[1]
if __name__ == "__main__":
test_sensor_mode()