Commit ccd3678f authored by Vincent Michel's avatar Vincent Michel
Browse files

Investigate testing issues

parent f032d2c8
[tool:pytest]
addopts = tests/motors tests/acquisition tests/comm tests/misc --cov bliss --cov-report html --cov-report term -v --fulltrace
addopts = tests/motors tests/acquisition tests/misc --cov bliss --cov-report html --cov-report term -v --fulltrace
# tests/comm
[aliases]
test=pytest
\ No newline at end of file
......@@ -38,5 +38,4 @@ def beacon():
client._default_connection = beacon_connection
cfg = static.get_config()
yield cfg
# finalization
p.terminate()
......@@ -6,6 +6,7 @@
# Distributed under the GNU LGPLv3. See LICENSE for more info.
import pytest
import gevent
from contextlib import contextmanager
......@@ -19,7 +20,8 @@ def motor_context(beacon, name):
m.controller.set_hw_limits(m, None, None)
m.dial(0)
m.position(0)
beacon.reload()
gevent.sleep(0)
@contextmanager
def calc_motor_context(beacon, name):
......@@ -28,7 +30,7 @@ def calc_motor_context(beacon, name):
yield m
m.stop()
m.wait_move()
# m.apply_config()
gevent.sleep(0)
@pytest.fixture
......
......@@ -12,6 +12,7 @@ import gevent.event
from bliss.common import event
from bliss.common.axis import get_axis, Modulo
def test_property_setting(robz):
assert robz.velocity() == 100
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment