diff --git a/jtop/tests/test_05_gui.py b/jtop/tests/test_05_gui.py index ff119548..615afa29 100644 --- a/jtop/tests/test_05_gui.py +++ b/jtop/tests/test_05_gui.py @@ -24,10 +24,8 @@ from ..gui import JTOPGUI, ALL, GPU, CPU, MEM, ENGINE, CTRL, INFO -@pytest.fixture(autouse=True) -def reset_cube_test(): - Chart.reset_color_counter() - yield +@pytest.fixture +def reset_chart(): Chart.reset_color_counter() @@ -44,7 +42,7 @@ def openGUI(stdscr, jetson): return pages -def test_openGUI(setup_jtop_server): +def test_openGUI(setup_jtop_server, reset_chart): # Load command line controller stdscr = curses.initscr() # Initialize colors