MCPcopy Create free account
hub / github.com/Yelp/mrjob / _get_python_wrapper_content

Method _get_python_wrapper_content

tests/test_bin.py:1761–1772  ·  view source on GitHub ↗
(self, job_class, args)

Source from the content-addressed store, hash-verified

1759 self.log = self.start(patch('mrjob.bin.log'))
1760
1761 def _get_python_wrapper_content(self, job_class, args):
1762 job = job_class(['-r', 'hadoop'] + list(args))
1763 job.sandbox()
1764
1765 with job.make_runner() as runner:
1766 runner._create_setup_wrapper_scripts()
1767
1768 if runner._spark_python_wrapper_path:
1769 with open(runner._spark_python_wrapper_path) as f:
1770 return f.read()
1771 else:
1772 return None
1773
1774 def test_default(self):
1775 self.assertIsNone(self._get_python_wrapper_content(

Callers 11

test_defaultMethod · 0.95
test_basic_setupMethod · 0.95
test_env_shebangMethod · 0.95
test_spark_jarMethod · 0.95
test_spark_scriptMethod · 0.95
test_streaming_jobMethod · 0.95
test_jar_jobMethod · 0.95

Calls 5

openFunction · 0.85
sandboxMethod · 0.80
make_runnerMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected