diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2017-07-22 21:27:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-22 21:27:54 -0700 |
commit | f159246d1d073ae7230b5412a4a2a20eac7f49c2 (patch) | |
tree | 22bc9233b630669ae351f5480a2d8dd866e3ba9c /.flake8 | |
parent | c07d93a3e5101d72939ab0feb841a98b4bc36cb8 (diff) | |
download | spack-f159246d1d073ae7230b5412a4a2a20eac7f49c2.tar.gz spack-f159246d1d073ae7230b5412a4a2a20eac7f49c2.tar.bz2 spack-f159246d1d073ae7230b5412a4a2a20eac7f49c2.tar.xz spack-f159246d1d073ae7230b5412a4a2a20eac7f49c2.zip |
Make testing spack commands simpler (#4868)
Adds SpackCommand class allowing Spack commands to be easily in Python
Example usage:
from spack.main import SpackCommand
info = SpackCommand('info')
out, err = info('mpich')
print(info.returncode)
This allows easier testing of Spack commands.
Also:
* Simplify command tests
* Simplify mocking in command tests.
* Simplify module command test
* Simplify python command test
* Simplify uninstall command test
* Simplify url command test
* SpackCommand uses more compatible output redirection
Diffstat (limited to '.flake8')
0 files changed, 0 insertions, 0 deletions