Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Réouven ASSOULY
zesje
Commits
3a70a082
Commit
3a70a082
authored
May 28, 2018
by
Nick Cleintuar
Browse files
Added test for data matrix detection
parent
6995f162
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/helpers/test_blankspace_detection.py
View file @
3a70a082
...
...
@@ -69,3 +69,25 @@ def test_detect_space_corner_incompatible(name, datadir,
for
i
in
range
(
len
(
result
)):
assert
not
(
result
[
i
])
def
test_detect_space_datamatrix_incompatible
(
datadir
,
mock_check_space_corner_true
,
mock_check_space_idwidget_true
):
pdf_path
=
os
.
path
.
join
(
datadir
,
'black-a4-2pages.pdf'
)
result
=
image_helper
.
check_enough_blankspace
(
pdf_path
)
for
i
in
range
(
len
(
result
)):
assert
not
(
result
[
i
])
def
test_detect_space_datamatrix_compatible
(
datadir
,
mock_check_space_corner_true
,
mock_check_space_idwidget_true
):
pdf_path
=
os
.
path
.
join
(
datadir
,
'blank-a4-2pages.pdf'
)
result
=
image_helper
.
check_enough_blankspace
(
pdf_path
)
for
i
in
range
(
len
(
result
)):
assert
(
result
[
i
])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment