Re: Help for Python mock test suite needed
Andreas Tille <andreas@an3as.eu> 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
Reply to: