Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for utils.run_shell_command #513

Closed
wants to merge 2 commits into from

Conversation

elebow
Copy link
Contributor

@elebow elebow commented Apr 2, 2020

Description of proposed changes

  • Add unit test coverage to utils.run_shell_command.
  • Use fstrings in utils.run_shell_command, now that Python 3.6 is the minimum supported version.

Related issue(s)

nope

Testing

yep

@codecov
Copy link

codecov bot commented Apr 2, 2020

Codecov Report

Merging #513 into master will increase coverage by 0.32%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #513      +/-   ##
==========================================
+ Coverage   18.65%   18.98%   +0.32%     
==========================================
  Files          31       31              
  Lines        5061     5063       +2     
  Branches     1282     1282              
==========================================
+ Hits          944      961      +17     
+ Misses       4090     4077      -13     
+ Partials       27       25       -2     
Impacted Files Coverage Δ
augur/utils.py 26.72% <100.00%> (+3.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7258b8b...b851994. Read the comment docs.

@elebow
Copy link
Contributor Author

elebow commented Apr 3, 2020

I don't love the way these tests shook out, but I would plan to break utils.run_shell_command into a new class in utils/shell_command_runner.py. The main purpose of these tests is to provide confidence during that refactoring.

@elebow
Copy link
Contributor Author

elebow commented Apr 7, 2020

This is obsoleted by #526, but may still have value if this is ready for merging first.

@huddlej
Copy link
Contributor

huddlej commented Jun 26, 2020

Closing this PR since it was superseded by #526 and #577.

@huddlej huddlej closed this Jun 26, 2020
@elebow elebow deleted the test-run_shell_command branch July 4, 2020 04:00
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