def setUpTestData(cls): p1 = PathFactory() cls.seek_path = PathFactory(geom=getRandomLineStringInBounds()) topo_1 = TopologyFactory.create(paths=[p1]) seek_topo = TopologyFactory.create(paths=[cls.seek_path]) InterventionFactory.create(target=topo_1) cls.seek_inter = InterventionFactory.create(target=seek_topo)
def setUpTestData(cls): p1 = PathFactory() cls.seek_path = PathFactory(geom=getRandomLineStringInBounds()) topo_1 = TopologyFactory.create(paths=[p1]) seek_topo = TopologyFactory.create(paths=[cls.seek_path]) it_p1 = InterventionFactory.create(target=topo_1) seek_it = InterventionFactory.create(target=seek_topo) cls.seek_proj = ProjectFactory.create() cls.seek_proj.interventions.add(seek_it) proj_1 = ProjectFactory.create() proj_1.interventions.add(it_p1)
def create_pair_of_distinct_path(self): return PathFactory(), PathFactory(geom=getRandomLineStringInBounds())