diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-23 15:27:43 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-23 23:15:21 +0100 |
commit | 82cd09e010783b81ec58145c7682f4b8da49ac85 (patch) | |
tree | 83b3e61aaa4befcd340a01b2fb147a2306bdb29e | |
parent | 1be5c49ae402b768f9206724abdd503c18933ae1 (diff) |
Use lowercase module names
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r-- | swiftstory/__main__.py | 8 | ||||
-rw-r--r-- | swiftstory/board.py (renamed from swiftstory/Board.py) | 0 | ||||
-rw-r--r-- | swiftstory/cards.py (renamed from swiftstory/Cards.py) | 0 | ||||
-rw-r--r-- | swiftstory/client.py (renamed from swiftstory/Client.py) | 0 | ||||
-rw-r--r-- | swiftstory/game.py (renamed from swiftstory/Game.py) | 6 | ||||
-rw-r--r-- | swiftstory/game_manager.py (renamed from swiftstory/GameManager.py) | 4 | ||||
-rw-r--r-- | swiftstory/player.py (renamed from swiftstory/Player.py) | 0 | ||||
-rw-r--r-- | swiftstory/status.py (renamed from swiftstory/Status.py) | 0 | ||||
-rw-r--r-- | tests/test_board.py | 2 | ||||
-rw-r--r-- | tests/test_cards.py | 2 | ||||
-rw-r--r-- | tests/test_status.py | 2 | ||||
-rw-r--r-- | tests/test_swiftstory.py | 2 |
12 files changed, 13 insertions, 13 deletions
diff --git a/swiftstory/__main__.py b/swiftstory/__main__.py index 0b5d7c7..00c6e39 100644 --- a/swiftstory/__main__.py +++ b/swiftstory/__main__.py @@ -9,13 +9,13 @@ import json import logging import websockets -import swiftstory.GameManager +import swiftstory.game_manager from swiftstory.exception import WrongAction, JoinError -from swiftstory.Client import Client -from swiftstory.Status import error +from swiftstory.client import Client +from swiftstory.status import error -game_manager = swiftstory.GameManager.GameManager() +game_manager = swiftstory.game_manager.GameManager() def message_received_handler(client, message): diff --git a/swiftstory/Board.py b/swiftstory/board.py index c9b2aee..c9b2aee 100644 --- a/swiftstory/Board.py +++ b/swiftstory/board.py diff --git a/swiftstory/Cards.py b/swiftstory/cards.py index d570f87..d570f87 100644 --- a/swiftstory/Cards.py +++ b/swiftstory/cards.py diff --git a/swiftstory/Client.py b/swiftstory/client.py index a84783d..a84783d 100644 --- a/swiftstory/Client.py +++ b/swiftstory/client.py diff --git a/swiftstory/Game.py b/swiftstory/game.py index ea0582a..cda3ddd 100644 --- a/swiftstory/Game.py +++ b/swiftstory/game.py @@ -1,9 +1,9 @@ import random from swiftstory.exception import WrongAction, JoinError -from swiftstory.Player import Player -from swiftstory.Board import Board -from swiftstory.Status import error, success +from swiftstory.player import Player +from swiftstory.board import Board +from swiftstory.status import error, success class Game: diff --git a/swiftstory/GameManager.py b/swiftstory/game_manager.py index 52ce554..a87f67e 100644 --- a/swiftstory/GameManager.py +++ b/swiftstory/game_manager.py @@ -2,8 +2,8 @@ import logging import os from swiftstory.exception import UnsupportedLanguage -from swiftstory.Game import Game -from swiftstory.Cards import Cards +from swiftstory.game import Game +from swiftstory.cards import Cards class GameManager: diff --git a/swiftstory/Player.py b/swiftstory/player.py index 7193b64..7193b64 100644 --- a/swiftstory/Player.py +++ b/swiftstory/player.py diff --git a/swiftstory/Status.py b/swiftstory/status.py index fb8347b..fb8347b 100644 --- a/swiftstory/Status.py +++ b/swiftstory/status.py diff --git a/tests/test_board.py b/tests/test_board.py index 6b0fefd..5344122 100644 --- a/tests/test_board.py +++ b/tests/test_board.py @@ -1,6 +1,6 @@ import unittest -from swiftstory.Board import Board +from swiftstory.board import Board class TestBoard(unittest.TestCase): diff --git a/tests/test_cards.py b/tests/test_cards.py index ea49847..a5e4437 100644 --- a/tests/test_cards.py +++ b/tests/test_cards.py @@ -1,6 +1,6 @@ import unittest -from swiftstory.Cards import Cards +from swiftstory.cards import Cards class TestCards(unittest.TestCase): diff --git a/tests/test_status.py b/tests/test_status.py index 5c48cd0..9fa65d0 100644 --- a/tests/test_status.py +++ b/tests/test_status.py @@ -1,7 +1,7 @@ import json import unittest -import swiftstory.Status as Status +import swiftstory.status as Status class TestStatus(unittest.TestCase): diff --git a/tests/test_swiftstory.py b/tests/test_swiftstory.py index 5c1c2bc..aac1865 100644 --- a/tests/test_swiftstory.py +++ b/tests/test_swiftstory.py @@ -1,7 +1,7 @@ import unittest import swiftstory.__main__ as SwiftStory -from swiftstory.Status import error +from swiftstory.status import error class TestSwiftStory(unittest.TestCase): |