
import unittest
from app.modules.shogi_input import ShogiInput
from app.modules.shogi_output import ShogiOutput


class ShogiTest(unittest.TestCase):
    def setUp(self):
        pass

    def test_shogi_output_format(self):
        # for syntax error and runtime error
        channel_id = "channel_id"
        shogi = ShogiInput.init(channel_id, [{"id": "user1", "name": "user1name"}, {"id": "user2", "name": "user2name"}])
        board = ShogiInput.get_shogi_board(channel_id)
        board_str = ShogiOutput.make_board_emoji(board)
        self.assertIsNotNone(board_str)

    def test_shogi_output_number_format(self):
        # for syntax error and runtime error
        channel_id = "channel_id"
        shogi = ShogiInput.init(channel_id, [{"id": "user1", "name": "user1name"}, {"id": "user2", "name": "user2name"}])
        board = ShogiInput.get_shogi_board(channel_id)
        board_str = ShogiOutput.make_board_emoji(board, is_number=True)
        self.assertIsNotNone(board_str)

    def test_shogi_output_reverse_format(self):
        # for syntax error and runtime error
        channel_id = "channel_id"
        shogi = ShogiInput.init(channel_id, [{"id": "user1", "name": "user1name"}, {"id": "user2", "name": "user2name"}])
        board = ShogiInput.get_shogi_board(channel_id)
        board_str = ShogiOutput.make_board_emoji_reverse(board)
        self.assertIsNotNone(board_str)

@@ -576,424 +576,8 @@
 r)%0A%0A
-    def test_shogi_output_number_format(self):%0A        # for syntax error and runtime error%0A        channel_id = %22channel_id%22%0A        shogi = ShogiInput.init(channel_id, %5B%7B%22id%22: %22user1%22, %22name%22: %22user1name%22%7D, %7B%22id%22: %22user2%22, %22name%22: %22user2name%22%7D%5D)%0A        board = ShogiInput.get_shogi_board(channel_id)%0A        board_str = ShogiOutput.make_board_emoji(board, is_number=True)%0A        self.assertIsNotNone(board_str)%0A%0A
     

Remove test case for axis number mode.