From bdce81c6934e14efea9496e8009adf07fdc3c04a Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Mon, 9 Dec 2024 17:12:18 -0500 Subject: [PATCH] Update timestamp formatting in markdown export tests to include UTC, or raw isoformat in the two different export formats. --- test/unit/app/managers/test_markdown_export.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/unit/app/managers/test_markdown_export.py b/test/unit/app/managers/test_markdown_export.py index 3470061b359f..9b276e1b07a6 100644 --- a/test/unit/app/managers/test_markdown_export.py +++ b/test/unit/app/managers/test_markdown_export.py @@ -280,7 +280,7 @@ def test_generate_invocation_time(self): invocation = self._new_invocation() self.app.workflow_manager.get_invocation.side_effect = [invocation] result = self._to_basic(example) - expectedtime = invocation.create_time.strftime("%Y-%m-%d, %H:%M:%S") + expectedtime = invocation.create_time.strftime("%Y-%m-%d, %H:%M:%S UTC") assert f"\n {expectedtime}" in result def test_job_parameters(self): @@ -413,9 +413,7 @@ def test_get_invocation_time(self): result, extra_data = self._ready_export(example) assert "invocations" in extra_data assert "create_time" in extra_data["invocations"]["be8be0fd2ce547f6"] - assert extra_data["invocations"]["be8be0fd2ce547f6"]["create_time"] == invocation.create_time.strftime( - "%Y-%m-%d, %H:%M:%S" - ) + assert extra_data["invocations"]["be8be0fd2ce547f6"]["create_time"] == invocation.create_time.isoformat() def _ready_export(self, example): return ready_galaxy_markdown_for_export(self.trans, example)