Skip to content

Commit 0e01253

Browse files
committed
Fixed timezone of a test
1 parent 9418a14 commit 0e01253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import shutil
33
import subprocess
44
import traceback
5-
from datetime import datetime
5+
from datetime import datetime, timezone
66
from pathlib import Path
77

88
import pytest
@@ -68,7 +68,7 @@ def test_bump_nested_regex(tmp_path: Path, fixtures_path: Path, caplog):
6868

6969
assert result.exit_code == 0
7070

71-
now = datetime.now().isoformat()[:10]
71+
now = datetime.now(timezone.utc).isoformat()[:10]
7272
assert cff_path.read_text() == f"cff-version: 1.2.0\ndate-released: {now}\n"
7373

7474

0 commit comments

Comments
 (0)