Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
img folder
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamah committed Mar 17, 2020
1 parent e2d7b63 commit eb57889
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/clue/test/constants.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SCREEN_HEIGHT_WIDTH = 240
IMG_DIR_NAME="img"
File renamed without changes.
2 changes: 1 addition & 1 deletion src/clue/test/test_adafruit_clue.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setup_method(self):

def test_clue_display_text(self):
expected = Image.open(
os.path.join(self.abs_path, f"test_clue_text_1.bmp")
os.path.join(self.abs_path, CONSTANTS.IMG_DIR_NAME, f"test_clue_text_1.bmp")
).load()
clue_data = clue.simple_text_display(title="LET'S TEST!", title_scale=2)

Expand Down
2 changes: 1 addition & 1 deletion src/clue/test/test_adafruit_display_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_shapes(self):
expected_images = []
for i in range(5):
expected = Image.open(
os.path.join(self.abs_path, f"test_image_shapes_{i+1}.bmp")
os.path.join(self.abs_path, CONSTANTS.IMG_DIR_NAME, f"test_image_shapes_{i+1}.bmp")
)
expected_images.append(expected.load())

Expand Down
2 changes: 1 addition & 1 deletion src/clue/test/test_adafruit_display_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_display_text(self, text, x, y, scale, color):
expected_images = []
for j in range(4):
expected = Image.open(
os.path.join(self.abs_path, f"test_display_text_{j+1}.bmp")
os.path.join(self.abs_path, CONSTANTS.IMG_DIR_NAME,f"test_display_text_{j+1}.bmp")
)
expected_images.append(expected.load())

Expand Down

0 comments on commit eb57889

Please sign in to comment.