From 668a4ed6340af618a6f7a45ab89348d4b7fd580f Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Sat, 26 May 2018 14:35:59 -0700 Subject: [PATCH] game_of_fifteen: Use consistent naming & simplify imports. --- .../bots/{gameoffifteen => game_of_fifteen}/__init__.py | 0 .../gameoffifteen.py => game_of_fifteen/game_of_fifteen.py} | 0 .../{gameoffifteen => game_of_fifteen}/requirements.txt | 0 .../test_game_of_fifteen.py | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename zulip_bots/zulip_bots/bots/{gameoffifteen => game_of_fifteen}/__init__.py (100%) rename zulip_bots/zulip_bots/bots/{gameoffifteen/gameoffifteen.py => game_of_fifteen/game_of_fifteen.py} (100%) rename zulip_bots/zulip_bots/bots/{gameoffifteen => game_of_fifteen}/requirements.txt (100%) rename zulip_bots/zulip_bots/bots/{gameoffifteen => game_of_fifteen}/test_game_of_fifteen.py (97%) diff --git a/zulip_bots/zulip_bots/bots/gameoffifteen/__init__.py b/zulip_bots/zulip_bots/bots/game_of_fifteen/__init__.py similarity index 100% rename from zulip_bots/zulip_bots/bots/gameoffifteen/__init__.py rename to zulip_bots/zulip_bots/bots/game_of_fifteen/__init__.py diff --git a/zulip_bots/zulip_bots/bots/gameoffifteen/gameoffifteen.py b/zulip_bots/zulip_bots/bots/game_of_fifteen/game_of_fifteen.py similarity index 100% rename from zulip_bots/zulip_bots/bots/gameoffifteen/gameoffifteen.py rename to zulip_bots/zulip_bots/bots/game_of_fifteen/game_of_fifteen.py diff --git a/zulip_bots/zulip_bots/bots/gameoffifteen/requirements.txt b/zulip_bots/zulip_bots/bots/game_of_fifteen/requirements.txt similarity index 100% rename from zulip_bots/zulip_bots/bots/gameoffifteen/requirements.txt rename to zulip_bots/zulip_bots/bots/game_of_fifteen/requirements.txt diff --git a/zulip_bots/zulip_bots/bots/gameoffifteen/test_game_of_fifteen.py b/zulip_bots/zulip_bots/bots/game_of_fifteen/test_game_of_fifteen.py similarity index 97% rename from zulip_bots/zulip_bots/bots/gameoffifteen/test_game_of_fifteen.py rename to zulip_bots/zulip_bots/bots/game_of_fifteen/test_game_of_fifteen.py index 8c446e4..830b8d1 100644 --- a/zulip_bots/zulip_bots/bots/gameoffifteen/test_game_of_fifteen.py +++ b/zulip_bots/zulip_bots/bots/game_of_fifteen/test_game_of_fifteen.py @@ -2,13 +2,13 @@ from zulip_bots.test_lib import BotTestCase from contextlib import contextmanager from unittest.mock import MagicMock -from zulip_bots.bots.gameoffifteen.gameoffifteen import * +from zulip_bots.bots.game_of_fifteen.game_of_fifteen import GameOfFifteenModel from zulip_bots.game_handler import BadMoveException -from typing import Dict, Any, List +from typing import Dict, Any, List, Tuple class TestGameOfFifteenBot(BotTestCase): - bot_name = 'gameoffifteen' + bot_name = 'game_of_fifteen' def make_request_message( self,