Skip to content

Commit c3f94ee

Browse files
author
Martin Gejke
committed
Updated tests, still refers to hardcoded path though
1 parent 345f8e7 commit c3f94ee

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
":sys_platform=='win32'": ['pypiwin32']
1111
}
1212

13-
version = '1.0.1'
13+
version = '1.0.2'
1414

1515
setup(name='qtm',
1616
version=version,

test/rest_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_get_v1(self):
8181

8282
def test_get_experimental(self):
8383
d = self.rest.get_experimental()
84-
d.addCallback(self.assertEqual, ['command', 'settings', 'workerstate'])
84+
d.addCallback(self.assertEqual, ['command', 'measurements', 'settings', 'workerstate'])
8585
return d
8686

8787
def test_get_workerstate(self):

test/rt_test.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from qtm import QRT, QRTConnection, QRTCommandException
1313

1414

15+
MEASUREMENT = "e:/measurements/3d_analog_6dof_big27file.qtm"
16+
1517
class TestConnection(unittest.TestCase):
1618

1719
def setUp(self):
@@ -63,7 +65,7 @@ def setUp(self):
6365
self.qrt.connect(on_connect=self.on_connect, on_disconnect=None, on_event=None)
6466
yield self.defered_connection
6567
yield self.connection.take_control('password')
66-
yield self.connection.load("d:/measurements/3d_analog_6dof_big27file.qtm")
68+
yield self.connection.load(MEASUREMENT)
6769
yield self.connection.start(rtfromfile=True)
6870

6971
def tearDown(self):
@@ -171,7 +173,7 @@ def setUp(self):
171173
yield self.defered_connection
172174
yield self.defered_connection
173175
yield self.connection.take_control('password')
174-
yield self.connection.load("d:/measurements/3d_analog_6dof_big27file.qtm")
176+
yield self.connection.load(MEASUREMENT)
175177
yield self.connection.start(rtfromfile=True)
176178

177179
def tearDown(self):
@@ -268,7 +270,7 @@ def test_get_parameters(self):
268270
def test_multiple_commands(self):
269271
d = []
270272
d.append(self.connection.take_control("password"))
271-
d.append(self.connection.load("d:\measurements\FirstMiqusMeasurement.qtm"))
273+
d.append(self.connection.load(MEASUREMENT))
272274
d.append(self.connection.start(rtfromfile=True))
273275
d.append(self.connection.stop())
274276
d.append(self.connection.close())

0 commit comments

Comments
 (0)