Files
motorDriverTests/tests/el734_1/ax1/conftest.py

22 lines
484 B
Python

# This module defines fixtures which are shared for all tests of motor "lin1".
import time
import pytest
from src.classes import EL734
@pytest.fixture(scope="session", autouse=True)
def reset_and_home():
mot = EL734('el734_1', 'ax1')
mot.stop()
mot.reset()
mot.homeforward()
time.sleep(1)
mot.wait_for_done()
mot.logger.info("Finished initial 'reset_and_home' procedure.")
@pytest.fixture(autouse=True)
def motor():
return EL734('el734_1', 'ax1')