Skip to content

Commit

Permalink
Fixed timezone of a test
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 19, 2023
1 parent 9418a14 commit 0e01253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import shutil
import subprocess
import traceback
from datetime import datetime
from datetime import datetime, timezone
from pathlib import Path

import pytest
Expand Down Expand Up @@ -68,7 +68,7 @@ def test_bump_nested_regex(tmp_path: Path, fixtures_path: Path, caplog):

assert result.exit_code == 0

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


Expand Down

0 comments on commit 0e01253

Please sign in to comment.