Exemplo n.º 1
0
 def setUp(self, OSUtilMock):
     self.osutils = OSUtilMock.return_value
     self.osutils.pipe = "PIPE"
     self.popen = FakePopen()
     self.osutils.popen.side_effect = [self.popen]
     self.under_test = SubprocessBundler(self.osutils,
                                         bundler_exe="/a/b/c/bundle")
Exemplo n.º 2
0
 def test_run_executes_bundler_on_windows(self):
     self.osutils.is_windows.side_effect = [True]
     self.under_test = SubprocessBundler(self.osutils)
     self.under_test.run(["install", "--without", "development", "test"])
     self.osutils.popen.assert_called_with(
         ["bundler.bat", "install", "--without", "development", "test"],
         cwd=None,
         stderr="PIPE",
         stdout="PIPE")
Exemplo n.º 3
0
 def test_run_executes_bundler_on_windows(self):
     self.osutils.is_windows.side_effect = [True]
     self.under_test = SubprocessBundler(self.osutils)
     self.under_test.run(['install', '--without', 'development', 'test'])
     self.osutils.popen.assert_called_with(
         ['bundler.bat', 'install', '--without', 'development', 'test'],
         cwd=None,
         stderr='PIPE',
         stdout='PIPE')