def test_wholeTextFiles(): all_files = Context().wholeTextFiles('{}/*.py'.format(LOCAL_TEST_PATH)) this_file = all_files.lookup(__file__) print(this_file) assert 'test_wholeTextFiles' in this_file[0]
def test_wholeTextFiles(): all_files = Context().wholeTextFiles(f'{LOCAL_TEST_PATH}{os.path.sep}*.py') this_file = all_files.lookup(__file__) print(this_file) assert 'test_wholeTextFiles' in this_file[0]
def test_lookup(): rdd = Context().parallelize([(0, 1), (1, 1), (1, 3)]) print(rdd.lookup(1)) assert 3 in rdd.lookup(1)