From 48e39b18d921c8b3d354e8f3151a802011c2519e Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 11 Aug 2018 14:20:27 -0500 Subject: [PATCH] Added test cases for new admin commands --- test_commands.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test_commands.py b/test_commands.py index 3df890d..b28ecc9 100644 --- a/test_commands.py +++ b/test_commands.py @@ -234,3 +234,23 @@ class TestCommands(TestCase): else: self.fail() + def test_update_mc_uuid(self): + self.commands.register('ZeroHD', '143072699567177728') + + self.commands.update_mc_uuid('0', '143072699567177728') + + self.assertRaises(PlayerNotFound, self.commands.add_shop, 0, 0, shop_name='test shop', + mc_uuid='fe7e84132570458892032b69ff188bc3') + + def test_update_mc_name(self): + self.commands.register('ZeroHD', '143072699567177728') + + self.commands.update_mc_name('143072699567177728') + + def test_update_discord_uuid(self): + self.commands.register('ZeroHD', '143072699567177728') + + self.commands.update_discord_uuid('143072699567177728', '0') + + self.assertRaises(PlayerNotFound, self.commands.add_shop, 0, 0, shop_name='test shop', + discord_uuid='143072699567177728') \ No newline at end of file