Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan-pro committed Feb 23, 2022
1 parent 48f7877 commit 0c3a023
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aimmo-game-creator/tests/test_game_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_added_games_given_correct_url(self):
def test_token_generation(self):
token = self.game_manager._generate_game_token()
assert isinstance(token, str)
self.assertLessEqual(len(token), TOKEN_MAX_LENGTH)
assert len(token) <= TOKEN_MAX_LENGTH

def test_adding_a_game_creates_game_allocation(self):
game_manager = KubernetesGameManager("http://test/*")
Expand Down
4 changes: 2 additions & 2 deletions aimmo-game-creator/tests/test_kube_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def test_secret_is_loaded_and_data_is_added_correctly(self):
"""
Ensures the secret object is created correctly with the correct data filled in.
"""
self.assertIsNotNone(self.secret.metadata)
self.assertIsNotNone(self.secret.string_data)
assert self.secret.metadata is not None
assert self.secret.string_data is not None
assert self.secret.metadata.name == "game-1-token"
assert self.secret.metadata.namespace == "default"
assert self.secret.string_data["token"] == "TEST_TOKEN"
2 changes: 1 addition & 1 deletion aimmo-game/tests/test_simulation/test_world_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def test_attackable_avatar_returns_none(self):
world_map = WorldMap(generate_grid(), self.settings)
for x in (0, 1):
for y in (0, 1):
self.assertIsNone(world_map.attackable_avatar(Location(x, y)))
assert world_map.attackable_avatar(Location(x, y)) is None

def test_attackable_avatar_returns_avatar(self):
avatar = DummyAvatar()
Expand Down

0 comments on commit 0c3a023

Please sign in to comment.