summaryrefslogtreecommitdiffstats
path: root/unitest.py
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2024-03-17 17:07:13 +0100
committernicolargo <nicolas@nicolargo.com>2024-03-17 17:07:13 +0100
commit77167b8bce794db9383e748cfa0eee8577687cf6 (patch)
tree61033b8f6ef10fac78eedb2b7220f29f6179fb5c /unitest.py
parent272dc23443ab364fcbad2294627ac43e5688cb4c (diff)
Event is now a Dataclass
Diffstat (limited to 'unitest.py')
-rwxr-xr-xunitest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/unitest.py b/unitest.py
index 81162673..fe6fd5fc 100755
--- a/unitest.py
+++ b/unitest.py
@@ -32,7 +32,7 @@ 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 import GlancesEvents
+from glances.events_list import GlancesEventsList
# Global variables
# =================
@@ -298,7 +298,7 @@ class TestGlances(unittest.TestCase):
"""Test events class"""
print('INFO: [TEST_019] Test events')
# Init events
- events = GlancesEvents(max_events=5, min_duration=1, min_interval=3)
+ events = GlancesEventsList(max_events=5, min_duration=1, min_interval=3)
# Minimal event duration not reached
events.add('WARNING', 'LOAD', 4)
events.add('CRITICAL', 'LOAD', 5)