Skip to content

Commit

Permalink
Fix mocker
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrymakesjelly committed Jan 6, 2020
1 parent 5b4840c commit bd03dc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytest/test_strategies/test_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def test_strategies(mocker, test_data, test_env):

try:
# Make strategy and run
with mocker.patch('time.time', return_value=test_env['time.time']):
stgy = Strategy(conf_file, conf['test'])
stgy.execute(test_data)
mocker.patch('time.time', return_value=test_env['time.time'])
stgy = Strategy(conf_file, conf['test'])
stgy.execute(test_data)

# Check result
if 'remain' in conf:
Expand Down

0 comments on commit bd03dc6

Please sign in to comment.