Skip to content

Commit

Permalink
Added pmac reset() test case
Browse files Browse the repository at this point in the history
  • Loading branch information
coretl committed Jul 31, 2017
1 parent 0453c0a commit 07be3c7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/test_modules/test_pmac/test_pmactrajectorypart.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,27 @@ def test_run(self):
assert self.child.handled_requests.mock_calls == [
call.post('executeProfile')]

def test_reset(self):
self.o.reset(self.context)
assert self.child.handled_requests.mock_calls == [
call.post('abortProfile'),
call.put('numPoints', 10),
call.put('useA', False),
call.put('useB', False),
call.put('useC', False),
call.put('useU', False),
call.put('useV', False),
call.put('useW', False),
call.put('useX', False),
call.put('useY', False),
call.put('useZ', False),
call.put('pointsToBuild', 1),
call.put('timeArray', [100000]),
call.put('userPrograms', [8]),
call.put('velocityMode', [3]),
call.post('buildProfile'),
call.post('executeProfile')]

def test_multi_run(self):
self.do_configure(axes_to_scan=["x"])
assert self.o.completed_steps_lookup == (
Expand Down

0 comments on commit 07be3c7

Please sign in to comment.