Skip to content

Commit

Permalink
Update tests for Pydantic 2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
merger-application[bot] authored Dec 4, 2024
2 parents e3be7be + ca5b8c1 commit 05c0468
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions newsfragments/+8dda02d3.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated tests for new Pydantic.
5 changes: 2 additions & 3 deletions tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 == "[email protected]"
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 == "[email protected]"
assert config.destination_jira.jira_token == "c"
assert config.destination_jira.issue == "ARIJ-3"
Expand Down

0 comments on commit 05c0468

Please sign in to comment.