Fixed: commit date format
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
parent
41108533c9
commit
5277051f51
|
@ -1,5 +1,7 @@
|
|||
import pytest
|
||||
from repo_cloner.lib import DetectedCommit
|
||||
import os
|
||||
import time
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
@ -40,6 +42,8 @@ def test_author(det):
|
|||
|
||||
|
||||
def test_date(det):
|
||||
os.environ['TZ'] = 'Europe/Prague'
|
||||
time.tzset()
|
||||
assert det.date == "04-08-2022, 11:20:38"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user