lint fixes
Some checks failed
Continuous Integration / Code Formatting (pull_request) Successful in 27s
Continuous Integration / Code Quality Check (pull_request) Successful in 29s
Continuous Integration / Test Execution (pull_request) Failing after 33s
Continuous Integration / CI Summary (pull_request) Failing after 5s
Some checks failed
Continuous Integration / Code Formatting (pull_request) Successful in 27s
Continuous Integration / Code Quality Check (pull_request) Successful in 29s
Continuous Integration / Test Execution (pull_request) Failing after 33s
Continuous Integration / CI Summary (pull_request) Failing after 5s
This commit is contained in:
@@ -106,7 +106,9 @@ func test_audio_constants():
|
||||
|
||||
# Test that audio files exist
|
||||
TestHelperClass.assert_true(ResourceLoader.exists(music_path), "Music file exists at path")
|
||||
TestHelperClass.assert_true(ResourceLoader.exists(click_path), "Click sound file exists at path")
|
||||
TestHelperClass.assert_true(
|
||||
ResourceLoader.exists(click_path), "Click sound file exists at path"
|
||||
)
|
||||
|
||||
|
||||
func test_audio_player_initialization():
|
||||
@@ -166,7 +168,9 @@ func test_stream_loading_and_validation():
|
||||
|
||||
var loaded_click = load(audio_manager.UI_CLICK_SOUND_PATH)
|
||||
TestHelperClass.assert_not_null(loaded_click, "Click resource loads successfully")
|
||||
TestHelperClass.assert_true(loaded_click is AudioStream, "Loaded click sound is AudioStream type")
|
||||
TestHelperClass.assert_true(
|
||||
loaded_click is AudioStream, "Loaded click sound is AudioStream type"
|
||||
)
|
||||
|
||||
|
||||
func test_audio_bus_configuration():
|
||||
@@ -199,7 +203,7 @@ func test_volume_management():
|
||||
# Store original volume
|
||||
var settings_manager = root.get_node("SettingsManager")
|
||||
var original_volume = settings_manager.get_setting("music_volume")
|
||||
var _was_playing = audio_manager.music_player.playing
|
||||
var was_playing = audio_manager.music_player.playing
|
||||
|
||||
# Test volume update to valid range
|
||||
audio_manager.update_music_volume(0.5)
|
||||
@@ -249,7 +253,7 @@ func test_music_playback_control():
|
||||
|
||||
# Test playback state management
|
||||
# Note: We test the control methods exist and can be called safely
|
||||
var _original_playing = audio_manager.music_player.playing
|
||||
var original_playing = audio_manager.music_player.playing
|
||||
|
||||
# Test that playback methods can be called without errors
|
||||
if audio_manager.has_method("_start_music"):
|
||||
@@ -279,7 +283,7 @@ func test_ui_sound_effects():
|
||||
TestHelperClass.assert_not_null(audio_manager.click_stream, "Click stream is loaded")
|
||||
|
||||
# Test that play_ui_click can be called safely
|
||||
var _original_stream = audio_manager.ui_click_player.stream
|
||||
var original_stream = audio_manager.ui_click_player.stream
|
||||
audio_manager.play_ui_click()
|
||||
|
||||
# Verify click stream was assigned to player
|
||||
|
||||
Reference in New Issue
Block a user