Skip to content

Commit f2a7e71

Browse files
committed
Merge branch 'release_25.1' into dev
2 parents d555390 + 0fae260 commit f2a7e71

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

client/src/components/History/Export/HistoryExport.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ const breadcrumbItems = computed(() => [
292292
:records="previousExportRecords"
293293
class="mt-3"
294294
@onDownload="downloadFromRecord"
295+
@onCopyDownloadLink="copyDownloadLinkFromRecord"
295296
@onReimport="reimportFromRecord" />
296297
</GModal>
297298
</div>

lib/galaxy/files/sources/huggingface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _to_filesystem_path(self, path: str) -> str:
104104

105105
def _extract_timestamp(self, info: dict) -> Optional[str]:
106106
"""Extract timestamp from Hugging Face file info to use it in the RemoteFile entry."""
107-
last_commit: dict = info.get("last_commit", {})
107+
last_commit: dict = info.get("last_commit") or {}
108108
return last_commit.get("date")
109109

110110
def _get_file_hashes(self, info: dict) -> Optional[list[RemoteFileHash]]:

lib/galaxy/tool_util/verify/asserts/size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def assert_has_size(
3636
size = value
3737
_assert_number(
3838
output_size,
39-
value,
39+
size,
4040
delta,
4141
min,
4242
max,

lib/galaxy_test/api/test_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
from galaxy.tool_util_models import UserToolSource
2929
from galaxy.util import UNKNOWN
3030
from galaxy.util.unittest_utils import skip_if_github_down
31-
from galaxy_test.api.test_tools import TOOL_WITH_SHELL_COMMAND
3231
from galaxy_test.base import rules_test_data
3332
from galaxy_test.base.populators import (
3433
DatasetCollectionPopulator,
3534
DatasetPopulator,
3635
RunJobsSummary,
3736
skip_without_tool,
37+
TOOL_WITH_SHELL_COMMAND,
3838
wait_on,
3939
workflow_str,
4040
WorkflowPopulator,

test/unit/tool_util/verify/test_asserts.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import h5py
99
except ImportError:
1010
h5py = None
11+
import pytest
1112

1213
from galaxy.tool_util.parser.xml import __parse_assert_list_from_elem
1314
from galaxy.tool_util.verify import asserts
@@ -489,15 +490,17 @@ def test_has_line_matching_n_failure():
489490
GZA100 = gzip.compress(A100)
490491

491492

492-
def test_has_size_success():
493+
@pytest.mark.parametrize("size_attrib", ["size", "value"])
494+
def test_has_size_success(size_attrib):
493495
"""test has_size"""
494-
a = run_assertions(SIZE_HAS_SIZE_ASSERTION.format(size_attrib="size", value=10), TEXT_DATA_HAS_TEXT)
496+
a = run_assertions(SIZE_HAS_SIZE_ASSERTION.format(size_attrib=size_attrib, value=10), TEXT_DATA_HAS_TEXT)
495497
assert len(a) == 0
496498

497499

498-
def test_has_size_failure():
500+
@pytest.mark.parametrize("size_attrib", ["size", "value"])
501+
def test_has_size_failure(size_attrib):
499502
"""test has_size .. negative test"""
500-
a = run_assertions(SIZE_HAS_SIZE_ASSERTION.format(size_attrib="value", value="10"), TEXT_DATA_HAS_TEXT * 2)
503+
a = run_assertions(SIZE_HAS_SIZE_ASSERTION.format(size_attrib=size_attrib, value="10"), TEXT_DATA_HAS_TEXT * 2)
501504
assert "Expected file size of 10+-0 found 20" in a
502505
assert len(a) == 1
503506

0 commit comments

Comments
 (0)