Commit 840acd3c authored by Linus Pithan's avatar Linus Pithan
Browse files

add test for type checking in umvr

parent daec003e
......@@ -4,7 +4,7 @@ import time
import pytest
from import wa, wm, sta, stm, _launch_silx
from import wa, wm, sta, stm, _launch_silx, umv
......@@ -195,6 +195,18 @@ def execute_in_subprocess(command):
return output.decode(), err.decode(), returncode
def test_umv_typecheck(session):
m0 = session.env_dict["m0"]
umv(m0, 1.2)
with pytest.raises(RuntimeError):
umv(m0, 1, 2)
with pytest.raises(TypeError):
umv(1, m0)
with pytest.raises(RuntimeError):
def test_umvr_lib_mode(capsys, default_session):
"""lprint should not show anything"""
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