We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ee6be commit 2e42612Copy full SHA for 2e42612
1 file changed
test/test_viewer.py
@@ -47,6 +47,10 @@ def __init__(self):
47
def clear():
48
pass
49
50
+ @staticmethod
51
+ def erase():
52
+ pass
53
+
54
@staticmethod
55
def getmaxyx():
56
# Set y-value, so scrolling gets tested
@@ -105,6 +109,10 @@ def setUp(self):
105
109
patch_curs_set.start()
106
110
self.addCleanup(patch_curs_set.stop)
107
111
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
108
116
patch_is_term_resized = patch('curses.is_term_resized')
117
mock_is_term_resized = patch_is_term_resized.start()
118
mock_is_term_resized.return_value = True if random.random() < .5 else False
0 commit comments