This repository was archived by the owner on Jul 16, 2025. It is now read-only.
Add Tests for PR#528#534
Closed
seer-by-sentry[bot] wants to merge 2 commits intotrent/network-upload-startfrom
Closed
Add Tests for PR#528#534seer-by-sentry[bot] wants to merge 2 commits intotrent/network-upload-startfrom
seer-by-sentry[bot] wants to merge 2 commits intotrent/network-upload-startfrom
Conversation
…sts/commands/` directory. The file contains unit tests for the `network_upload` command. Here's a breakdown of the tests: 1. We import necessary modules and mock the `NetworkFinder` and `UploadSender` classes. 2. We create test fixtures for the mocked classes. 3. We define four test functions: a. `test_network_upload_dry_run`: Tests the dry run functionality. b. `test_network_upload_success`: Tests a successful network upload. c. `test_network_upload_failure`: Tests a failed network upload. d. `test_network_upload_no_files_found`: Tests the case when no files are found in the network. Each test function uses the `CliRunner` to invoke the `network_upload` command with various arguments and checks the output and behavior of the command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds tests for #528
Commits: