Ejemplo n.º 1
0
def setDEBUG_False():
    debug_module.setDEBUG(False)
    return 'DEBUG = False'
Ejemplo n.º 2
0
        import all_tests.server_tests as tests

        g.db.drop_tables([AdminPage, TargetGroup, UserPage, SenderPage],
                         safe=True)  # TODO delete it
        create_db()

        tests.test_add_admin()
        tests.test_add_group()
        tests.test_add_sender()

        tests.test_change_mess_count()
        tests.test_change_text()
        tests.test_run_sender()

        tests.test_consumer_reply()
        tests.test_forward_messages()

        tests.test_consumer_mess()
        tests.test_not_command_mes()

        logger.info('All all_tests are passed!')
        return 'ok'


import os
if not ('HEROKU' in os.environ):
    print('unitests started')
    setDEBUG(True)
    test()
    print('unitests ended')
Ejemplo n.º 3
0
def setDEBUG_True():
    debug_module.setDEBUG(True)
    return 'DEBUG = True'