Fixed test
This commit is contained in:
@@ -77,7 +77,7 @@ class ChainTest(unittest.TestCase):
|
||||
source_id=6,
|
||||
source_row_index=2,
|
||||
source_position=Position.Field,
|
||||
obvious=False,
|
||||
obvious=True,
|
||||
goal_id=0,
|
||||
),
|
||||
]
|
||||
|
||||
@@ -16,6 +16,7 @@ OFFSET = (0, 0)
|
||||
SIZE = (2560, 1440)
|
||||
NEW_BUTTON = (1900, 1100)
|
||||
|
||||
SAVE_UNSOLVED = False
|
||||
|
||||
def solve() -> None:
|
||||
with tempfile.TemporaryDirectory() as screenshot_dir:
|
||||
@@ -33,6 +34,7 @@ def solve() -> None:
|
||||
if solution_iterator is None:
|
||||
clicker.click(NEW_BUTTON, OFFSET)
|
||||
time.sleep(10)
|
||||
if SAVE_UNSOLVED:
|
||||
fd, outfile = tempfile.mkstemp(
|
||||
dir="E:/shenzhen-solitaire/unsolved", suffix=".png"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user