Improve error handling

This commit is contained in:
Sina Atalay
2025-12-09 23:20:06 +03:00
parent 9e5130ee2d
commit 6bd1cadf36
2 changed files with 11 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
from typing import Literal, get_args
import pydantic
import pytest
from rendercv.renderer.templater.connections import (
@@ -238,7 +239,7 @@ class TestParseConnections:
custom_connection = CustomConnection(
fontawesome_icon="calendar-days",
placeholder="Book a call",
url="https://cal.com/johndoe",
url=pydantic.HttpUrl("https://cal.com/johndoe"),
)
cv = create_cv(
key_order=["custom_connections"],
@@ -357,7 +358,7 @@ class TestComputeConnectionsForMarkdown:
custom_connection = CustomConnection(
fontawesome_icon="calendar-days",
placeholder="Book a call",
url="https://cal.com/johndoe",
url=pydantic.HttpUrl("https://cal.com/johndoe"),
)
cv = create_cv(
key_order=["custom_connections"],