Skip to content

Prevent upload of empty zip#228

Merged
bgregoinductiva merged 5 commits intodevfrom
task-1358-prevent-empty-output-uploads
Nov 24, 2025
Merged

Prevent upload of empty zip#228
bgregoinductiva merged 5 commits intodevfrom
task-1358-prevent-empty-output-uploads

Conversation

@bgregoinductiva
Copy link
Contributor

Copy link
Contributor

Choose a reason for hiding this comment

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

output_size_bytes = 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: You can merge the two withstatements in a single one:

with mock.patch("task_runner.api_methods_config.get_executer",
                return_value=MockExecuter), \
     mock.patch.object(handler, "_pack_output", return_value=1000):
    ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks.

@bgregoinductiva bgregoinductiva merged commit 7f44ba9 into dev Nov 24, 2025
1 check passed
@bgregoinductiva bgregoinductiva deleted the task-1358-prevent-empty-output-uploads branch November 24, 2025 17:04
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.

3 participants

Comments