{"action":"created","comment":{"url":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/comments/206910991","pull_request_review_id":142415796,"id":206910991,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjkxMDk5MQ==","diff_hunk":"@@ -47,3 +47,23 @@ def test_invalid_parameters(self, data_dir):\n             assert str(err) == \\\n                    \"There are no tables specified in the configuration.\"\n             pass\n+\n+    def test_missing_authorization(self, data_dir):\n+        os.environ['KBC_DATADIR'] = data_dir + \"missing_authorization/\"\n+        application = app.App()\n+        try:\n+            application.run()\n+            pytest.fail(\"Must raise exception.\")\n+        except exceptions.UserException as err:\n+            assert str(err) == \"Authorization missing.\"\n+            pass\n+\n+    def test_missing_authorization(self, data_dir):","path":"test/test_app_errors.py","position":15,"original_position":15,"commit_id":"7b25a1fabf34faf50268bbb05794e296d6be1470","original_commit_id":"7b25a1fabf34faf50268bbb05794e296d6be1470","user":{"login":"Actimel","id":4041679,"node_id":"MDQ6VXNlcjQwNDE2Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/4041679?v=4","gravatar_id":"","url":"https://api.github.com/users/Actimel","html_url":"https://github.com/Actimel","followers_url":"https://api.github.com/users/Actimel/followers","following_url":"https://api.github.com/users/Actimel/following{/other_user}","gists_url":"https://api.github.com/users/Actimel/gists{/gist_id}","starred_url":"https://api.github.com/users/Actimel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Actimel/subscriptions","organizations_url":"https://api.github.com/users/Actimel/orgs","repos_url":"https://api.github.com/users/Actimel/repos","events_url":"https://api.github.com/users/Actimel/events{/privacy}","received_events_url":"https://api.github.com/users/Actimel/received_events","type":"User","site_admin":false},"body":"Duplicitni nazev metody","created_at":"2018-08-01T14:50:37Z","updated_at":"2018-08-01T14:53:46Z","html_url":"https://github.com/keboola/google-bigquery-writer/pull/20#discussion_r206910991","pull_request_url":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/20","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/comments/206910991"},"html":{"href":"https://github.com/keboola/google-bigquery-writer/pull/20#discussion_r206910991"},"pull_request":{"href":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/20","id":205441199,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NDQxMTk5","html_url":"https://github.com/keboola/google-bigquery-writer/pull/20","diff_url":"https://github.com/keboola/google-bigquery-writer/pull/20.diff","patch_url":"https://github.com/keboola/google-bigquery-writer/pull/20.patch","issue_url":"https://api.github.com/repos/keboola/google-bigquery-writer/issues/20","number":20,"state":"open","locked":false,"title":"fix: authorization exceptions","user":{"login":"ondrejhlavacek","id":497675,"node_id":"MDQ6VXNlcjQ5NzY3NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/497675?v=4","gravatar_id":"","url":"https://api.github.com/users/ondrejhlavacek","html_url":"https://github.com/ondrejhlavacek","followers_url":"https://api.github.com/users/ondrejhlavacek/followers","following_url":"https://api.github.com/users/ondrejhlavacek/following{/other_user}","gists_url":"https://api.github.com/users/ondrejhlavacek/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrejhlavacek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrejhlavacek/subscriptions","organizations_url":"https://api.github.com/users/ondrejhlavacek/orgs","repos_url":"https://api.github.com/users/ondrejhlavacek/repos","events_url":"https://api.github.com/users/ondrejhlavacek/events{/privacy}","received_events_url":"https://api.github.com/users/ondrejhlavacek/received_events","type":"User","site_admin":false},"body":"FIXES #19 \r\n\r\n- testuje a zachytává se chybějící autorizace\r\n- doubetestuje se špatná autorizace na provni celý appky (možná zbytečný?)","created_at":"2018-08-01T14:18:39Z","updated_at":"2018-08-01T14:53:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c14c2f2dfb18a6c251749254fed9da82b7ca8ea","assignee":{"login":"ondrejhlavacek","id":497675,"node_id":"MDQ6VXNlcjQ5NzY3NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/497675?v=4","gravatar_id":"","url":"https://api.github.com/users/ondrejhlavacek","html_url":"https://github.com/ondrejhlavacek","followers_url":"https://api.github.com/users/ondrejhlavacek/followers","following_url":"https://api.github.com/users/ondrejhlavacek/following{/other_user}","gists_url":"https://api.github.com/users/ondrejhlavacek/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrejhlavacek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrejhlavacek/subscriptions","organizations_url":"https://api.github.com/users/ondrejhlavacek/orgs","repos_url":"https://api.github.com/users/ondrejhlavacek/repos","events_url":"https://api.github.com/users/ondrejhlavacek/events{/privacy}","received_events_url":"https://api.github.com/users/ondrejhlavacek/received_events","type":"User","site_admin":false},"assignees":[{"login":"ondrejhlavacek","id":497675,"node_id":"MDQ6VXNlcjQ5NzY3NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/497675?v=4","gravatar_id":"","url":"https://api.github.com/users/ondrejhlavacek","html_url":"https://github.com/ondrejhlavacek","followers_url":"https://api.github.com/users/ondrejhlavacek/followers","following_url":"https://api.github.com/users/ondrejhlavacek/following{/other_user}","gists_url":"https://api.github.com/users/ondrejhlavacek/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrejhlavacek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrejhlavacek/subscriptions","organizations_url":"https://api.github.com/users/ondrejhlavacek/orgs","repos_url":"https://api.github.com/users/ondrejhlavacek/repos","events_url":"https://api.github.com/users/ondrejhlavacek/events{/privacy}","received_events_url":"https://api.github.com/users/ondrejhlavacek/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/20/commits","review_comments_url":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/20/comments","review_comment_url":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keboola/google-bigquery-writer/issues/20/comments","statuses_url":"https://api.github.com/repos/keboola/google-bigquery-writer/statuses/7b25a1fabf34faf50268bbb05794e296d6be1470","head":{"label":"keboola:najlos-invalid-project","ref":"najlos-invalid-project","sha":"7b25a1fabf34faf50268bbb05794e296d6be1470","user":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":81233523,"node_id":"MDEwOlJlcG9zaXRvcnk4MTIzMzUyMw==","name":"google-bigquery-writer","full_name":"keboola/google-bigquery-writer","owner":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keboola/google-bigquery-writer","description":null,"fork":false,"url":"https://api.github.com/repos/keboola/google-bigquery-writer","forks_url":"https://api.github.com/repos/keboola/google-bigquery-writer/forks","keys_url":"https://api.github.com/repos/keboola/google-bigquery-writer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/google-bigquery-writer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/google-bigquery-writer/teams","hooks_url":"https://api.github.com/repos/keboola/google-bigquery-writer/hooks","issue_events_url":"https://api.github.com/repos/keboola/google-bigquery-writer/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/google-bigquery-writer/events","assignees_url":"https://api.github.com/repos/keboola/google-bigquery-writer/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/google-bigquery-writer/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/google-bigquery-writer/tags","blobs_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/google-bigquery-writer/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/google-bigquery-writer/languages","stargazers_url":"https://api.github.com/repos/keboola/google-bigquery-writer/stargazers","contributors_url":"https://api.github.com/repos/keboola/google-bigquery-writer/contributors","subscribers_url":"https://api.github.com/repos/keboola/google-bigquery-writer/subscribers","subscription_url":"https://api.github.com/repos/keboola/google-bigquery-writer/subscription","commits_url":"https://api.github.com/repos/keboola/google-bigquery-writer/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/google-bigquery-writer/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/google-bigquery-writer/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/google-bigquery-writer/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/google-bigquery-writer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/google-bigquery-writer/merges","archive_url":"https://api.github.com/repos/keboola/google-bigquery-writer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/google-bigquery-writer/downloads","issues_url":"https://api.github.com/repos/keboola/google-bigquery-writer/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/google-bigquery-writer/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/google-bigquery-writer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/google-bigquery-writer/labels{/name}","releases_url":"https://api.github.com/repos/keboola/google-bigquery-writer/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/google-bigquery-writer/deployments","created_at":"2017-02-07T17:14:04Z","updated_at":"2018-08-01T11:20:11Z","pushed_at":"2018-08-01T14:18:40Z","git_url":"git://github.com/keboola/google-bigquery-writer.git","ssh_url":"git@github.com:keboola/google-bigquery-writer.git","clone_url":"https://github.com/keboola/google-bigquery-writer.git","svn_url":"https://github.com/keboola/google-bigquery-writer","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"keboola:master","ref":"master","sha":"64360c32ecf50a01bb84c1ec07662fc5e9869597","user":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":81233523,"node_id":"MDEwOlJlcG9zaXRvcnk4MTIzMzUyMw==","name":"google-bigquery-writer","full_name":"keboola/google-bigquery-writer","owner":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keboola/google-bigquery-writer","description":null,"fork":false,"url":"https://api.github.com/repos/keboola/google-bigquery-writer","forks_url":"https://api.github.com/repos/keboola/google-bigquery-writer/forks","keys_url":"https://api.github.com/repos/keboola/google-bigquery-writer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/google-bigquery-writer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/google-bigquery-writer/teams","hooks_url":"https://api.github.com/repos/keboola/google-bigquery-writer/hooks","issue_events_url":"https://api.github.com/repos/keboola/google-bigquery-writer/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/google-bigquery-writer/events","assignees_url":"https://api.github.com/repos/keboola/google-bigquery-writer/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/google-bigquery-writer/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/google-bigquery-writer/tags","blobs_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/google-bigquery-writer/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/google-bigquery-writer/languages","stargazers_url":"https://api.github.com/repos/keboola/google-bigquery-writer/stargazers","contributors_url":"https://api.github.com/repos/keboola/google-bigquery-writer/contributors","subscribers_url":"https://api.github.com/repos/keboola/google-bigquery-writer/subscribers","subscription_url":"https://api.github.com/repos/keboola/google-bigquery-writer/subscription","commits_url":"https://api.github.com/repos/keboola/google-bigquery-writer/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/google-bigquery-writer/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/google-bigquery-writer/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/google-bigquery-writer/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/google-bigquery-writer/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/google-bigquery-writer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/google-bigquery-writer/merges","archive_url":"https://api.github.com/repos/keboola/google-bigquery-writer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/google-bigquery-writer/downloads","issues_url":"https://api.github.com/repos/keboola/google-bigquery-writer/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/google-bigquery-writer/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/google-bigquery-writer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/google-bigquery-writer/labels{/name}","releases_url":"https://api.github.com/repos/keboola/google-bigquery-writer/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/google-bigquery-writer/deployments","created_at":"2017-02-07T17:14:04Z","updated_at":"2018-08-01T11:20:11Z","pushed_at":"2018-08-01T14:18:40Z","git_url":"git://github.com/keboola/google-bigquery-writer.git","ssh_url":"git@github.com:keboola/google-bigquery-writer.git","clone_url":"https://github.com/keboola/google-bigquery-writer.git","svn_url":"https://github.com/keboola/google-bigquery-writer","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/20"},"html":{"href":"https://github.com/keboola/google-bigquery-writer/pull/20"},"issue":{"href":"https://api.github.com/repos/keboola/google-bigquery-writer/issues/20"},"comments":{"href":"https://api.github.com/repos/keboola/google-bigquery-writer/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keboola/google-bigquery-writer/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/keboola/google-bigquery-writer/statuses/7b25a1fabf34faf50268bbb05794e296d6be1470"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Actimel"}}