Skip to content

Commit 2e42612

Browse files
committed
Forgot to patch curses.use_default_colors() and the stdscr.erase() method in 7a8ca77
1 parent 65ee6be commit 2e42612

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/test_viewer.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ def __init__(self):
4747
def clear():
4848
pass
4949

50+
@staticmethod
51+
def erase():
52+
pass
53+
5054
@staticmethod
5155
def getmaxyx():
5256
# Set y-value, so scrolling gets tested
@@ -105,6 +109,10 @@ def setUp(self):
105109
patch_curs_set.start()
106110
self.addCleanup(patch_curs_set.stop)
107111

112+
patch_use_default_colors = patch('curses.use_default_colors')
113+
patch_use_default_colors.start()
114+
self.addCleanup(patch_use_default_colors.stop)
115+
108116
patch_is_term_resized = patch('curses.is_term_resized')
109117
mock_is_term_resized = patch_is_term_resized.start()
110118
mock_is_term_resized.return_value = True if random.random() < .5 else False

0 commit comments

Comments
 (0)