Commit 17f96952 authored by Valentin Valls's avatar Valentin Valls
Browse files

Fix test integration in conda

parent 7569a195
......@@ -19,6 +19,14 @@ requirements:
- lima-tango-server
- lima-camera-simulator
test:
source_files:
- test
requires:
- pytest
commands:
- pytest test/test_tango.py
about:
home: https://github.com/esrf-bliss/Lima
license: GPL
......
......@@ -18,15 +18,24 @@ import time
import logging
import pytest
from Lima import Core
from Lima.Server.camera import Simulator
import mock
try:
from Lima.Server.camera import Simulator
_logger = logging.getLogger(__name__)
Camera = Simulator.Simulator
except:
# Skip this tests if lima-camera-simulator-tango was not installed
pytestmark = pytest.mark.skip
class Camera:
pass
class MockedSimulator(Simulator.Simulator):
_logger = logging.getLogger(__name__)
class MockedSimulator(Camera):
def __init__(self, properties=None):
"""
Attributes:
......
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