Skip to content

Fix publish counts - #577

Merged
mksanger merged 1 commit into
wtsi-npg:develfrom
ce10-sanger:NPG-4028-publish-counts
Jul 23, 2026
Merged

Fix publish counts#577
mksanger merged 1 commit into
wtsi-npg:develfrom
ce10-sanger:NPG-4028-publish-counts

Conversation

@ce10-sanger

@ce10-sanger ce10-sanger commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Publish success and failure counts were only being updated when flags to output paths were enabled. Fix and test.

@ce10-sanger
ce10-sanger force-pushed the NPG-4028-publish-counts branch from 8cb7f91 to 51cfa3c Compare July 22, 2026 14:13

from pathlib import Path
from pathlib import Path, PurePath
from unittest.mock import MagicMock, patch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you mocking this rather than just publishing a directory?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit testing publish_result_dirs rather than integration testing the publish_result_dirs > publish_result_dir > partisan > baton > irods stack to achieve a smaller/narrower test

@mksanger
mksanger merged commit 2ab1367 into wtsi-npg:devel Jul 23, 2026
6 checks passed
@ce10-sanger

Copy link
Copy Markdown
Contributor Author

Cheers for the review @mksanger

@ce10-sanger
ce10-sanger deleted the NPG-4028-publish-counts branch July 23, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants