|
12 | 12 | from qtm import QRT, QRTConnection, QRTCommandException
|
13 | 13 |
|
14 | 14 |
|
| 15 | +MEASUREMENT = "e:/measurements/3d_analog_6dof_big27file.qtm" |
| 16 | + |
15 | 17 | class TestConnection(unittest.TestCase):
|
16 | 18 |
|
17 | 19 | def setUp(self):
|
@@ -63,7 +65,7 @@ def setUp(self):
|
63 | 65 | self.qrt.connect(on_connect=self.on_connect, on_disconnect=None, on_event=None)
|
64 | 66 | yield self.defered_connection
|
65 | 67 | yield self.connection.take_control('password')
|
66 |
| - yield self.connection.load("d:/measurements/3d_analog_6dof_big27file.qtm") |
| 68 | + yield self.connection.load(MEASUREMENT) |
67 | 69 | yield self.connection.start(rtfromfile=True)
|
68 | 70 |
|
69 | 71 | def tearDown(self):
|
@@ -171,7 +173,7 @@ def setUp(self):
|
171 | 173 | yield self.defered_connection
|
172 | 174 | yield self.defered_connection
|
173 | 175 | yield self.connection.take_control('password')
|
174 |
| - yield self.connection.load("d:/measurements/3d_analog_6dof_big27file.qtm") |
| 176 | + yield self.connection.load(MEASUREMENT) |
175 | 177 | yield self.connection.start(rtfromfile=True)
|
176 | 178 |
|
177 | 179 | def tearDown(self):
|
@@ -268,7 +270,7 @@ def test_get_parameters(self):
|
268 | 270 | def test_multiple_commands(self):
|
269 | 271 | d = []
|
270 | 272 | d.append(self.connection.take_control("password"))
|
271 |
| - d.append(self.connection.load("d:\measurements\FirstMiqusMeasurement.qtm")) |
| 273 | + d.append(self.connection.load(MEASUREMENT)) |
272 | 274 | d.append(self.connection.start(rtfromfile=True))
|
273 | 275 | d.append(self.connection.stop())
|
274 | 276 | d.append(self.connection.close())
|
|
0 commit comments