Remove test because it breaks the CI test

This commit is contained in:
nicolargo 2025-11-10 07:48:03 +01:00
parent a74b1867d7
commit b2e3ea283d
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,8 @@ core = GlancesMain(args_begin_at=2)
test_config = core.get_config()
test_args = core.get_args()
test_args.conf_file = './conf/glances.conf'
# Init Glances stats
stats = GlancesStats(config=test_config, args=test_args)
@ -75,6 +77,9 @@ class TestGlances(unittest.TestCase):
"""Common method to test a Glances plugin
This method is called multiple time by test 100 to 1xx"""
assert stats.args.conf_file == './conf/glances.conf', 'Configuration file not correctly set in stats'
# But not take into account
# Reset all the stats, history and views
plugin_instance = stats.get_plugin(plugin)
plugin_instance.reset() # reset stats