{"action":"created","comment":{"url":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/comments/84077820","pull_request_review_id":4877203,"id":84077820,"diff_hunk":"@@ -0,0 +1,197 @@\n+# -*- coding: utf-8 -*-\n+import unittest\n+\n+from openprocurement.edge.tests.base import test_tender_data, TenderBaseWebTest\n+import uuid\n+from openprocurement.edge.databridge import EdgeDataBridge\n+from mock import MagicMock, patch\n+\n+import datetime\n+import io\n+import logging\n+import errno\n+from socket import error\n+from requests.exceptions import ConnectionError, MissingSchema\n+from couchdb import ResourceNotFound\n+# from openprocurement_client.sync import get_tenders\n+\n+logger = logging.getLogger()\n+logger.level = logging.DEBUG\n+\n+\n+class TestEdgeDataBridge(TenderBaseWebTest):\n+    config = {\n+        'main': {\n+            'tenders_api_server': 'https://lb.api-sandbox.openprocurement.org',\n+            'tenders_api_version': \"0\",\n+            'public_tenders_api_server': 'https://lb.api-sandbox.openprocurement.org',\n+            'couch_url': 'http://localhost:5984',\n+            'public_db': 'public_db'\n+        },\n+        'version': 1\n+    }\n+\n+\n+    def test_init(self):\n+        bridge = EdgeDataBridge(self.config)\n+        # print bridge.db","path":"openprocurement/edge/tests/databridge.py","position":37,"original_position":37,"commit_id":"95fc67f8d37e948f06afbaeffc8e687fc305693b","original_commit_id":"95fc67f8d37e948f06afbaeffc8e687fc305693b","user":{"login":"Leits","id":12017826,"avatar_url":"https://avatars.githubusercontent.com/u/12017826?v=3","gravatar_id":"","url":"https://api.github.com/users/Leits","html_url":"https://github.com/Leits","followers_url":"https://api.github.com/users/Leits/followers","following_url":"https://api.github.com/users/Leits/following{/other_user}","gists_url":"https://api.github.com/users/Leits/gists{/gist_id}","starred_url":"https://api.github.com/users/Leits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leits/subscriptions","organizations_url":"https://api.github.com/users/Leits/orgs","repos_url":"https://api.github.com/users/Leits/repos","events_url":"https://api.github.com/users/Leits/events{/privacy}","received_events_url":"https://api.github.com/users/Leits/received_events","type":"User","site_admin":false},"body":"Забери усі зайві прінти.","created_at":"2016-10-19T14:07:01Z","updated_at":"2016-10-19T14:19:27Z","html_url":"https://github.com/openprocurement/openprocurement.edge/pull/1#discussion_r84077820","pull_request_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/comments/84077820"},"html":{"href":"https://github.com/openprocurement/openprocurement.edge/pull/1#discussion_r84077820"},"pull_request":{"href":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/1","id":89798401,"html_url":"https://github.com/openprocurement/openprocurement.edge/pull/1","diff_url":"https://github.com/openprocurement/openprocurement.edge/pull/1.diff","patch_url":"https://github.com/openprocurement/openprocurement.edge/pull/1.patch","issue_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/issues/1","number":1,"state":"open","locked":false,"title":"Add tests for databridge.py","user":{"login":"VDigitall","id":6977678,"avatar_url":"https://avatars.githubusercontent.com/u/6977678?v=3","gravatar_id":"","url":"https://api.github.com/users/VDigitall","html_url":"https://github.com/VDigitall","followers_url":"https://api.github.com/users/VDigitall/followers","following_url":"https://api.github.com/users/VDigitall/following{/other_user}","gists_url":"https://api.github.com/users/VDigitall/gists{/gist_id}","starred_url":"https://api.github.com/users/VDigitall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VDigitall/subscriptions","organizations_url":"https://api.github.com/users/VDigitall/orgs","repos_url":"https://api.github.com/users/VDigitall/repos","events_url":"https://api.github.com/users/VDigitall/events{/privacy}","received_events_url":"https://api.github.com/users/VDigitall/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-18T11:44:12Z","updated_at":"2016-10-19T14:19:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61f9c74f7a5468cbd06bf67241251368c433afd6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/1/commits","review_comments_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/1/comments","review_comment_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/issues/1/comments","statuses_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/statuses/95fc67f8d37e948f06afbaeffc8e687fc305693b","head":{"label":"VDigitall:a195861808477887_test_save_tender_in_db","ref":"a195861808477887_test_save_tender_in_db","sha":"95fc67f8d37e948f06afbaeffc8e687fc305693b","user":{"login":"VDigitall","id":6977678,"avatar_url":"https://avatars.githubusercontent.com/u/6977678?v=3","gravatar_id":"","url":"https://api.github.com/users/VDigitall","html_url":"https://github.com/VDigitall","followers_url":"https://api.github.com/users/VDigitall/followers","following_url":"https://api.github.com/users/VDigitall/following{/other_user}","gists_url":"https://api.github.com/users/VDigitall/gists{/gist_id}","starred_url":"https://api.github.com/users/VDigitall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VDigitall/subscriptions","organizations_url":"https://api.github.com/users/VDigitall/orgs","repos_url":"https://api.github.com/users/VDigitall/repos","events_url":"https://api.github.com/users/VDigitall/events{/privacy}","received_events_url":"https://api.github.com/users/VDigitall/received_events","type":"User","site_admin":false},"repo":{"id":71241640,"name":"openprocurement.edge","full_name":"VDigitall/openprocurement.edge","owner":{"login":"VDigitall","id":6977678,"avatar_url":"https://avatars.githubusercontent.com/u/6977678?v=3","gravatar_id":"","url":"https://api.github.com/users/VDigitall","html_url":"https://github.com/VDigitall","followers_url":"https://api.github.com/users/VDigitall/followers","following_url":"https://api.github.com/users/VDigitall/following{/other_user}","gists_url":"https://api.github.com/users/VDigitall/gists{/gist_id}","starred_url":"https://api.github.com/users/VDigitall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VDigitall/subscriptions","organizations_url":"https://api.github.com/users/VDigitall/orgs","repos_url":"https://api.github.com/users/VDigitall/repos","events_url":"https://api.github.com/users/VDigitall/events{/privacy}","received_events_url":"https://api.github.com/users/VDigitall/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VDigitall/openprocurement.edge","description":null,"fork":true,"url":"https://api.github.com/repos/VDigitall/openprocurement.edge","forks_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/forks","keys_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/teams","hooks_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/hooks","issue_events_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/issues/events{/number}","events_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/events","assignees_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/assignees{/user}","branches_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/branches{/branch}","tags_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/tags","blobs_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/git/refs{/sha}","trees_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/statuses/{sha}","languages_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/languages","stargazers_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/stargazers","contributors_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/contributors","subscribers_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/subscribers","subscription_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/subscription","commits_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/commits{/sha}","git_commits_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/git/commits{/sha}","comments_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/comments{/number}","issue_comment_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/issues/comments{/number}","contents_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/contents/{+path}","compare_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/merges","archive_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/downloads","issues_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/issues{/number}","pulls_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/pulls{/number}","milestones_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/milestones{/number}","notifications_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/labels{/name}","releases_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/releases{/id}","deployments_url":"https://api.github.com/repos/VDigitall/openprocurement.edge/deployments","created_at":"2016-10-18T11:34:32Z","updated_at":"2016-10-18T11:34:34Z","pushed_at":"2016-10-19T13:32:10Z","git_url":"git://github.com/VDigitall/openprocurement.edge.git","ssh_url":"git@github.com:VDigitall/openprocurement.edge.git","clone_url":"https://github.com/VDigitall/openprocurement.edge.git","svn_url":"https://github.com/VDigitall/openprocurement.edge","homepage":null,"size":65,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openprocurement:master","ref":"master","sha":"486d9f99b13bed9a5851119320be594c4aca5ec8","user":{"login":"openprocurement","id":8692431,"avatar_url":"https://avatars.githubusercontent.com/u/8692431?v=3","gravatar_id":"","url":"https://api.github.com/users/openprocurement","html_url":"https://github.com/openprocurement","followers_url":"https://api.github.com/users/openprocurement/followers","following_url":"https://api.github.com/users/openprocurement/following{/other_user}","gists_url":"https://api.github.com/users/openprocurement/gists{/gist_id}","starred_url":"https://api.github.com/users/openprocurement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openprocurement/subscriptions","organizations_url":"https://api.github.com/users/openprocurement/orgs","repos_url":"https://api.github.com/users/openprocurement/repos","events_url":"https://api.github.com/users/openprocurement/events{/privacy}","received_events_url":"https://api.github.com/users/openprocurement/received_events","type":"Organization","site_admin":false},"repo":{"id":70698758,"name":"openprocurement.edge","full_name":"openprocurement/openprocurement.edge","owner":{"login":"openprocurement","id":8692431,"avatar_url":"https://avatars.githubusercontent.com/u/8692431?v=3","gravatar_id":"","url":"https://api.github.com/users/openprocurement","html_url":"https://github.com/openprocurement","followers_url":"https://api.github.com/users/openprocurement/followers","following_url":"https://api.github.com/users/openprocurement/following{/other_user}","gists_url":"https://api.github.com/users/openprocurement/gists{/gist_id}","starred_url":"https://api.github.com/users/openprocurement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openprocurement/subscriptions","organizations_url":"https://api.github.com/users/openprocurement/orgs","repos_url":"https://api.github.com/users/openprocurement/repos","events_url":"https://api.github.com/users/openprocurement/events{/privacy}","received_events_url":"https://api.github.com/users/openprocurement/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openprocurement/openprocurement.edge","description":null,"fork":false,"url":"https://api.github.com/repos/openprocurement/openprocurement.edge","forks_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/forks","keys_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/teams","hooks_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/hooks","issue_events_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/issues/events{/number}","events_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/events","assignees_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/assignees{/user}","branches_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/branches{/branch}","tags_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/tags","blobs_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/git/refs{/sha}","trees_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/statuses/{sha}","languages_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/languages","stargazers_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/stargazers","contributors_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/contributors","subscribers_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/subscribers","subscription_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/subscription","commits_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/commits{/sha}","git_commits_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/git/commits{/sha}","comments_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/comments{/number}","issue_comment_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/issues/comments{/number}","contents_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/contents/{+path}","compare_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/merges","archive_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/downloads","issues_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/issues{/number}","pulls_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls{/number}","milestones_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/milestones{/number}","notifications_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/labels{/name}","releases_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/releases{/id}","deployments_url":"https://api.github.com/repos/openprocurement/openprocurement.edge/deployments","created_at":"2016-10-12T12:41:32Z","updated_at":"2016-10-13T02:43:29Z","pushed_at":"2016-10-19T13:32:11Z","git_url":"git://github.com/openprocurement/openprocurement.edge.git","ssh_url":"git@github.com:openprocurement/openprocurement.edge.git","clone_url":"https://github.com/openprocurement/openprocurement.edge.git","svn_url":"https://github.com/openprocurement/openprocurement.edge","homepage":null,"size":61,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/1"},"html":{"href":"https://github.com/openprocurement/openprocurement.edge/pull/1"},"issue":{"href":"https://api.github.com/repos/openprocurement/openprocurement.edge/issues/1"},"comments":{"href":"https://api.github.com/repos/openprocurement/openprocurement.edge/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openprocurement/openprocurement.edge/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/openprocurement/openprocurement.edge/statuses/95fc67f8d37e948f06afbaeffc8e687fc305693b"}}}}
{"actor":{"display_login":"Leits"}}