From a873d1edb9a697c3a7f4b5c72adc4cad98307144 Mon Sep 17 00:00:00 2001 From: Enmanuel Date: Tue, 2 Jan 2024 12:33:46 -0500 Subject: [PATCH] Addressed review feedback from Ty --- Tests/test_pile_ui.gd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Tests/test_pile_ui.gd b/Tests/test_pile_ui.gd index 293e78fd..3318ff42 100644 --- a/Tests/test_pile_ui.gd +++ b/Tests/test_pile_ui.gd @@ -6,11 +6,11 @@ var _card_container_scroll_scene: PackedScene = load("res://#Scenes/CardScrollU var _card_container: CardContainer = null var _card_scroll: Control = null -const SCROLLCONTAINER = 2 -const GRIDCONTAINER = 0 +const SCROLL_CONTAINER = 2 +const GRID_CONTAINER = 0 -func _test_setter(): +func before_all(): _card_container = _card_container_scene.instantiate() _card_scroll = _card_container_scroll_scene.instantiate() @@ -32,11 +32,10 @@ func _test_setter(): func test_populate(): - _test_setter() _card_scroll.populate("DeckPile") var cards_in_pile: int = len(_card_scroll.deck_pile) - var grid: GridContainer = _card_scroll.get_child(SCROLLCONTAINER).get_child(GRIDCONTAINER) + var grid: GridContainer = _card_scroll.get_child(SCROLL_CONTAINER).get_child(GRID_CONTAINER) assert_eq(cards_in_pile, grid.get_child_count())