Fixed commands so all tests are passing

doc_update
Joey Hines 2019-01-11 16:42:23 -06:00
parent 6cdfe76505
commit 9f3a60d3c0
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ def register(player_name, discord_uuid):
try:
get_player(mc_uuid=mc_uuid)
raise PlayerInDBError
except Player.DoesNotExist:
except PlayerNotFound:
player = Player.objects.create(name=player_name, mc_uuid=mc_uuid, discord_uuid=discord_uuid)
player.save()
return player.json

View File

@ -107,7 +107,7 @@ class CommandsAPITestCase(TestCase):
self.populate()
location = info(location_name="test")
self.assertEqual(location["Name"], "test")
self.assertEqual(location["name"], "test")
def test_tunnel(self):
self.populate()