mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
Merge remote-tracking branch 'origin/main' into feature/network/multi-network-serving
# Conflicts: # plugins/lookup/email.py # tests/unit/python/roles/web-app-prometheus/test_blackbox_targets.py
This commit is contained in:
commit
1da2cef95e
107 files changed
+2414
-478
No files matched your search
@@ -10,7 +10,7 @@ directories / no junit files / unparseable junit files.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
import datetime as dt
|
||||
import io
|
||||
import os
|
||||
import unittest
|
||||
@@ -56,9 +56,7 @@ def _write(path: Path, content: str) -> Path:
|
||||
class TestToIsoZ(unittest.TestCase):
|
||||
def test_utc_datetime_formats_with_z_suffix(self) -> None:
|
||||
self.assertEqual(
|
||||
ps._to_iso_z(
|
||||
datetime.datetime(2026, 5, 17, 12, 34, 56, tzinfo=datetime.UTC)
|
||||
),
|
||||
ps._to_iso_z(dt.datetime(2026, 5, 17, 12, 34, 56, tzinfo=dt.UTC)),
|
||||
"2026-05-17T12:34:56Z",
|
||||
)
|
||||
|
||||
@@ -263,9 +261,7 @@ class TestSummarizeFile(unittest.TestCase):
|
||||
Path(tmp) / "web-app-foo" / "playwright-junit.xml",
|
||||
no_timestamp_fixture,
|
||||
)
|
||||
target = datetime.datetime(
|
||||
2025, 5, 17, 5, 34, 56, tzinfo=datetime.UTC
|
||||
).timestamp()
|
||||
target = dt.datetime(2025, 5, 17, 5, 34, 56, tzinfo=dt.UTC).timestamp()
|
||||
os.utime(xml_path, (target, target))
|
||||
summary = ps._summarize_file(xml_path)
|
||||
assert summary is not None
|
||||
|
||||
Reference in new issue
Block a user