From 430b6f53940aedcb8b70a7a8480c5353459280e4 Mon Sep 17 00:00:00 2001 From: egut125 Date: Thu, 30 Dec 2021 23:52:09 -0500 Subject: [PATCH] Forgot the test name change --- src/game_stats.py | 2 +- test/game_stats_test.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game_stats.py b/src/game_stats.py index f1e79a0..c8bb63b 100644 --- a/src/game_stats.py +++ b/src/game_stats.py @@ -184,5 +184,5 @@ class GameStats: if __name__ == "__main__": game_stats = GameStats() - game_stats.log_item_pickup("rune_12", True) + game_stats.log_item_keep("rune_12", True) game_stats._save_stats_to_file() diff --git a/test/game_stats_test.py b/test/game_stats_test.py index 4f27429..32a6b25 100644 --- a/test/game_stats_test.py +++ b/test/game_stats_test.py @@ -16,10 +16,10 @@ class TestGameStats: ("some_potion", False), ("super_healing_potion", False), ]) - def test_log_item_pickup(self, item_name: str, item_should_be_added: bool): + def test_log_item_keep(self, item_name: str, item_should_be_added: bool): self.game_stats.update_location("test_location") previous_item_count = len(self.game_stats._location_stats["test_location"]["items"]) - self.game_stats.log_item_pickup(item_name, send_message=False) + self.game_stats.log_item_keep(item_name, send_message=False) new_item_count = len(self.game_stats._location_stats["test_location"]["items"]) item_was_added = previous_item_count < new_item_count assert(item_was_added == item_should_be_added)