-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
img - more testing, refactors, fixes
- Loading branch information
Showing
7 changed files
with
157 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import img_for_test | ||
from tapper.helper import img | ||
|
||
red = 255, 0, 0 | ||
green = 0, 255, 0 | ||
blue = 0, 0, 255 | ||
black = 0, 0, 0 | ||
white = 255, 255, 255 | ||
gray = 128, 128, 128 | ||
|
||
absolutes = img_for_test.absolutes() | ||
|
||
|
||
class TestFind: | ||
def test_simplest(self) -> None: | ||
xy = img.pixel_find(green, outer=absolutes) | ||
assert xy == (1, 0) | ||
|
||
def test_not_found(self) -> None: | ||
pass | ||
|
||
def test_precise_not_found__approximate_found(self) -> None: | ||
pass | ||
|
||
def test_pixel_color_out_of_bounds(self) -> None: | ||
pass |