@@ -14,6 +14,11 @@ def pdf_samples():
14
14
return os .path .join (os .path .dirname (__file__ ), ".." , ".." , "pdf_samples" , "v2" )
15
15
16
16
17
+ @pytest .fixture
18
+ def image_samples ():
19
+ return os .path .join (os .path .dirname (__file__ ), ".." , ".." , "image_samples" )
20
+
21
+
17
22
@pytest .fixture
18
23
def template_stream (pdf_samples ):
19
24
with open (os .path .join (pdf_samples , "sample_template.pdf" ), "rb+" ) as f :
@@ -46,20 +51,20 @@ def template_with_image_stream(pdf_samples):
46
51
47
52
48
53
@pytest .fixture
49
- def image_stream (pdf_samples ):
50
- with open (os .path .join (pdf_samples , "sample_image.jpg" ), "rb+" ) as f :
54
+ def image_stream (image_samples ):
55
+ with open (os .path .join (image_samples , "sample_image.jpg" ), "rb+" ) as f :
51
56
return f .read ()
52
57
53
58
54
59
@pytest .fixture
55
- def image_stream_2 (pdf_samples ):
56
- with open (os .path .join (pdf_samples , "sample_image_2.jpg" ), "rb+" ) as f :
60
+ def image_stream_2 (image_samples ):
61
+ with open (os .path .join (image_samples , "sample_image_2.jpg" ), "rb+" ) as f :
57
62
return f .read ()
58
63
59
64
60
65
@pytest .fixture
61
- def image_stream_3 (pdf_samples ):
62
- with open (os .path .join (pdf_samples , "sample_image_3.jpg" ), "rb+" ) as f :
66
+ def image_stream_3 (image_samples ):
67
+ with open (os .path .join (image_samples , "sample_image_3.jpg" ), "rb+" ) as f :
63
68
return f .read ()
64
69
65
70
0 commit comments