File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,6 @@ module = [
290
290
" tests.test_util.test_util" ,
291
291
" tests.test_util.test_util_display" ,
292
292
" tests.test_util.test_util_docutils" ,
293
- " tests.test_util.test_util_images" ,
294
293
" tests.test_util.test_util_inventory" ,
295
294
# tests/test_writers
296
295
" tests.test_writers.test_docutilsconf" ,
Original file line number Diff line number Diff line change 11
11
parse_data_uri ,
12
12
)
13
13
14
+ TYPE_CHECKING = False
15
+ if TYPE_CHECKING :
16
+ from pathlib import Path
17
+
14
18
GIF_FILENAME = 'img.gif'
15
19
PNG_FILENAME = 'img.png'
16
20
PDF_FILENAME = 'img.pdf'
17
21
TXT_FILENAME = 'index.txt'
18
22
19
23
20
- def test_get_image_size (rootdir ) :
24
+ def test_get_image_size (rootdir : Path ) -> None :
21
25
assert get_image_size (rootdir / 'test-root' / GIF_FILENAME ) == (200 , 181 )
22
26
assert get_image_size (rootdir / 'test-root' / PNG_FILENAME ) == (200 , 181 )
23
27
assert get_image_size (rootdir / 'test-root' / PDF_FILENAME ) is None
You can’t perform that action at this time.
0 commit comments