Files
my-botty/test/smoke_test.py
mgleed fdcdd90b43 Auto offset (#120)
* automatically calculate offsets, not-yet working

* space

* space

* float to int

* working

* clean

* clean2

* auto adjust windowed mode depending on screen res and botty res

* clean screen instance, fix tests

* remove test png

Co-authored-by: aeon0 <aeon4@pm.me>
2021-11-26 23:26:42 +01:00

25 lines
524 B
Python

from logger import Logger
from bot import Bot
from screen import Screen
from config import Config
import cv2
class ScreenMock(Screen):
def grab(self):
img = cv2.imread("test/hero_select.png")
return img
class TestSmoke:
"""
Just import Bot and create an instance to ensure there is no major issue e.g. indent error
"""
def setup_method(self):
Logger.init()
Logger.remove_file_logger()
def test_smoke(self):
screen = ScreenMock()
bot = Bot(screen)