diff --git a/devices/__init__.py b/devices/__init__.py index e44e9d156619faa3b3623f025a35d9e815fe4445..efefae1d5db0635d66689134d6ec2972e0f230d8 100644 --- a/devices/__init__.py +++ b/devices/__init__.py @@ -1,3 +1,7 @@ -from ._version import get_versions -__version__ = get_versions()['version'] -del get_versions +import pbr.version + +__version__ = pbr.version.VersionInfo( + 'TangoStationControl').version_string() +# from ._version import get_versions +# __version__ = get_versions()['version'] +# del get_versions diff --git a/devices/test/__init__.py b/devices/test/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/devices/test/base.py b/devices/test/base.py new file mode 100644 index 0000000000000000000000000000000000000000..c3335dad5b6c10678f777928ff4ea7be3ef02a3f --- /dev/null +++ b/devices/test/base.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# +# This file is part of the PCC project +# +# +# +# Distributed under the terms of the APACHE license. +# See LICENSE.txt for more info. + +import testscenarios + + +class BaseTestCase(testscenarios.WithScenarios): + """Test base class.""" + + def setUp(self): + super().setUp() + + +class TestCase(BaseTestCase): + """Test case base class for all unit tests.""" + + def setUp(self): + super().setUp() diff --git a/devices/test/sdp/__init__.py b/devices/test/sdp/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/devices/test/sdp/test_sdp.py b/devices/test/sdp/test_sdp.py new file mode 100644 index 0000000000000000000000000000000000000000..5929acc0967b1710dba1666cb6660ddfb1495cb6 --- /dev/null +++ b/devices/test/sdp/test_sdp.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# +# This file is part of the PCC project +# +# +# +# Distributed under the terms of the APACHE license. +# See LICENSE.txt for more info. + +from devices.SDP import SDP + +from devices.test import base + + +class TestSDP(base.TestCase): + + def setUp(self): + super(TestSDP, self).setUp() + + def test_example(self): + self.assertEqual(5, 5)