From 96c5441ac652bb2e7e396381d3fb2e0964ad68da Mon Sep 17 00:00:00 2001 From: Philip Paquette Date: Wed, 11 Sep 2019 17:34:18 -0400 Subject: channel.authenticate() - Deprecated argument 'create_user' - User is now created by default if it doesn't exist on the server - Unless the server prevents new registrations --- diplomacy/daide/tests/test_daide_game.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'diplomacy/daide/tests/test_daide_game.py') diff --git a/diplomacy/daide/tests/test_daide_game.py b/diplomacy/daide/tests/test_daide_game.py index 3e970b2..93c73b7 100644 --- a/diplomacy/daide/tests/test_daide_game.py +++ b/diplomacy/daide/tests/test_daide_game.py @@ -390,17 +390,15 @@ def run_game_data(nb_daide_clients, rules, csv_file): # Creating human player human_username = 'username' human_password = 'password' - human_create_user = not server.users.has_user(human_username, human_password) # Creating bot player to play for dummy powers bot_username = constants.PRIVATE_BOT_USERNAME bot_password = constants.PRIVATE_BOT_PASSWORD - bot_create_user = not server.users.has_user(bot_username, bot_password) # Connecting connection = yield connect(HOSTNAME, port) - human_channel = yield connection.authenticate(human_username, human_password, human_create_user) - bot_channel = yield connection.authenticate(bot_username, bot_password, bot_create_user) + human_channel = yield connection.authenticate(human_username, human_password) + bot_channel = yield connection.authenticate(bot_username, bot_password) # Joining human to game channels = {BOT_KEYWORD: bot_channel} -- cgit v1.2.3