def get_infographic_data(): app = flask_app.test_client() inserted_id = insert_infographic_mock_data(app) rv = app.get(f"/api/infographics-data?news_flash_id={inserted_id}") delete_new_infographic_data(inserted_id) return rv.get_json()
def app(): return flask_app.test_client()
def app(): return flask_app.test_client()