Path: csiph.com!goblin2!goblin.stu.neva.ru!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod From: Ben Finney Newsgroups: linux.debian.maint.python Subject: Re: Help for Python mock test suite needed Date: Sun, 14 Aug 2016 21:10:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Aug 14 19:01:21 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.206 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RDNS_NONE=0.793] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -6.1 X-Injected-Via-Gmane: http://gmane.org/ Lines: 39 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney Cancel-Lock: sha1:KpOiOrJM6qhBQ8YjPx/KNxA6YOE= X-Mailing-List: archive/latest/14108 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/85bn0vyy3f.fsf@benfinney.id.au Approved: robomod@news.nic.it Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 15 Aug 2016 05:00:52 +1000 X-Original-Message-ID: <85bn0vyy3f.fsf@benfinney.id.au> X-Original-References: <20160809213240.GA22935@an3as.eu> <20160813064034.GA22254@an3as.eu> <2201782.mV6MicLdnE@kitterma-e6430> <20160813222229.GI22254@an3as.eu> <85oa4wyyie.fsf@benfinney.id.au> <20160814061201.GL22254@an3as.eu> X-Original-X-Complaints-To: usenet@blaine.gmane.org Xref: csiph.com linux.debian.maint.python:8767 Andreas Tille writes: > https://paste.debian.net/789238/ That appears to be a simple failure when the test suite is run. The assertions, as reported, are in the ‘test_srst2’ module: ===== […] 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. […] 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. ===== The tracebacks tell you what test case functions are emitting failures: File "test_srst2.py", line 213, in test_run_bowtie_with_defaults File "test_srst2.py", line 180, in test_run_bowtie_with_overide Within those test case functions you can see the exact command that was expected to be run. The assertion is that ‘srst2.run_command’ is expected to be called (with specific arguments), but is not called, hence the assertion fails. -- \ “Don't be afraid of missing opportunities. Behind every failure | `\ is an opportunity somebody wishes they had missed.” —Jane | _o__) Wagner, via Lily Tomlin | Ben Finney