CORE/tests/test_resources/custom_module.gd

33 lines
1.2 KiB
GDScript

# CORE FRAMEWORK TEST FILE
# Copyright (c) 2024 The StarOpenSource Project & Contributors
# Licensed under the GNU Affero General Public License v3
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
extends CoreBaseModule
@onready var suite: BessereTestsTest = get_node_or_null("/root/suite_core")
func _initialize() -> void:
loggeri.info("Module has been initialized")
suite.callback = "_initialize"
func _cleanup() -> void:
loggeri.info("Cleaning module")
func _pull_config() -> void:
loggeri.info("The configuration has been updated")
suite.callback = "_pull_config"
func hello_test() -> String:
return "Hello Test!"