def test_is_pve_game_stockfish_disabled(self): game = Game() game.cpu_level = 0 chess_bot = Chess() chess_bot.stockfish_path = "" chess_bot.games.append(game) self.assertFalse(chess_bot.is_pve_game(game))
def test_is_pve_game_pvp_game(self): game = Game() game.cpu_level = None chess_bot = Chess() chess_bot.stockfish_path = "valid" chess_bot.games.append(game) self.assertFalse(chess_bot.is_pve_game(game))