def sn_backends_getter_ok():
    sn_backend1 = StreetNetworkBackend(id='kraken')
    sn_backend1.klass = 'jormungandr.street_network.tests.StreetNetworkBackendMock'
    sn_backend1.args = {'url': 'kraken.url'}
    sn_backend1.created_at = datetime.datetime.utcnow()

    sn_backend2 = StreetNetworkBackend(id='asgard')
    sn_backend2.klass = 'jormungandr.street_network.tests.StreetNetworkBackendMock'
    sn_backend2.args = {'url': 'asgard.url'}
    sn_backend2.created_at = datetime.datetime.utcnow()

    return [sn_backend1, sn_backend2]
Exemple #2
0
    def sn_backends_getter(self):
        kraken = StreetNetworkBackend(id='kraken')
        kraken.klass = "jormungandr.street_network.tests.MockKraken"
        kraken.args = {'timeout': 10}
        kraken.created_at = datetime.datetime.utcnow()

        return [kraken]