File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change
1
+ import base64
1
2
import os
2
3
from collections .abc import Callable
3
4
from pathlib import Path
4
5
5
- from app .svg_utils import *
6
+ from app .svg_utils import (
7
+ IMAGE_PNG ,
8
+ IMAGE_SVG ,
9
+ convert_svg_to_png ,
10
+ convert_to_px ,
11
+ create_chromium_command ,
12
+ extract_svg_dimensions_as_px ,
13
+ get_px_conversion_ratio ,
14
+ get_svg_content ,
15
+ prepare_temp_files ,
16
+ process_svg ,
17
+ read_and_cleanup_png ,
18
+ replace_svg_with_png ,
19
+ to_base64 ,
20
+ )
6
21
7
22
test_script_path = "./tests/test.sh"
8
23
@@ -56,11 +71,6 @@ def test_get_svg_content():
56
71
assert content is None
57
72
58
73
59
- @setup_env_variables
60
- def test_replace_img_base64 ():
61
- pass
62
-
63
-
64
74
@setup_env_variables
65
75
def test_replace_svg_with_png ():
66
76
svg_content = r'<svg height=200px" width "100px'
You can’t perform that action at this time.
0 commit comments