Skip to content

Commit

Permalink
* Fix code formatting to follow linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sfider committed Nov 30, 2024
1 parent 3180edf commit d22cd80
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_watson.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ def json_mock(mocker):
# current

def test_current(mocker, watson):
content = json.dumps({'project': 'foo', 'start': 40000, 'tags': ['A', 'B']})
content = json.dumps({
'project': 'foo',
'start': 40000,
'tags': ['A', 'B']
})

mocker.patch('builtins.open', mocker.mock_open(read_data=content))
assert watson.current['project'] == 'foo'
Expand Down Expand Up @@ -441,7 +445,8 @@ def test_save_frames_no_change(config_dir, mocker, json_mock):


def test_save_added_frame(config_dir, mocker, json_mock):
watson = Watson(frames=[[40000, 40100, 'foo', None]], config_dir=config_dir)
watson = Watson(frames=[[40000, 40100, 'foo', None]],
config_dir=config_dir)
watson.frames.add('bar', 40100, 40200, ['A'])

mocker.patch('builtins.open', mocker.mock_open())
Expand Down

0 comments on commit d22cd80

Please sign in to comment.