merels: Add missing __init__.py, and really fix the tests.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-08-24 16:03:24 -07:00
parent 147e9f6b81
commit b02b84204a
8 changed files with 12 additions and 11 deletions

View 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 = {}

View file

@ -1,6 +1,6 @@
import unittest import unittest
from libraries import constants from ..libraries import constants
class CheckIntegrity(unittest.TestCase): class CheckIntegrity(unittest.TestCase):

View file

@ -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"

View file

@ -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):

View file

@ -1,6 +1,6 @@
import unittest import unittest
from libraries import interface from ..libraries import interface
class BoardLayoutTest(unittest.TestCase): class BoardLayoutTest(unittest.TestCase):

View file

@ -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):

View file

@ -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"