Fixed commands so all tests are passing
parent
6cdfe76505
commit
9f3a60d3c0
|
@ -100,7 +100,7 @@ def register(player_name, discord_uuid):
|
||||||
try:
|
try:
|
||||||
get_player(mc_uuid=mc_uuid)
|
get_player(mc_uuid=mc_uuid)
|
||||||
raise PlayerInDBError
|
raise PlayerInDBError
|
||||||
except Player.DoesNotExist:
|
except PlayerNotFound:
|
||||||
player = Player.objects.create(name=player_name, mc_uuid=mc_uuid, discord_uuid=discord_uuid)
|
player = Player.objects.create(name=player_name, mc_uuid=mc_uuid, discord_uuid=discord_uuid)
|
||||||
player.save()
|
player.save()
|
||||||
return player.json
|
return player.json
|
||||||
|
|
|
@ -107,7 +107,7 @@ class CommandsAPITestCase(TestCase):
|
||||||
self.populate()
|
self.populate()
|
||||||
location = info(location_name="test")
|
location = info(location_name="test")
|
||||||
|
|
||||||
self.assertEqual(location["Name"], "test")
|
self.assertEqual(location["name"], "test")
|
||||||
|
|
||||||
def test_tunnel(self):
|
def test_tunnel(self):
|
||||||
self.populate()
|
self.populate()
|
||||||
|
|
Loading…
Reference in New Issue