Mock the subprocess call for .Net

This commit is contained in:
Eric Holscher 2015-06-23 14:09:47 -07:00
parent 4c8fc0dc94
commit d0621199c8

View File

@ -82,6 +82,7 @@ class DomainTests(unittest.TestCase):
with nested(
patch('autoapi.mappers.dotnet.DotNetSphinxMapper.find_files', _mock_find),
patch('autoapi.mappers.dotnet.DotNetSphinxMapper.read_file', _mock_read),
patch('subprocess.check_output', lambda foo: foo),
):
dom = dotnet.DotNetSphinxMapper(self.application)
dom.load('', '', '')