Fixed commands so all tests are passing
parent
6cdfe76505
commit
9f3a60d3c0
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue