diff --git a/tests/test_config_stp.py b/tests/test_config_stp.py index 22e4fc89d4..8b34f89da2 100644 --- a/tests/test_config_stp.py +++ b/tests/test_config_stp.py @@ -254,6 +254,7 @@ def test_check_if_global_stp_enabled(): check_if_global_stp_enabled(mock_db, mock_ctx) mock_ctx.fail.assert_called_once_with("Global STP is not enabled - first configure STP mode") + def test_is_valid_stp_global_parameters(): # Create mock objects for db and ctx mock_db = MagicMock() @@ -314,6 +315,7 @@ def test_is_valid_stp_global_parameters(): mock_validate_params.assert_called_once_with("15", "20", "5") mock_ctx.fail.assert_called_once_with("2*(forward_delay-1) >= max_age >= 2*(hello_time +1 ) not met") + def test_get_global_stp_mode(): # Create a mock database mock_db = MagicMock()