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

This commit is contained in:
2025-09-28 19:16:20 +04:00
parent c1f3f9f708
commit eb99c6a18e
46 changed files with 2608 additions and 1304 deletions

View File

@@ -83,16 +83,24 @@ func test_scene_constants():
TestHelperClass.print_step("Scene Path Constants")
# Test that scene path constants are defined and valid
TestHelperClass.assert_true("GAME_SCENE_PATH" in game_manager, "GAME_SCENE_PATH constant exists")
TestHelperClass.assert_true("MAIN_SCENE_PATH" in game_manager, "MAIN_SCENE_PATH constant exists")
TestHelperClass.assert_true(
"GAME_SCENE_PATH" in game_manager, "GAME_SCENE_PATH constant exists"
)
TestHelperClass.assert_true(
"MAIN_SCENE_PATH" in game_manager, "MAIN_SCENE_PATH constant exists"
)
# Test path format validation
var game_path = game_manager.GAME_SCENE_PATH
var main_path = game_manager.MAIN_SCENE_PATH
TestHelperClass.assert_true(game_path.begins_with("res://"), "Game scene path uses res:// protocol")
TestHelperClass.assert_true(
game_path.begins_with("res://"), "Game scene path uses res:// protocol"
)
TestHelperClass.assert_true(game_path.ends_with(".tscn"), "Game scene path has .tscn extension")
TestHelperClass.assert_true(main_path.begins_with("res://"), "Main scene path uses res:// protocol")
TestHelperClass.assert_true(
main_path.begins_with("res://"), "Main scene path uses res:// protocol"
)
TestHelperClass.assert_true(main_path.ends_with(".tscn"), "Main scene path has .tscn extension")
# Test that scene files exist
@@ -104,7 +112,7 @@ func test_input_validation():
TestHelperClass.print_step("Input Validation")
# Store original state
var _original_changing = game_manager.is_changing_scene
var original_changing = game_manager.is_changing_scene
var original_mode = game_manager.pending_gameplay_mode
# Test empty string validation
@@ -177,7 +185,7 @@ func test_gameplay_mode_validation():
# Test valid modes
var valid_modes = ["match3", "clickomania"]
for mode in valid_modes:
var _original_changing = game_manager.is_changing_scene
var original_changing = game_manager.is_changing_scene
# We'll test the validation logic without actually changing scenes
# by checking if the function would accept the mode