Skip to content

Commit

Permalink
[tests-] editline needs a more structured color attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Oct 18, 2023
1 parent 571f20d commit b0ea901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visidata/tests/test_edittext.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_keys(self, mock_screen, keys, result, kwargs):
exception = kwargs.pop('exception', None)
if exception:
with pytest.raises(exception):
visidata.vd.editline(mock_screen, 0, 0, 0, **kwargs)
visidata.vd.editline(mock_screen, 0, 0, 0, attr=visidata.ColorAttr(), **kwargs)
else:
r = visidata.vd.editline(mock_screen, 0, 0, 0, **kwargs)
r = visidata.vd.editline(mock_screen, 0, 0, 0, attr=visidata.ColorAttr(), **kwargs)
assert r == result

0 comments on commit b0ea901

Please sign in to comment.