From c60b4034204a3512884c14a4717a3cbb9bff7849 Mon Sep 17 00:00:00 2001
From: Robin Bijl <r.a.bijl@student.tudelft.nl>
Date: Tue, 28 May 2019 17:03:40 +0200
Subject: [PATCH] adds another case that triggers the first if statement in
 box_is_filled

---
 tests/test_pregrader.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/test_pregrader.py b/tests/test_pregrader.py
index e5babb3f..895adb3e 100644
--- a/tests/test_pregrader.py
+++ b/tests/test_pregrader.py
@@ -33,10 +33,11 @@ def test_ideal_crops(box_coords, result, scanned_image_keypoints, scanned_image)
 
 
 @pytest.mark.parametrize('box_coords, result', [((341, 471), True), ((352, 482), True), ((448, 482), True),
-                                                ((423, 474), True), ((460, 475), False), ((477, 474), True)],
+                                                ((423, 474), True), ((460, 475), False), ((477, 474), True),
+                                                ((87, 548), False)],
                          ids=["1 filled bottom right", "1 filled top left", "5 filled with a bit of 6",
                               "4 fully filled with the label", "6 empty with label",
-                              "7 partially  cropped, filled and a part of 6"])
+                              "7 partially  cropped, filled and a part of 6", "B empty with cb at the bottom"])
 def test_shifted_crops(box_coords, result, scanned_image_keypoints, scanned_image):
     assert pregrader.box_is_filled(box_coords, scanned_image, scanned_image_keypoints[0]) == result
 
-- 
GitLab