Skip to content

Commit 82846f7

Browse files
chore: update with repo template
Fix sonar issue
1 parent 2bf65b6 commit 82846f7

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

tests/test_svg_utils.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
import base64
12
import os
23
from collections.abc import Callable
34
from pathlib import Path
45

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+
)
621

722
test_script_path = "./tests/test.sh"
823

@@ -56,11 +71,6 @@ def test_get_svg_content():
5671
assert content is None
5772

5873

59-
@setup_env_variables
60-
def test_replace_img_base64():
61-
pass
62-
63-
6474
@setup_env_variables
6575
def test_replace_svg_with_png():
6676
svg_content = r'<svg height=200px" width "100px'

0 commit comments

Comments
 (0)