def client(): config = get_config_for_tests('some.com') server = TAXIIServer(config) app = create_app(server) app.config['TESTING'] = True return app.test_client()
def run_in_dev_mode(): config = ServerConfig() configure_logging(config['logging'], plain=True) server = TAXIIServer(config) app = create_app(server) app.debug = True app.run(port=9000)
def client(): config = get_config_for_tests('some.com') server = TAXIIServer(config) server.persistence.create_services_from_object(SERVICES) app = create_app(server) app.config['TESTING'] = True return app.test_client()
def client(server): app = create_app(server) app.config['TESTING'] = True return app.test_client()
def app(): context.server = TAXIIServer(prepare_test_config()) app = create_app(context.server) app.config['TESTING'] = True return app
from opentaxii.server import TAXIIServer from opentaxii.config import ServerConfig from opentaxii.middleware import create_app from opentaxii.utils import configure_logging config = ServerConfig() configure_logging(config['logging'], plain=True) server = TAXIIServer(config) app = create_app(server) app.debug = True