Mock the subprocess call for .Net

pull/13/head
Eric Holscher 9 years ago
parent 4c8fc0dc94
commit d0621199c8

@ -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('', '', '')

Loading…
Cancel
Save