Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add --notes flag (rebased) #405

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
notes: Fix tests.
  • Loading branch information
aero31aero committed Feb 11, 2021
commit 0cc052cfc805d3d06b0bbcc15b69f88aba849cdd
4 changes: 2 additions & 2 deletions tests/test_watson.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_frames_with_note(mocker, watson):
"My hovercraft is full of eels"]
])

mocker.patch('%s.open' % builtins, mocker.mock_open(read_data=content))
mocker.patch('builtins.open', mocker.mock_open(read_data=content))
assert len(watson.frames) == 1
frame = watson.frames['abcdefg']
assert frame.id == 'abcdefg'
Expand All @@ -169,7 +169,7 @@ def test_frames_without_note(mocker, watson):
[3621, 3630, 'foo', 'opqrstu', ['A', 'B', 'C'], 3630]
])

mocker.patch('%s.open' % builtins, mocker.mock_open(read_data=content))
mocker.patch('builtins.open', mocker.mock_open(read_data=content))
assert len(watson.frames) == 3
frame = watson.frames['abcdefg']
assert frame.id == 'abcdefg'
Expand Down