Exemplo n.º 1
0
def test_identities2(testdb):
    testdb.add_filler(
        generic.IdentitiesFiller(identity_type='test_identities',
                                 identities_list_file='identities_2.csv',
                                 data_folder=os.path.join(
                                     os.path.dirname(__file__), 'dummy_data')))
    testdb.fill_db()
Exemplo n.º 2
0
def test_botlist(testdb):
    testdb.add_filler(
        generic.IdentitiesFiller(identity_type='test_identities',
                                 identities_list_file='identities_2.csv',
                                 data_folder=os.path.join(
                                     os.path.dirname(__file__), 'dummy_data')))
    testdb.add_filler(
        bot_fillers.BotListFiller(bot_list=["blah['bot']"],
                                  identity_type='dummy_data'))
    testdb.fill_db()
Exemplo n.º 3
0
def test_botsfull(testdb):
    testdb.add_filler(
        generic.IdentitiesFiller(identity_type='test_identities',
                                 identities_list_file='identities_2.csv',
                                 data_folder=os.path.join(
                                     os.path.dirname(__file__), 'dummy_data')))
    testdb.add_filler(bot_fillers.BotFiller(identity_type='dummy_data'))
    testdb.add_filler(bot_fillers.BotUserFiller(identity_type='dummy_data'))
    testdb.add_filler(bot_fillers.ResetBotsFiller(identity_type='dummy_data'))
    testdb.fill_db()
Exemplo n.º 4
0
def test_identities3(testdb):
    testdb.add_filler(
        generic.IdentitiesFiller(identity_type='test_identities',
                                 identities_list=[('blah', {
                                     'name': 'blih',
                                     'age': 25
                                 }), ('bleh', '{"name":"bloh","age":35}')],
                                 data_folder=os.path.join(
                                     os.path.dirname(__file__), 'dummy_data')))
    testdb.fill_db()