Skip to content

Commit

Permalink
fixing tests to use iso-like string format
Browse files Browse the repository at this point in the history
  • Loading branch information
assuntad23 committed Oct 17, 2023
1 parent cdc34a1 commit a7c111b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/managers/markdown_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def handle_generate_time(self, line, generate_time):

def handle_invocation_time(self, line, invocation):
self.ensure_rendering_data_for("invocations", invocation)["create_time"] = invocation.create_time.strftime(
"%Y-%m-/%d, %H:%M:%S"
"%Y-%m-%d, %H:%M:%S"
)

def handle_dataset_type(self, line, hda):
Expand Down Expand Up @@ -549,7 +549,7 @@ def handle_generate_time(self, line, generate_time):
return (content, True)

def handle_invocation_time(self, line, invocation):
content = literal_via_fence(invocation.create_time.strftime("%m/%d/%Y, %H:%M:%S"))
content = literal_via_fence(invocation.create_time.strftime("%Y-%m-%d, %H:%M:%S"))
return (content, True)

def handle_dataset_name(self, line, hda):
Expand Down
2 changes: 1 addition & 1 deletion test/unit/app/managers/test_markdown_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def test_get_invocation_time(self):
assert "invocations" in extra_data
assert "create_time" in extra_data["invocations"]["be8be0fd2ce547f6"]
assert extra_data["invocations"]["be8be0fd2ce547f6"]["create_time"] == invocation.create_time.strftime(
"%m/%d/%Y, %H:%M:%S"
"%Y-%m-%d, %H:%M:%S"
)

def _ready_export(self, example):
Expand Down

0 comments on commit a7c111b

Please sign in to comment.