diff --git a/jtop/core/fan.py b/jtop/core/fan.py index 8f574eba..56009717 100644 --- a/jtop/core/fan.py +++ b/jtop/core/fan.py @@ -454,9 +454,7 @@ def get_status(self): fan_status[name]['rpm'] = [int(cat(rpm)) for rpm in data['rpm']] # Check status fan control if self._nvfancontrol: - is_active = nvfancontrol_is_active() - print("nvfancontrol_is_active={is_active}".format(is_active=is_active)) - if is_active: + if nvfancontrol_is_active(): nvfan_query = nvfancontrol_query() for fan, nvfan in zip(fan_status, nvfan_query): fan_status[fan].update(nvfan_query[nvfan]) diff --git a/tox.ini b/tox.ini index ea240ccb..478aa919 100644 --- a/tox.ini +++ b/tox.ini @@ -46,7 +46,7 @@ commands = python setup.py check -m -s flake8 . # Run tests - py.test -v jtop/tests/test_02_fan.py::test_fan_set_profile + py.test -v [flake8] max-line-length = 160 @@ -61,9 +61,9 @@ exclude = select = E,W,F [pytest] -log_cli = true -addopts = --capture=no --ignore=jtop/tests_gui -# addopts = --ignore=jtop/tests_gui +# log_cli = true +# addopts = --capture=no --ignore=jtop/tests_gui +addopts = --ignore=jtop/tests_gui log_cli_level = DEBUG log_format = %(asctime)s [%(levelname)s] %(name)s - %(message)s log_date_format = %Y-%m-%d %H:%M:%S