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

Method assertScriptDownloads

tests/test_dataproc.py:1040–1049  ·  view source on GitHub ↗
(path, name=None)

Source from the content-addressed store, hash-verified

1038 self.assertIn('__mrjob_PWD=$PWD', lines)
1039
1040 def assertScriptDownloads(path, name=None):
1041 uri = runner._upload_mgr.uri(path)
1042 name = runner._bootstrap_dir_mgr.name('file', path, name=name)
1043
1044 self.assertIn(
1045 ' hadoop fs -copyToLocal %s $__mrjob_PWD/%s' % (uri, name),
1046 lines)
1047 self.assertIn(
1048 ' chmod u+rx $__mrjob_PWD/%s' % (name,),
1049 lines)
1050
1051 # check files get downloaded
1052 assertScriptDownloads(foo_py_path, 'bar.py')

Callers

nothing calls this directly

Calls 2

uriMethod · 0.80
nameMethod · 0.80

Tested by

no test coverage detected