Skip to content

Commit

Permalink
Fix tests after changing mock to mocker
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Nielsen authored and jmaupetit committed Mar 20, 2020
1 parent 581d710 commit 2c7a17e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_watson.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ def test_report_current(mocker, config_dir):
(3600 * 48, True, 3600.0),
)
)
def test_report_include_partial_frames(mock, watson, date_as_unixtime,
def test_report_include_partial_frames(mocker, watson, date_as_unixtime,
include_partial, sum_):
"""Test report building with frames that cross report boundaries
Expand All @@ -844,7 +844,7 @@ def test_report_include_partial_frames(mock, watson, date_as_unixtime,
["cli"],
1548797432
]])
mock.patch('%s.open' % builtins, mock.mock_open(read_data=content))
mocker.patch('%s.open' % builtins, mocker.mock_open(read_data=content))
date = arrow.get(date_as_unixtime)
report = watson.report(
from_=date, to=date, include_partial_frames=include_partial,
Expand Down

0 comments on commit 2c7a17e

Please sign in to comment.