Skip to content

Commit

Permalink
trying to fix test drop
Browse files Browse the repository at this point in the history
  • Loading branch information
cokelaer committed Aug 4, 2020
1 parent cafdf19 commit 3135596
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ install:

# # command to run tests, e.g. python setup.py test
script:
#- pytest -v --cov-config=.coveragerc_travis --durations=10 test/ --cov=damona --cov-report term-missing --timeout 300
- pytest -v --durations=10 test/ --cov=damona --cov-report term-missing --timeout 300

after_success:
Expand Down
5 changes: 1 addition & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ test=pytest

[tool:pytest]
# do not use --cov because it interfers with travis command
addopts= --durations=10 --verbose -n 4 --cov damona --cov-report term-missing
addopts= --durations=10 --verbose -n 1 --cov damona --cov-report term-missing
filterwarnings=
ignore:tostring.*is deprecated
ignore:zmq.* is deprecated

[pytest]
filterwarnings=
ignore:tostring.*is deprecated
14 changes: 8 additions & 6 deletions test/test_damona.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@



def test_pull():
def test_help():
cmd = "damona --help"
subprocess.call(cmd.split())
cmd = "damona pull --help"
subprocess.call(cmd.split())


def test_list():
cmd = "damona list --help"
subprocess.call(cmd.split())

cmd = "damona pull --help"
subprocess.call(cmd.split())

cmd = "damona list"
subprocess.call(cmd.split())

def test_develop():
try:
cmd = "damona develop"
subprocess.call(cmd.split())
Expand All @@ -28,11 +30,11 @@ def test_pull():
cmd = "damona develop --path {}".format(__path__[0] + "/fastq" )
subprocess.call(cmd.split())


def test_pull_dryrun():
cmd = "damona pull fastqc:0.11.9 --dryrun"
subprocess.call(cmd.split())


def test_pull_wrong():
# non existing image
cmd = "damona pull tartuffe"
try:
Expand Down

0 comments on commit 3135596

Please sign in to comment.