From 337a3f9679c84754f9752a3984c44fbaa89ea1d8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 04:17:54 +0000 Subject: [PATCH 1/2] Bump pydantic from 2.9.2 to 2.10.3 Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.9.2 to 2.10.3. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](https://github.com/pydantic/pydantic/compare/v2.9.2...v2.10.3) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Pipfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From ca5b8c1fe516064683916d0289e96daad4fc5326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Aliwi=C5=84ski?= Date: Wed, 4 Dec 2024 09:29:25 +0100 Subject: [PATCH 2/2] Update tests for Pydantic 2.10 --- newsfragments/+8dda02d3.misc.rst | 1 + tests/test_unit.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 newsfragments/+8dda02d3.misc.rst 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"