{"action":"created","comment":{"url":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/comments/165887863","pull_request_review_id":93890251,"id":165887863,"diff_hunk":"@@ -0,0 +1,206 @@\n+from datetime import datetime\n+import requests\n+from requests.auth import HTTPBasicAuth\n+from fake_useragent import UserAgent\n+from .global_variables import *\n+from .compare_json import compare_data_dictionaries\n+\n+\n+class TestMerchantEndPoints(object):\n+\n+    url_merchants = MERCHANTS #for merchants\n+    url_empty_search_scope = EMPTY_SEARCH_SCOPE_MODE\n+    url_merchant_search_scope = MERCHANT_SEARCH_SCOPE_MODE\n+    url_merchant_names = MERCHAT_NAMES\n+    url_merchant_name = MERCHAT_NAME\n+    url_merchant_with_id = MERCHANT_WITH_ID\n+    url_merchant_outlets_with_id = MERCHANT_OUTLETS_WITH_ID\n+    name_merchant_outlets_with_id = 'merchant_outlets_with_id'\n+    name_merchant_with_id = 'merchant_with_id'\n+    name_merchants = 'merchants'\n+    name_merchant_empty_search = 'merchant_empty_search_scope'\n+    name_merchant_search_scope = 'merchant_search_scope'\n+    name_merchant_names = 'merchant_names'\n+    name_merchant_name = 'merchant_name'\n+    ua = UserAgent()\n+    header = {'user-agent': ua.chrome}\n+    http_auth = HTTPBasicAuth('prototype', 'prototype')\n+    date = str(datetime.now()).split(' ')[0]\n+\n+    def test_with_all_correct_parameters_merchant_with_id(self):\n+\n+        file_pointer = open('logs/{name}_{date}.txt'.format(date=self.date, name=self.name_merchant_with_id), 'w')","path":"test_apis/test_merchant.py","position":32,"original_position":32,"commit_id":"4f28acebbb20d5d712555310610c1540ee869d12","original_commit_id":"834d04bbc0bab280029cca6c7120eaa5564a2a27","user":{"login":"msaqibqc","id":23627785,"avatar_url":"https://avatars1.githubusercontent.com/u/23627785?v=4","gravatar_id":"","url":"https://api.github.com/users/msaqibqc","html_url":"https://github.com/msaqibqc","followers_url":"https://api.github.com/users/msaqibqc/followers","following_url":"https://api.github.com/users/msaqibqc/following{/other_user}","gists_url":"https://api.github.com/users/msaqibqc/gists{/gist_id}","starred_url":"https://api.github.com/users/msaqibqc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msaqibqc/subscriptions","organizations_url":"https://api.github.com/users/msaqibqc/orgs","repos_url":"https://api.github.com/users/msaqibqc/repos","events_url":"https://api.github.com/users/msaqibqc/events{/privacy}","received_events_url":"https://api.github.com/users/msaqibqc/received_events","type":"User","site_admin":false},"body":"date is the shadow name, it can be modified.","created_at":"2018-02-05T06:06:50Z","updated_at":"2018-02-05T06:11:03Z","html_url":"https://github.com/arslanhashmi/SQA_testing/pull/3#discussion_r165887863","pull_request_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/comments/165887863"},"html":{"href":"https://github.com/arslanhashmi/SQA_testing/pull/3#discussion_r165887863"},"pull_request":{"href":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/3","id":166793415,"html_url":"https://github.com/arslanhashmi/SQA_testing/pull/3","diff_url":"https://github.com/arslanhashmi/SQA_testing/pull/3.diff","patch_url":"https://github.com/arslanhashmi/SQA_testing/pull/3.patch","issue_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues/3","number":3,"state":"open","locked":false,"title":"App tests","user":{"login":"arslanhashmi","id":17988601,"avatar_url":"https://avatars1.githubusercontent.com/u/17988601?v=4","gravatar_id":"","url":"https://api.github.com/users/arslanhashmi","html_url":"https://github.com/arslanhashmi","followers_url":"https://api.github.com/users/arslanhashmi/followers","following_url":"https://api.github.com/users/arslanhashmi/following{/other_user}","gists_url":"https://api.github.com/users/arslanhashmi/gists{/gist_id}","starred_url":"https://api.github.com/users/arslanhashmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arslanhashmi/subscriptions","organizations_url":"https://api.github.com/users/arslanhashmi/orgs","repos_url":"https://api.github.com/users/arslanhashmi/repos","events_url":"https://api.github.com/users/arslanhashmi/events{/privacy}","received_events_url":"https://api.github.com/users/arslanhashmi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-02T12:43:31Z","updated_at":"2018-02-05T06:11:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7c1c55a2ace201c31474c786d11a06dc72464d4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/3/commits","review_comments_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/3/comments","review_comment_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues/3/comments","statuses_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/statuses/4f28acebbb20d5d712555310610c1540ee869d12","head":{"label":"arslanhashmi:app_tests","ref":"app_tests","sha":"4f28acebbb20d5d712555310610c1540ee869d12","user":{"login":"arslanhashmi","id":17988601,"avatar_url":"https://avatars1.githubusercontent.com/u/17988601?v=4","gravatar_id":"","url":"https://api.github.com/users/arslanhashmi","html_url":"https://github.com/arslanhashmi","followers_url":"https://api.github.com/users/arslanhashmi/followers","following_url":"https://api.github.com/users/arslanhashmi/following{/other_user}","gists_url":"https://api.github.com/users/arslanhashmi/gists{/gist_id}","starred_url":"https://api.github.com/users/arslanhashmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arslanhashmi/subscriptions","organizations_url":"https://api.github.com/users/arslanhashmi/orgs","repos_url":"https://api.github.com/users/arslanhashmi/repos","events_url":"https://api.github.com/users/arslanhashmi/events{/privacy}","received_events_url":"https://api.github.com/users/arslanhashmi/received_events","type":"User","site_admin":false},"repo":{"id":115222795,"name":"SQA_testing","full_name":"arslanhashmi/SQA_testing","owner":{"login":"arslanhashmi","id":17988601,"avatar_url":"https://avatars1.githubusercontent.com/u/17988601?v=4","gravatar_id":"","url":"https://api.github.com/users/arslanhashmi","html_url":"https://github.com/arslanhashmi","followers_url":"https://api.github.com/users/arslanhashmi/followers","following_url":"https://api.github.com/users/arslanhashmi/following{/other_user}","gists_url":"https://api.github.com/users/arslanhashmi/gists{/gist_id}","starred_url":"https://api.github.com/users/arslanhashmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arslanhashmi/subscriptions","organizations_url":"https://api.github.com/users/arslanhashmi/orgs","repos_url":"https://api.github.com/users/arslanhashmi/repos","events_url":"https://api.github.com/users/arslanhashmi/events{/privacy}","received_events_url":"https://api.github.com/users/arslanhashmi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arslanhashmi/SQA_testing","description":null,"fork":false,"url":"https://api.github.com/repos/arslanhashmi/SQA_testing","forks_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/forks","keys_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/teams","hooks_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/hooks","issue_events_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues/events{/number}","events_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/events","assignees_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/assignees{/user}","branches_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/branches{/branch}","tags_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/tags","blobs_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/statuses/{sha}","languages_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/languages","stargazers_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/stargazers","contributors_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/contributors","subscribers_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/subscribers","subscription_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/subscription","commits_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/contents/{+path}","compare_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/merges","archive_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/downloads","issues_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues{/number}","pulls_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls{/number}","milestones_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/milestones{/number}","notifications_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/labels{/name}","releases_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/releases{/id}","deployments_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/deployments","created_at":"2017-12-23T21:28:05Z","updated_at":"2018-02-02T09:59:40Z","pushed_at":"2018-02-05T06:08:01Z","git_url":"git://github.com/arslanhashmi/SQA_testing.git","ssh_url":"git@github.com:arslanhashmi/SQA_testing.git","clone_url":"https://github.com/arslanhashmi/SQA_testing.git","svn_url":"https://github.com/arslanhashmi/SQA_testing","homepage":null,"size":2771,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"arslanhashmi:master","ref":"master","sha":"8372856cdb9a9780b8726989b6ca693a753f3562","user":{"login":"arslanhashmi","id":17988601,"avatar_url":"https://avatars1.githubusercontent.com/u/17988601?v=4","gravatar_id":"","url":"https://api.github.com/users/arslanhashmi","html_url":"https://github.com/arslanhashmi","followers_url":"https://api.github.com/users/arslanhashmi/followers","following_url":"https://api.github.com/users/arslanhashmi/following{/other_user}","gists_url":"https://api.github.com/users/arslanhashmi/gists{/gist_id}","starred_url":"https://api.github.com/users/arslanhashmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arslanhashmi/subscriptions","organizations_url":"https://api.github.com/users/arslanhashmi/orgs","repos_url":"https://api.github.com/users/arslanhashmi/repos","events_url":"https://api.github.com/users/arslanhashmi/events{/privacy}","received_events_url":"https://api.github.com/users/arslanhashmi/received_events","type":"User","site_admin":false},"repo":{"id":115222795,"name":"SQA_testing","full_name":"arslanhashmi/SQA_testing","owner":{"login":"arslanhashmi","id":17988601,"avatar_url":"https://avatars1.githubusercontent.com/u/17988601?v=4","gravatar_id":"","url":"https://api.github.com/users/arslanhashmi","html_url":"https://github.com/arslanhashmi","followers_url":"https://api.github.com/users/arslanhashmi/followers","following_url":"https://api.github.com/users/arslanhashmi/following{/other_user}","gists_url":"https://api.github.com/users/arslanhashmi/gists{/gist_id}","starred_url":"https://api.github.com/users/arslanhashmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arslanhashmi/subscriptions","organizations_url":"https://api.github.com/users/arslanhashmi/orgs","repos_url":"https://api.github.com/users/arslanhashmi/repos","events_url":"https://api.github.com/users/arslanhashmi/events{/privacy}","received_events_url":"https://api.github.com/users/arslanhashmi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arslanhashmi/SQA_testing","description":null,"fork":false,"url":"https://api.github.com/repos/arslanhashmi/SQA_testing","forks_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/forks","keys_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/teams","hooks_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/hooks","issue_events_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues/events{/number}","events_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/events","assignees_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/assignees{/user}","branches_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/branches{/branch}","tags_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/tags","blobs_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/statuses/{sha}","languages_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/languages","stargazers_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/stargazers","contributors_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/contributors","subscribers_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/subscribers","subscription_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/subscription","commits_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/contents/{+path}","compare_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/merges","archive_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/downloads","issues_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues{/number}","pulls_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls{/number}","milestones_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/milestones{/number}","notifications_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/labels{/name}","releases_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/releases{/id}","deployments_url":"https://api.github.com/repos/arslanhashmi/SQA_testing/deployments","created_at":"2017-12-23T21:28:05Z","updated_at":"2018-02-02T09:59:40Z","pushed_at":"2018-02-05T06:08:01Z","git_url":"git://github.com/arslanhashmi/SQA_testing.git","ssh_url":"git@github.com:arslanhashmi/SQA_testing.git","clone_url":"https://github.com/arslanhashmi/SQA_testing.git","svn_url":"https://github.com/arslanhashmi/SQA_testing","homepage":null,"size":2771,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/3"},"html":{"href":"https://github.com/arslanhashmi/SQA_testing/pull/3"},"issue":{"href":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues/3"},"comments":{"href":"https://api.github.com/repos/arslanhashmi/SQA_testing/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arslanhashmi/SQA_testing/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/arslanhashmi/SQA_testing/statuses/4f28acebbb20d5d712555310610c1540ee869d12"}},"author_association":"OWNER"}}
{"actor":{"display_login":"msaqibqc"}}