diff --git a/Pipfile b/Pipfile index 6c32054..c9f3caa 100644 --- a/Pipfile +++ b/Pipfile @@ -8,7 +8,7 @@ arrow = "==1.3.0" click = "==8.1.7" types-click = "==7.1.8" jira = "==3.8.0" -pydantic = "==2.9.2" +pydantic = "==2.10.3" requests = "==2.32.3" types-requests = "==2.32.0.20241016" diff --git a/newsfragments/+8dda02d3.misc.rst b/newsfragments/+8dda02d3.misc.rst new file mode 100644 index 0000000..8ab19eb --- /dev/null +++ b/newsfragments/+8dda02d3.misc.rst @@ -0,0 +1 @@ +Updated tests for new Pydantic. diff --git a/tests/test_unit.py b/tests/test_unit.py index 14188bc..5f9917f 100644 --- a/tests/test_unit.py +++ b/tests/test_unit.py @@ -8,7 +8,6 @@ import click import pytest from pydantic import HttpUrl, TypeAdapter -from pydantic_core import Url from jira_timemachine import SourceJiraConfig, Worklog, format_time, get_config, get_worklogs, match_worklog @@ -172,12 +171,12 @@ def test_get_config_ok(): }""" ) config = get_config(Mock(), Mock(), config_file) - assert config.source_jira.url == Url("https://source.atlassian.net") + assert config.source_jira.url == HttpUrl("https://source.atlassian.net") assert config.source_jira.email == "login@login.com" assert config.source_jira.jira_token == "a" assert config.source_jira.project_key == "JIRA" assert config.source_jira.tempo_token == "b" - assert config.destination_jira.url == Url("https://destination.atlassian.net") + assert config.destination_jira.url == HttpUrl("https://destination.atlassian.net") assert config.destination_jira.email == "login@login.com" assert config.destination_jira.jira_token == "c" assert config.destination_jira.issue == "ARIJ-3"