def json_representation_of_fixtures( request, discussion, jack_layton_linked_discussion, test_app): from assembl.tests.utils import RecordingApp, base_fixture_dirname from shutil import rmtree from os.path import isdir base_fixture_dir = base_fixture_dirname() if isdir(base_fixture_dir + "api"): rmtree(base_fixture_dir + "api") if isdir(base_fixture_dir + "data"): rmtree(base_fixture_dir + "data") rec_app = RecordingApp(test_app) rec_app.get("/api/v1/discussion/%d/ideas" % discussion.id) rec_app.get("/api/v1/discussion/%d/posts" % discussion.id, {"view": "id_only"}) rec_app.get("/data/Discussion/%d/idea_links" % discussion.id) rec_app.get("/data/Discussion/%d/widgets" % discussion.id) rec_app.get("/data/Discussion/%d/settings/default_table_of_ideas_collapsed_state" % discussion.id) rec_app.get("/data/Discussion/%d/user_ns_kv/expertInterface_group_0_table_of_ideas_collapsed_state" % discussion.id) return None
def json_representation_of_fixtures(request, discussion, jack_layton_linked_discussion, test_app): from assembl.tests.utils import RecordingApp, base_fixture_dirname from shutil import rmtree from os.path import isdir base_fixture_dir = base_fixture_dirname() if isdir(base_fixture_dir + "api"): rmtree(base_fixture_dir + "api") if isdir(base_fixture_dir + "data"): rmtree(base_fixture_dir + "data") rec_app = RecordingApp(test_app) rec_app.get("/api/v1/discussion/%d/ideas" % discussion.id) rec_app.get("/api/v1/discussion/%d/posts" % discussion.id, {"view": "partial_post"}) rec_app.get("/api/v1/discussion/%d/explicit_subgraphs/synthesis" % discussion.id) rec_app.get("/data/Conversation/%d/idea_links" % discussion.id) rec_app.get("/data/Conversation/%d/widgets" % discussion.id) rec_app.get( "/data/Conversation/%d/settings/default_table_of_ideas_collapsed_state" % discussion.id) rec_app.get( "/data/Conversation/%d/user_ns_kv/expertInterface_group_0_table_of_ideas_collapsed_state" % discussion.id) rec_app.get("/data/Conversation/%d/all_users/current/language_preference" % discussion.id) return None