merels: Add missing __init__.py, and really fix the tests.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
147e9f6b81
commit
b02b84204a
0
zulip_bots/zulip_bots/bots/merels/__init__.py
Normal file
0
zulip_bots/zulip_bots/bots/merels/__init__.py
Normal file
|
@ -1,8 +1,9 @@
|
||||||
from typing import Any, List
|
from typing import Any, List
|
||||||
|
|
||||||
from zulip_bots.bots.merels.libraries import database, game, game_data, mechanics
|
|
||||||
from zulip_bots.game_handler import GameAdapter, SamePlayerMove
|
from zulip_bots.game_handler import GameAdapter, SamePlayerMove
|
||||||
|
|
||||||
|
from .libraries import database, game, game_data, mechanics
|
||||||
|
|
||||||
|
|
||||||
class Storage:
|
class Storage:
|
||||||
data = {}
|
data = {}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from libraries import constants
|
from ..libraries import constants
|
||||||
|
|
||||||
|
|
||||||
class CheckIntegrity(unittest.TestCase):
|
class CheckIntegrity(unittest.TestCase):
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
from libraries import database, game_data
|
|
||||||
|
|
||||||
from zulip_bots.simple_lib import SimpleStorage
|
from zulip_bots.simple_lib import SimpleStorage
|
||||||
from zulip_bots.test_lib import BotTestCase, DefaultTests
|
from zulip_bots.test_lib import BotTestCase, DefaultTests
|
||||||
|
|
||||||
|
from ..libraries import database, game_data
|
||||||
|
|
||||||
|
|
||||||
class DatabaseTest(BotTestCase, DefaultTests):
|
class DatabaseTest(BotTestCase, DefaultTests):
|
||||||
bot_name = "merels"
|
bot_name = "merels"
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from libraries import database, game
|
|
||||||
|
|
||||||
from zulip_bots.game_handler import BadMoveException
|
from zulip_bots.game_handler import BadMoveException
|
||||||
from zulip_bots.simple_lib import SimpleStorage
|
from zulip_bots.simple_lib import SimpleStorage
|
||||||
|
|
||||||
|
from ..libraries import database, game
|
||||||
|
|
||||||
|
|
||||||
class GameTest(unittest.TestCase):
|
class GameTest(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from libraries import interface
|
from ..libraries import interface
|
||||||
|
|
||||||
|
|
||||||
class BoardLayoutTest(unittest.TestCase):
|
class BoardLayoutTest(unittest.TestCase):
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from libraries import database, game_data, interface, mechanics
|
|
||||||
|
|
||||||
from zulip_bots.simple_lib import SimpleStorage
|
from zulip_bots.simple_lib import SimpleStorage
|
||||||
|
|
||||||
|
from ..libraries import database, game_data, interface, mechanics
|
||||||
|
|
||||||
|
|
||||||
class GridTest(unittest.TestCase):
|
class GridTest(unittest.TestCase):
|
||||||
def test_out_of_grid(self):
|
def test_out_of_grid(self):
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
from typing import Any, List, Tuple
|
from typing import Any, List, Tuple
|
||||||
|
|
||||||
from libraries.constants import EMPTY_BOARD
|
|
||||||
|
|
||||||
from zulip_bots.game_handler import GameInstance
|
from zulip_bots.game_handler import GameInstance
|
||||||
from zulip_bots.test_lib import BotTestCase, DefaultTests
|
from zulip_bots.test_lib import BotTestCase, DefaultTests
|
||||||
|
|
||||||
|
from .libraries.constants import EMPTY_BOARD
|
||||||
|
|
||||||
|
|
||||||
class TestMerelsBot(BotTestCase, DefaultTests):
|
class TestMerelsBot(BotTestCase, DefaultTests):
|
||||||
bot_name = "merels"
|
bot_name = "merels"
|
||||||
|
|
Loading…
Reference in a new issue