Mercurial > repos > padge > clipkit
view clipkit_repo/tests/unit/test_entrypoint.py @ 0:49b058e85902 draft
"planemo upload for repository https://github.com/jlsteenwyk/clipkit commit cbe1e8577ecb1a46709034a40dff36052e876e7a-dirty"
author | padge |
---|---|
date | Fri, 25 Mar 2022 13:04:31 +0000 |
parents | |
children |
line wrap: on
line source
import os import pytest import subprocess class TestEntrypoint(object): def test_help(self): cmd = "clipkit --help" exit_status = os.system(cmd) assert exit_status == 0 def test_run(self): cmd = "clipkit tests/integration/samples/simple.fa" exit_status = os.system(cmd) assert exit_status == 0 def test_input_error(self): cmd = "clipkit /file/doesnt/exist" response = subprocess.check_output([cmd], stderr=subprocess.STDOUT, shell=True) assert response == b"Input file does not exist\n" def test_run_no_args(self): cmd = "clipkit" exit_status = os.system(cmd) assert exit_status == 0