Exemplo n.º 1
0
    def __init__(self):
        self.schedule = Schedule(":memory:")
        append_feed(self.schedule, "test/data/atx_small" )


# class GTFSATXSetup(object):
#     def __init__(self):
#         self.schedule = Schedule(":memory:")
#         append_feed(self.schedule, "test/data/atx_small" )
Exemplo n.º 2
0
 def setUp(self):
     self.schedule = Schedule(":memory:")
     overwrite_feed(self.schedule, "test/data/sample-feed.zip")
Exemplo n.º 3
0
Arquivo: test.py Projeto: nkawa/pygtfs
 def setUp(self):
     self.schedule = Schedule(":memory:")
     data_location = os.path.join(os.path.dirname(__file__), "data",
                                  "sample_feed")
     overwrite_feed(self.schedule, data_location)
Exemplo n.º 4
0
def gtfs_import():
    schedule = Schedule("gtfs.sqlite")
    append_feed(schedule, "israel-gtfs.zip")