Skip to content

Commit 273abaa

Browse files
committed
Testing Chart error
1 parent 9c65fa2 commit 273abaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: jtop/gui/lib/chart.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(self, jetson, name, callback, type_value=int, line="*", color_text=
9696
jetson.attach(self.update)
9797

9898
@classmethod
99-
def reset_color_counter():
99+
def reset_color_counter(cls):
100100
Chart.COLOR_COUNTER = 0
101101

102102
def __del__(self):

Diff for: jtop/tests/test_05_gui.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_openGUI(setup_jtop_server):
4343
# Initialize colors
4444
curses.start_color()
4545
# Reset counter charts
46-
Chart.reset_color_counter = 0
46+
Chart.reset_color_counter()
4747
# Run jtop
4848
with jtop() as jetson:
4949
if jetson.ok():
@@ -52,7 +52,7 @@ def test_openGUI(setup_jtop_server):
5252
# Start with selected page
5353
pages.set(0)
5454
# Reset counter charts
55-
Chart.reset_color_counter = 0
55+
Chart.reset_color_counter()
5656
assert True
5757

5858

0 commit comments

Comments
 (0)