[Scons-dev] Unit testing with mock?

Pawel Tomulik ptomulik at meil.pw.edu.pl
Thu Oct 22 17:58:34 EDT 2015


Hi,

If I would like to contribute a module to scons, would it be acceptable
to use mocks (https://pypi.python.org/pypi/mock) in unit tests? From
what I see, none of the existsing unit tests in SCons use mocks, perhaps
for a reason? Is it forbidden? Is there an alternative without using the
module?

The mock module is not included in the basic python distribution, it has
to be installed, for example with pip (it's a backport of unittest.mock
available in python >=3.3).


Best regards!

-- 
Paweł Tomulik



More information about the Scons-dev mailing list