Exemplo n.º 1
0
def feeder_run(o):
    if o['list']:
        if o['fake']:
            list_fake_types()
        elif o['transports']:
            list_transports()
        elif o['formatters']:
            list_formatters()

    elif o['feed']:
        generator(config=o.get('--config'),
                  transport=o.get('--transport'),
                  formatter=o.get('--format'),
                  gap=o.get('--gap'),
                  messages=o.get('--messages'),
                  batch=o.get('--batch'),
                  verbose=o.get('--verbose'))
Exemplo n.º 2
0
def feeder_run(o):
    if o['list']:
        if o['fake']:
            list_fake_types()
        elif o['transports']:
            list_transports()
        elif o['formatters']:
            list_formatters()

    elif o['feed']:
        generator(config=o.get('--config'),
                 transport=o.get('--transport'),
                 formatter=o.get('--format'),
                 gap=o.get('--gap'),
                 messages=o.get('--messages'),
                 batch=o.get('--batch'),
                 verbose=o.get('--verbose'))
Exemplo n.º 3
0
 def test_list_transports(self):
     fd.list_transports()
Exemplo n.º 4
0
 def test_list_transports(self):
     fd.list_transports()