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