From 308df0b14639abd1922298871e5587238ae6e9be Mon Sep 17 00:00:00 2001 From: Assunta DeSanto Date: Mon, 2 Oct 2023 10:10:47 -0400 Subject: [PATCH] update tests to use string UTC format instead of iso --- test/unit/app/managers/test_markdown_export.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/app/managers/test_markdown_export.py b/test/unit/app/managers/test_markdown_export.py index 64c4df408d47..705ffd51bf86 100644 --- a/test/unit/app/managers/test_markdown_export.py +++ b/test/unit/app/managers/test_markdown_export.py @@ -280,7 +280,8 @@ def test_generate_invocation_time(self): invocation = self._new_invocation() self.app.workflow_manager.get_invocation.side_effect = [invocation] # type: ignore[attr-defined,union-attr] result = self._to_basic(example) - assert f"\n {invocation.create_time.isoformat()}" in result + expectedtime = invocation.create_time.strftime("%m/%d/%Y, %H:%M:%S") + assert f"\n {expectedtime}" in result def test_job_parameters(self): job = model.Job() @@ -412,7 +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.isoformat() + assert extra_data["invocations"]["be8be0fd2ce547f6"]["create_time"] == invocation.create_time.strftime("%m/%d/%Y, %H:%M:%S") def _ready_export(self, example): return ready_galaxy_markdown_for_export(self.trans, example)