Mock Patches Appearing in the Wrong Order? Question: I have a test module (test.py) which imports functions from another module (keyboard.py). keyboard.py def get_keys(keyList, timeStamped): return event.getKeys(keyList=keyList, timeStamped=timeStamped) def wait_keys(keyList, timeStamped): return event.waitKeys(keyList=keyList, timeStamped=timeStamped) test.py @mock.patch(‘keyboard.wait_keys’) @mock.patch(‘keyboard.get_keys’) def test_2(self, mock_waitKeys, mock_getKeys): mock_waitKeys.return_value = [[‘wait_keys!’, 0.1]] mock_getKeys.return_value = [[‘get_keys!’,0.1]] run_blocks(trials,noise,win,expInfo, incorrect, tone1, tone2, experiment_details,allPoints,32,60) I’m trying …
Total answers: 1