diff options
author | Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> | 2024-05-17 02:23:53 +0530 |
---|---|---|
committer | Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> | 2024-05-17 03:36:53 +0530 |
commit | d392caf6f65286f6b6a38b0f5b28adb391c28ac8 (patch) | |
tree | 423385d1fb491594575ff2c8451561c9ed096bce /unittest-core.py | |
parent | 9890749d8101ee94cad1254e0349bde0ff3b2722 (diff) |
chg: ruff - isort fixes
Diffstat (limited to 'unittest-core.py')
-rwxr-xr-x | unittest-core.py | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/unittest-core.py b/unittest-core.py index cdaa6ea4..9383883c 100755 --- a/unittest-core.py +++ b/unittest-core.py @@ -10,31 +10,33 @@ """Glances unitary tests suite.""" +import json +import sys import time import unittest -import sys -import json # Check Python version if sys.version_info < (3, 8): print('Glances requires at least Python 3.8 to run.') sys.exit(1) -from glances.main import GlancesMain -from glances.stats import GlancesStats from glances import __version__ -from glances.globals import WINDOWS, LINUX, subsample, string_value_to_float +from glances.events_list import GlancesEventsList +from glances.filter import GlancesFilter, GlancesFilterList +from glances.globals import LINUX, WINDOWS, string_value_to_float, subsample +from glances.main import GlancesMain from glances.outputs.glances_bars import Bar -from glances.thresholds import GlancesThresholdOk -from glances.thresholds import GlancesThresholdCareful -from glances.thresholds import GlancesThresholdWarning -from glances.thresholds import GlancesThresholdCritical -from glances.thresholds import GlancesThresholds from glances.plugins.plugin.model import GlancesPluginModel from glances.programs import processes_to_programs from glances.secure import secure_popen -from glances.events_list import GlancesEventsList -from glances.filter import GlancesFilterList, GlancesFilter +from glances.stats import GlancesStats +from glances.thresholds import ( + GlancesThresholdCareful, + GlancesThresholdCritical, + GlancesThresholdOk, + GlancesThresholds, + GlancesThresholdWarning, +) # Global variables # ================= |