/usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/supervisor/tests
NameSizeModeActions
fixtures/-0755rm
__pycache__/-0755rm
base.py358550644editdlrm
test_childutils.py53340644editdlrm
test_confecho.py3890644editdlrm
test_datatypes.py281290644editdlrm
test_dispatchers.py535610644editdlrm
test_end_to_end.py233130644editdlrm
test_events.py207600644editdlrm
test_http.py255080644editdlrm
test_http_client.py138190644editdlrm
test_loggers.py212940644editdlrm
test_options.py1459690644editdlrm
test_pidproxy.py5920644editdlrm
test_poller.py165330644editdlrm
test_process.py1058940644editdlrm
test_rpcinterfaces.py1062750644editdlrm
test_socket_manager.py84340644editdlrm
test_states.py21130644editdlrm
test_supervisorctl.py823950644editdlrm
test_supervisord.py346070644editdlrm
test_templating.py634870644editdlrm
test_web.py70130644editdlrm
test_xmlrpc.py358020644editdlrm
__init__.py200644editdlrm
Edit: /usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/supervisor/tests/test_states.py (2113B)
"""Test suite for supervisor.states""" import unittest from supervisor import states class TopLevelProcessStateTests(unittest.TestCase): def test_module_has_process_states(self): self.assertTrue(hasattr(states, 'ProcessStates')) def test_stopped_states_do_not_overlap_with_running_states(self): for state in states.STOPPED_STATES: self.assertFalse(state in states.RUNNING_STATES) def test_running_states_do_not_overlap_with_stopped_states(self): for state in states.RUNNING_STATES: self.assertFalse(state in states.STOPPED_STATES) def test_getProcessStateDescription_returns_string_when_found(self): state = states.ProcessStates.STARTING self.assertEqual(states.getProcessStateDescription(state), 'STARTING') def test_getProcessStateDescription_returns_None_when_not_found(self): self.assertEqual(states.getProcessStateDescription(3.14159), None) class TopLevelSupervisorStateTests(unittest.TestCase): def test_module_has_supervisor_states(self): self.assertTrue(hasattr(states, 'SupervisorStates')) def test_getSupervisorStateDescription_returns_string_when_found(self): state = states.SupervisorStates.RUNNING self.assertEqual(states.getSupervisorStateDescription(state), 'RUNNING') def test_getSupervisorStateDescription_returns_None_when_not_found(self): self.assertEqual(states.getSupervisorStateDescription(3.14159), None) class TopLevelEventListenerStateTests(unittest.TestCase): def test_module_has_eventlistener_states(self): self.assertTrue(hasattr(states, 'EventListenerStates')) def test_getEventListenerStateDescription_returns_string_when_found(self): state = states.EventListenerStates.ACKNOWLEDGED self.assertEqual(states.getEventListenerStateDescription(state), 'ACKNOWLEDGED') def test_getEventListenerStateDescription_returns_None_when_not_found(self): self.assertEqual(states.getEventListenerStateDescription(3.14159), None)