def test_sliceassembly(self, tmpdir, testdata): scene1 = testdata['s1'] scene2 = testdata['s1_2'] wf = geocode([scene1, scene2], str(tmpdir), test=True, returnWF=True) for n in range(1, 4): groups = groupbyWorkers(wf, n=n) split(wf, groups)
def test_geocode(tmpdir, testdata): scene = testdata['s1'] geocode(scene, str(tmpdir), test=True) xmlfile = finder(str(tmpdir), ['*.xml'])[0] tree = Workflow(xmlfile) nodes = tree.nodes() assert is_consistent(nodes) is True groups = groupbyWorkers(xmlfile, 2) split(xmlfile, groups) id = identify(scene) basename = '{}_{}'.format(id.outname_base(), tree.suffix) procdir = os.path.join(str(tmpdir), basename) assert os.path.isdir(procdir) tempdir = os.path.join(procdir, 'temp') assert os.path.isdir(tempdir) parts = finder(tempdir, ['*.xml']) assert len(parts) == 4