def setUpClass(cls): global auth, base_url, headers auth = Preconditions() auth.log_in() headers = {"Authorization": "Token %s" % auth.token} base_url = auth.env.base_url
def setUpClass(cls): global auth, base_url, headers auth = Preconditions() auth.log_in() base_url = auth.env.base_url headers = {"Authorization": "Token %s" % auth.token} global permission_group_id auth.create_permission_group() permission_group_id = auth.permission_group_id
def setUpClass(cls): global auth, base_url, headers, hub_id, user_id, post_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() user_id = auth.user_id headers = { "Authorization": "Token %s" % auth.token, "Content-Type": "application/json" } auth.create_hub(headers) hub_id = auth.hub_id # auth.create_feed_post(headers, hub_id) # feed_post_id = auth.feed_post_id auth.create_community_post(headers, hub_id) post_id = auth.community_post_id global short_url short_url = auth.short_url
def setUpClass(cls): global auth, base_url, headers, hub_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() headers = {"Authorization": "Token %s" % auth.token} auth.create_hub(headers) hub_id = auth.hub_id
def setUpClass(cls): global auth, base_url, headers, hub_id, user_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() user_id = auth.user_id headers = { "Authorization": "Token %s" % auth.token, "BKSTG_DISABLE_CACHE": "True" } auth.create_hub(headers) hub_id = auth.hub_id global image_item auth.upload_image(TestData.image_path) image_item = auth.image_item
def setUpClass(cls): global auth, base_url, headers, hub_id, user_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() user_id = auth.user_id headers = {"Authorization": "Token %s" % auth.token, "BKSTG_DISABLE_CACHE": "True"} auth.create_hub(headers) hub_id = auth.hub_id global image_item auth.upload_image(TestData.image_path) image_item = auth.image_item
def setUpClass(cls): global auth, base_url, headers auth = Preconditions() base_url = auth.env.base_url auth.log_in() headers = {"Authorization": "Token %s" % auth.token} global new_user_id, new_user_headers, new_user_name, new_user_email auth.create_user() new_user_id = auth.new_user_id new_user_name = auth.new_user_name new_user_email = auth.new_user_email new_user_headers = {"Authorization": "Token %s" % auth.new_user_token}
def setUpClass(cls): global auth, base_url, headers, hub_id, user_id, post_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() user_id = auth.user_id headers = {"Authorization": "Token %s" % auth.token, "Content-Type": "application/json"} auth.create_hub(headers) hub_id = auth.hub_id # auth.create_feed_post(headers, hub_id) # feed_post_id = auth.feed_post_id auth.create_community_post(headers, hub_id) post_id = auth.community_post_id global short_url short_url = auth.short_url
def setUpClass(cls): global auth, base_url, user_name, headers, user_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() user_id = auth.user_id user_name = auth.user_name headers = { "Authorization": "Token %s" % auth.token, "BKSTG_DISABLE_CACHE": "True" } global hub_id, post_id, comment_id auth.create_hub(headers) hub_id = auth.hub_id auth.create_community_post(headers, hub_id) post_id = auth.community_post_id auth.create_community_post_comment(headers, hub_id, post_id) comment_id = auth.community_post_comment_id global new_user_id, new_user_name, new_user_email, new_user_headers auth.create_user() new_user_id = auth.new_user_id new_user_name = auth.new_user_name new_user_email = auth.new_user_email new_user_headers = {"Authorization": "Token %s" % auth.token}
def setUpClass(cls): global auth, base_url, hub_id, headers auth = Preconditions() base_url = auth.env.base_url auth.log_in() headers = {"Authorization": "Token %s" % auth.token} auth.create_hub(headers) hub_id = auth.hub_id global item_content_id, item_content_id_2, item_content_id_3 auth.add_community_inappropriate_post(hub_id, 'boobs') item_content_id = auth.inappropriate_community_post_id auth.add_community_inappropriate_post(hub_id, 'boobs') item_content_id_2 = auth.inappropriate_community_post_id auth.add_community_inappropriate_post(hub_id, 'boobs') item_content_id_3 = auth.inappropriate_community_post_id
def setUpClass(cls): global auth, base_url auth = Preconditions() base_url = auth.env.base_url
def setUpClass(cls): global auth, base_url, headers, hub_id, user_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() headers = {"Authorization": "Token %s" % auth.token, "BKSTG_DISABLE_CACHE": "True"} user_id = auth.user_id auth.create_hub(headers) hub_id = auth.hub_id global cover, image_id, audio_id, video_id, image_key, thumbnail_id cover = TestData.album_cover auth.upload_image(TestData.image_path) image_key = auth.image_key image_id = auth.image_id auth.upload_video(TestData.video_path) video_id = auth.video_id auth.upload_audio(TestData.audio_path) audio_id = auth.audio_id auth.upload_thumbnail(TestData.thumbnail_path) thumbnail_id = auth.thumbnail_id
def setUpClass(cls): global auth, headers, base_url, user_id, hub_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() headers = { "Authorization": "Token %s" % auth.token, "BKSTG_DISABLE_CACHE": "True" } user_id = auth.user_id auth.create_hub(headers) hub_id = auth.hub_id global new_user_id, celebrity_headers auth.create_user() new_user_id = auth.new_user_id celebrity_headers = { "Authorization": "Token %s" % auth.new_user_token, "BKSTG_DISABLE_CACHE": "True" } global new_user_id_2, new_user_headers_2, new_user_id_3, new_user_headers_3 auth.create_user() new_user_id_2 = auth.new_user_id new_user_headers_2 = { "Authorization": "Token %s" % auth.new_user_token, "BKSTG_DISABLE_CACHE": "True" } auth.create_user() new_user_id_3 = auth.new_user_id new_user_headers_3 = { "Authorization": "Token %s" % auth.new_user_token, "BKSTG_DISABLE_CACHE": "True" } global image_id, image_item auth.upload_image(TestData.image_path) image_item = auth.image_item image_id = auth.image_id
def setUpClass(cls): global auth, base_url, headers, hub_id, user_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() user_id = auth.user_id headers = {"Authorization": "Token %s" % auth.token, "BKSTG_DISABLE_CACHE": "True"} auth.create_hub(headers) hub_id = auth.hub_id global new_user_id, new_user_headers, new_user_name, new_user_email auth.create_user() new_user_id = auth.new_user_id new_user_name = auth.new_user_name new_user_email = auth.new_user_email new_user_headers = {"Authorization": "Token %s" % auth.new_user_token, "BKSTG_DISABLE_CACHE": "True"} global new_user_headers_2, new_user_id_2 auth.create_user() new_user_id_2 = auth.new_user_id new_user_headers_2 = {"Authorization": "Token %s" % auth.new_user_token, "BKSTG_DISABLE_CACHE": "True"} global new_user_email_3, new_user_id_3, new_user_headers_3 auth.create_user() new_user_id_3 = auth.new_user_id new_user_email_3 = auth.new_user_email new_user_headers_3 = {"Authorization": "Token %s" % auth.new_user_token, "BKSTG_DISABLE_CACHE": "True"} global new_user_email_4, new_user_id_4, new_user_headers_4 auth.create_user() new_user_id_4 = auth.new_user_id new_user_email_4 = auth.new_user_email new_user_headers_4 = {"Authorization": "Token %s" % auth.new_user_token, "BKSTG_DISABLE_CACHE": "True"}
def setUpClass(cls): global auth, base_url, user_name, headers, user_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() user_id = auth.user_id user_name = auth.user_name headers = {"Authorization": "Token %s" % auth.token, "BKSTG_DISABLE_CACHE": "True"} global hub_id, post_id, comment_id auth.create_hub(headers) hub_id = auth.hub_id auth.create_community_post(headers, hub_id) post_id = auth.community_post_id auth.create_community_post_comment(headers, hub_id, post_id) comment_id = auth.community_post_comment_id global new_user_id, new_user_name, new_user_email, new_user_headers auth.create_user() new_user_id = auth.new_user_id new_user_name = auth.new_user_name new_user_email = auth.new_user_email new_user_headers = {"Authorization": "Token %s" % auth.token}
def setUpClass(cls): global auth, base_url, headers, hub_id, user_id auth = Preconditions() base_url = auth.env.base_url auth.log_in() headers = { "Authorization": "Token %s" % auth.token, "BKSTG_DISABLE_CACHE": "True" } user_id = auth.user_id auth.create_hub(headers) hub_id = auth.hub_id global cover, image_id, audio_id, video_id, image_key, thumbnail_id cover = TestData.album_cover auth.upload_image(TestData.image_path) image_key = auth.image_key image_id = auth.image_id auth.upload_video(TestData.video_path) video_id = auth.video_id auth.upload_audio(TestData.audio_path) audio_id = auth.audio_id auth.upload_thumbnail(TestData.thumbnail_path) thumbnail_id = auth.thumbnail_id
def setUpClass(cls): global auth, base_url, headers, user_id, user_name, token auth = Preconditions() base_url = auth.env.base_url auth.log_in() token = auth.token headers = { "Authorization": "Token %s" % auth.token, "BKSTG_DISABLE_CACHE": "True" } user_id = auth.user_id user_name = auth.user_name global hub_id, post_id, comment_id auth.create_hub(headers) hub_id = auth.hub_id sleep(1) # avoid fail on Jenkins auth.create_feed_post(headers, hub_id) post_id = auth.feed_post_id auth.create_feed_post_comment(headers, hub_id, post_id) comment_id = auth.feed_post_comment_id global new_user_id, new_user_name auth.create_user() new_user_id = auth.new_user_id new_user_name = auth.new_user_name