Ejemplo n.º 1
0
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]
Ejemplo n.º 2
0
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]
Ejemplo n.º 3
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]
Ejemplo n.º 4
0
def test_lookup():
    rdd = Context().parallelize([(0, 1), (1, 1), (1, 3)])
    print(rdd.lookup(1))
    assert 3 in rdd.lookup(1)