def test_run_py_tests(self, py, js): mock_args = MagicMock(name='Args') mock_args.what = ['py'] test_runner.run_tests(mock_args) py.assert_called_with(mock_args) self.assertEqual(0, js.call_count)
def test(args): args.userland_here = USERLAND_HERE args.opal_location = OPAL.parent test_runner.run_tests(args) return
def test_run_tests(self, py, js): mock_args = MagicMock(name='Args') mock_args.what = 'all' test_runner.run_tests(mock_args) py.assert_called_with(mock_args) js.assert_called_with(mock_args)
def test_run_py_tests(self, py, js): mock_args = MagicMock(name='Args') mock_args.what = ['py'] test_runner.run_tests(mock_args) py.assert_called_with(mock_args) self.assertEqual(0, js.call_count)
def test_run_tests(self, py, js): mock_args = MagicMock(name='Args') mock_args.what = 'all' test_runner.run_tests(mock_args) py.assert_called_with(mock_args) js.assert_called_with(mock_args)
def test(args): args.userland_here = USERLAND_HERE args.opal_location = OPAL.parent test_runner.run_tests(args) return
def test(args): args.userland_here = USERLAND_HERE test_runner.run_tests(args) return