Forgot to add new folders
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
# This module defines fixtures which are shared for all tests of motor "lin1".
|
||||
|
||||
import pytest
|
||||
from common import MasterMACS
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def motor():
|
||||
return MasterMACS('masterMacs1', 'lin1')
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
# Run a selection of common tests
|
||||
|
||||
from tests.move import *
|
||||
from tests.sinqMotor.limits import *
|
||||
from tests.sinqMotor.masterMacs.reset import reset
|
||||
|
||||
|
||||
def test_reset(motor):
|
||||
reset(motor, 4)
|
||||
reset(motor, 2)
|
||||
|
||||
|
||||
def test_move_to_low_limit_switch(motor):
|
||||
reset(motor, 1)
|
||||
move_to_low_limit_switch(motor)
|
||||
|
||||
|
||||
def test_move_to_high_limit_switch(motor):
|
||||
reset(motor, 1)
|
||||
move_to_high_limit_switch(motor)
|
||||
|
||||
|
||||
def test_move_while_move(motor):
|
||||
reset(motor, 1)
|
||||
move_while_move(motor, -60, -20)
|
||||
|
||||
|
||||
def test_stop(motor):
|
||||
reset(motor, 1)
|
||||
stop(motor, 18)
|
||||
|
||||
# def test_reread_limits_from_hw(motor):
|
||||
# reread_limits_from_hw(motor)
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
# This module defines fixtures which are shared for all tests of motor "lin1".
|
||||
|
||||
import pytest
|
||||
from common import TurboPMAC
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def motor():
|
||||
return TurboPMAC('turboPmac1', 'lin1')
|
||||
Executable
+33
@@ -0,0 +1,33 @@
|
||||
# Run a selection of common tests
|
||||
|
||||
from tests.move import *
|
||||
from tests.sinqMotor.limits import *
|
||||
from tests.sinqMotor.turboPmac.reset import reset
|
||||
|
||||
|
||||
def test_stop_reset_enable_move_sequence(motor):
|
||||
reset(motor, 5)
|
||||
reset(motor, 0)
|
||||
|
||||
|
||||
def test_move_to_low_limit_switch(motor):
|
||||
reset(motor, -30)
|
||||
move_to_low_limit_switch(motor)
|
||||
|
||||
|
||||
def test_move_to_high_limit_switch(motor):
|
||||
reset(motor, -30)
|
||||
move_to_high_limit_switch(motor)
|
||||
|
||||
|
||||
def test_move_while_move(motor):
|
||||
reset(motor, -30)
|
||||
move_while_move(motor, -60, -20)
|
||||
|
||||
|
||||
def test_stop(motor):
|
||||
reset(motor, -30)
|
||||
stop(motor, -60)
|
||||
|
||||
# def test_reread_limits_from_hw(motor):
|
||||
# reread_limits_from_hw(motor)
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
# This module defines fixtures which are shared for all tests of motor "rot1".
|
||||
|
||||
import pytest
|
||||
from common import TurboPMAC
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def motor():
|
||||
return TurboPMAC('turboPmac1', 'rot1')
|
||||
Executable
+39
@@ -0,0 +1,39 @@
|
||||
# Run a selection of common tests
|
||||
|
||||
from tests.move import *
|
||||
from tests.sinqMotor.limits import *
|
||||
from tests.sinqMotor.turboPmac.reset import reset
|
||||
|
||||
|
||||
def test_stop_reset_enable_move_sequence(motor):
|
||||
reset(motor, 5)
|
||||
reset(motor, 0)
|
||||
|
||||
|
||||
def test_move_to_low_limit_switch(motor):
|
||||
reset(motor)
|
||||
move_to_low_limit_switch(motor)
|
||||
|
||||
|
||||
def test_move_to_high_limit_switch(motor):
|
||||
reset(motor)
|
||||
move_to_high_limit_switch(motor)
|
||||
|
||||
|
||||
def test_move_while_move(motor):
|
||||
reset(motor)
|
||||
move_while_move(motor, 1000, -1000)
|
||||
|
||||
|
||||
def test_stop(motor):
|
||||
reset(motor)
|
||||
stop(motor, 3000)
|
||||
|
||||
|
||||
def test_stop_then_move(motor):
|
||||
reset(motor)
|
||||
stop_then_move(motor, 0)
|
||||
|
||||
|
||||
# def test_reread_limits_from_hw(motor):
|
||||
# reread_limits_from_hw(motor)
|
||||
Reference in New Issue
Block a user