Ejemplo n.º 1
0
    def test_save_wheels_calls_pip_wheel(self, check_call):
        save_wheels(sys.executable, '/destination/path', 'django', 'wagtail',
                    '-rrequirements.txt')

        check_call.assert_called_once_with([
            sys.executable,
            '-m',
            'pip',
            'wheel',
            '--wheel-dir=/destination/path',
            '--find-links=/destination/path',
            'django',
            'wagtail',
            '-rrequirements.txt',
        ])
Ejemplo n.º 2
0
 def test_save_wheels_re_raises_pip_wheel_exception(self, check_call):
     with self.assertRaises(RuntimeError):
         save_wheels(sys.executable, '/destination/path')