Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8761

Re: Help for Python mock test suite needed (Was: Any help with problem of srst2 new versions tests suite failing to call bowtie2)

Path csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.maint.python
Subject Re: Help for Python mock test suite needed (Was: Any help with problem of srst2 new versions tests suite failing to call bowtie2)
Date Sun, 14 Aug 2016 00:30:01 +0200
Message-ID <s5PBf-7sM-3@gated-at.bofh.it> (permalink)
References <s5AVz-5B0-3@gated-at.bofh.it> <s5AVz-5B0-1@gated-at.bofh.it> <s5Kid-3N8-7@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Sat Aug 13 22:22:44 2016
Old-Return-Path <andreas@an3as.eu>
X-Amavis-Spam-Status No, score=-6.167 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, MEDS2=2, MURPHY_DRUGS_REL8=0.02, RP_MATCHES_RCVD=-1.287] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -6.1
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
X-Mailing-List <debian-python@lists.debian.org> archive/latest/14102
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20160813222229.GI22254@an3as.eu
Approved robomod@news.nic.it
Lines 60
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 14 Aug 2016 00:22:29 +0200
X-Original-Message-ID <20160813222229.GI22254@an3as.eu>
X-Original-References <20160809213240.GA22935@an3as.eu> <20160813064034.GA22254@an3as.eu> <2201782.mV6MicLdnE@kitterma-e6430>
Xref csiph.com linux.debian.maint.python:8761

Show key headers only | View raw


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

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Help for Python mock test suite needed (Was: Any help with problem  of srst2 new versions tests suite failing to call bowtie2) Andreas Tille <andreas@an3as.eu> - 2016-08-13 08:50 +0200
  Re: Help for Python mock test suite needed (Was: Any help with problem of srst2 new versions tests suite failing to call bowtie2) Scott Kitterman <debian@kitterman.com> - 2016-08-13 18:50 +0200
    Re: Help for Python mock test suite needed (Was: Any help with  problem of srst2 new versions tests suite failing to call bowtie2) Andreas Tille <andreas@an3as.eu> - 2016-08-14 00:30 +0200
      Re: Help for Python mock test suite needed Ben Finney <ben+debian@benfinney.id.au> - 2016-08-14 02:50 +0200
        Re: Help for Python mock test suite needed Andreas Tille <andreas@an3as.eu> - 2016-08-14 08:20 +0200
          Re: Help for Python mock test suite needed Ben Finney <ben+debian@benfinney.id.au> - 2016-08-14 21:10 +0200
            Re: Help for Python mock test suite needed Andreas Tille <andreas@an3as.eu> - 2016-08-15 12:00 +0200
              Re: Help for Python mock test suite needed Ben Finney <ben+debian@benfinney.id.au> - 2016-08-15 22:30 +0200
                Re: Help for Python mock test suite needed Andreas Tille <andreas@an3as.eu> - 2016-08-17 14:00 +0200
                Re: Help for Python mock test suite needed Barry Warsaw <barry@debian.org> - 2016-08-17 15:30 +0200

csiph-web