Re: Help for Python mock test suite needed (Was: Any help with problem of srst2 new versions tests suite failing to call bowtie2)
Hi Scott,
On Sat, Aug 13, 2016 at 12:41:42PM -0400, Scott Kitterman wrote:
> > >
> > > Any more complete hint from a possibly bowtie2 user would be helpful
> > >
> > > Andreas.
> > >
> > > [1] svn://anonscm.debian.org/debian-med/trunk/packages/srst2/trunk/
>
> A link to a build log showing the test failure might be helpful.
There is no such link. If it helps I could migrate from SVN to Git which
might lower the barrier for reproducing the issue. The interesting part
of the build log is
cd tests && python test_slurm_srst2.py && python test_srst2.py
...........
----------------------------------------------------------------------
Ran 11 tests in 0.040s
OK
.............FF..
======================================================================
FAIL: test_run_bowtie_with_defaults (__main__.TestRunBowtie)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "test_srst2.py", line 213, in test_run_bowtie_with_defaults
run_mock.assert_called_once_with(expected_bowtie2_command)
File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 947, in assert_called_once_with
raise AssertionError(msg)
AssertionError: Expected 'run_command' to be called once. Called 0 times.
======================================================================
FAIL: test_run_bowtie_with_overide (__main__.TestRunBowtie)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "test_srst2.py", line 180, in test_run_bowtie_with_overide
run_mock.assert_called_once_with(expected_bowtie2_command)
File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 947, in assert_called_once_with
raise AssertionError(msg)
AssertionError: Expected 'run_command' to be called once. Called 0 times.
----------------------------------------------------------------------
Ran 17 tests in 0.060s
FAILED (failures=2)
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: