Skip to content

Commit

Permalink
chore: update with repo template
Browse files Browse the repository at this point in the history
Fix sonar issue
  • Loading branch information
SebastianScheidegger committed Jan 30, 2025
1 parent 2bf65b6 commit 82846f7
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions tests/test_svg_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
import base64
import os
from collections.abc import Callable
from pathlib import Path

from app.svg_utils import *
from app.svg_utils import (
IMAGE_PNG,
IMAGE_SVG,
convert_svg_to_png,
convert_to_px,
create_chromium_command,
extract_svg_dimensions_as_px,
get_px_conversion_ratio,
get_svg_content,
prepare_temp_files,
process_svg,
read_and_cleanup_png,
replace_svg_with_png,
to_base64,
)

test_script_path = "./tests/test.sh"

Expand Down Expand Up @@ -56,11 +71,6 @@ def test_get_svg_content():
assert content is None


@setup_env_variables
def test_replace_img_base64():
pass


@setup_env_variables
def test_replace_svg_with_png():
svg_content = r'<svg height=200px" width "100px'
Expand Down

0 comments on commit 82846f7

Please sign in to comment.