file-transfer: writing tests and ensuring that all is going well#2413
Merged
cclauss merged 5 commits intoTheAlgorithms:masterfrom Sep 11, 2020
meysam81:test/send-file
Merged
file-transfer: writing tests and ensuring that all is going well#2413cclauss merged 5 commits intoTheAlgorithms:masterfrom meysam81:test/send-file
cclauss merged 5 commits intoTheAlgorithms:masterfrom
meysam81:test/send-file
Conversation
cclauss
reviewed
Sep 10, 2020
|
Hey @meysam81, TravisCI finished with status TravisBuddy Request Identifier: 7f43b680-f470-11ea-a882-ef0b60d9fbb3 |
|
Hey @meysam81, TravisCI finished with status TravisBuddy Request Identifier: ddb088b0-f470-11ea-a882-ef0b60d9fbb3 |
Travis tests have failedHey @meysam81, TravisBuddy Request Identifier: 03d7b9e0-f472-11ea-a882-ef0b60d9fbb3 |
cclauss
approved these changes
Sep 11, 2020
Member
cclauss
left a comment
There was a problem hiding this comment.
A nice example of how to mock and test communications code.
stokhos
pushed a commit
to stokhos/Python
that referenced
this pull request
Jan 3, 2021
…Algorithms#2413) * file-transfer: writing tests and ensuring that all is going well * def send_file(filename: str = "mytext.txt", testing: bool = False) -> None: * send_file(filename="mytext.txt", testing=True) * Update send_file.py * requirements.txt: lxml Co-authored-by: Christian Clauss <cclauss@me.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Describe your change:
I added tests for improving coverage as mentioned in #2128
Checklist:
Fixes: #{$ISSUE_NO}.