File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,22 @@ def test_generate_without_output():
16
16
17
17
18
18
def test_generate_with_file ():
19
- with open (f" { TESTPATH } / generate_with_file.jpeg" , "wb" ) as f :
19
+ with open (os . path . join ( TESTPATH , " generate_with_file.jpeg") , "wb" ) as f :
20
20
barcode .generate ("ean13" , "123455559121112" , output = f )
21
21
22
22
23
23
def test_generate_with_filepath ():
24
24
# FIXME: extension is added to the filepath even if you include it.
25
25
rv = barcode .generate (
26
- "ean13" , "123455559121112" , output = f"{ TESTPATH } /generate_with_filepath"
26
+ "ean13" ,
27
+ "123455559121112" ,
28
+ output = os .path .join (TESTPATH , "generate_with_filepath" ),
27
29
)
28
- assert rv == os .path .abspath (f" { TESTPATH } / generate_with_filepath.svg" )
30
+ assert rv == os .path .abspath (os . path . join ( TESTPATH , " generate_with_filepath.svg") )
29
31
30
32
31
33
def test_generate_with_file_and_writer ():
32
- with open (f" { TESTPATH } / generate_with_file_and_writer.jpeg" , "wb" ) as f :
34
+ with open (os . path . join ( TESTPATH , " generate_with_file_and_writer.jpeg") , "wb" ) as f :
33
35
barcode .generate ("ean13" , "123455559121112" , output = f , writer = SVGWriter ())
34
36
35
37
You can’t perform that action at this time.
0 commit comments