{"action":"created","comment":{"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments/178266600","pull_request_review_id":108293763,"id":178266600,"diff_hunk":"@@ -0,0 +1,67 @@\n+#!/usr/bin/env python3\n+\n+import math\n+\n+\n+def distance(x1, y1, x2, y2):\n+    return math.sqrt(math.pow(float(x2) - float(x1), 2) +\n+                     math.pow(float(y2) - float(y1), 2))\n+\n+\n+def test_TypeError_with_None():","path":"students/slawinski_amadeusz/lesson_04_unit_testing/test_distance.py","position":11,"original_position":11,"commit_id":"71bba46f0046f01332720f259db8764389b8c979","original_commit_id":"71bba46f0046f01332720f259db8764389b8c979","user":{"login":"kadilak83","id":32517941,"avatar_url":"https://avatars2.githubusercontent.com/u/32517941?v=4","gravatar_id":"","url":"https://api.github.com/users/kadilak83","html_url":"https://github.com/kadilak83","followers_url":"https://api.github.com/users/kadilak83/followers","following_url":"https://api.github.com/users/kadilak83/following{/other_user}","gists_url":"https://api.github.com/users/kadilak83/gists{/gist_id}","starred_url":"https://api.github.com/users/kadilak83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadilak83/subscriptions","organizations_url":"https://api.github.com/users/kadilak83/orgs","repos_url":"https://api.github.com/users/kadilak83/repos","events_url":"https://api.github.com/users/kadilak83/events{/privacy}","received_events_url":"https://api.github.com/users/kadilak83/received_events","type":"User","site_admin":false},"body":"użyj pytes: `import pytest`, dzieki czemu sprowadzi się to do:\r\n `....with pytest.raises(TypeError):`\r\n`..........distance(None,0, 0, 0)`\r\nPo za tym, gdy wywołasz `distance(None)` dostaniesz TypeaError nie dlatego, że użyłeś `None` tylko dlatego, ponieważ podałeś jeden argument zamiast 3 (`distance(3)` tez zwróci `TyoeError`)","created_at":"2018-03-30T09:57:50Z","updated_at":"2018-03-30T10:03:34Z","html_url":"https://github.com/jedzej/tietopythontraining-basic/pull/324#discussion_r178266600","pull_request_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/324","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments/178266600"},"html":{"href":"https://github.com/jedzej/tietopythontraining-basic/pull/324#discussion_r178266600"},"pull_request":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/324"}}},"pull_request":{"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/324","id":177559059,"html_url":"https://github.com/jedzej/tietopythontraining-basic/pull/324","diff_url":"https://github.com/jedzej/tietopythontraining-basic/pull/324.diff","patch_url":"https://github.com/jedzej/tietopythontraining-basic/pull/324.patch","issue_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/324","number":324,"state":"open","locked":false,"title":"complete lesson 4 tasks","user":{"login":"amade","id":292432,"avatar_url":"https://avatars1.githubusercontent.com/u/292432?v=4","gravatar_id":"","url":"https://api.github.com/users/amade","html_url":"https://github.com/amade","followers_url":"https://api.github.com/users/amade/followers","following_url":"https://api.github.com/users/amade/following{/other_user}","gists_url":"https://api.github.com/users/amade/gists{/gist_id}","starred_url":"https://api.github.com/users/amade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amade/subscriptions","organizations_url":"https://api.github.com/users/amade/orgs","repos_url":"https://api.github.com/users/amade/repos","events_url":"https://api.github.com/users/amade/events{/privacy}","received_events_url":"https://api.github.com/users/amade/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-26T20:30:13Z","updated_at":"2018-03-30T10:03:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4e65fd6f8774b0f9bc258ec0d12bed6f8c83998","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":848813585,"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/labels/kadilak83","name":"kadilak83","color":"c5def5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/324/commits","review_comments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/324/comments","review_comment_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/324/comments","statuses_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/statuses/71bba46f0046f01332720f259db8764389b8c979","head":{"label":"amade:kadilak83/lesson_04_unit_testing","ref":"kadilak83/lesson_04_unit_testing","sha":"71bba46f0046f01332720f259db8764389b8c979","user":{"login":"amade","id":292432,"avatar_url":"https://avatars1.githubusercontent.com/u/292432?v=4","gravatar_id":"","url":"https://api.github.com/users/amade","html_url":"https://github.com/amade","followers_url":"https://api.github.com/users/amade/followers","following_url":"https://api.github.com/users/amade/following{/other_user}","gists_url":"https://api.github.com/users/amade/gists{/gist_id}","starred_url":"https://api.github.com/users/amade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amade/subscriptions","organizations_url":"https://api.github.com/users/amade/orgs","repos_url":"https://api.github.com/users/amade/repos","events_url":"https://api.github.com/users/amade/events{/privacy}","received_events_url":"https://api.github.com/users/amade/received_events","type":"User","site_admin":false},"repo":{"id":122111915,"name":"tietopythontraining-basic","full_name":"amade/tietopythontraining-basic","owner":{"login":"amade","id":292432,"avatar_url":"https://avatars1.githubusercontent.com/u/292432?v=4","gravatar_id":"","url":"https://api.github.com/users/amade","html_url":"https://github.com/amade","followers_url":"https://api.github.com/users/amade/followers","following_url":"https://api.github.com/users/amade/following{/other_user}","gists_url":"https://api.github.com/users/amade/gists{/gist_id}","starred_url":"https://api.github.com/users/amade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amade/subscriptions","organizations_url":"https://api.github.com/users/amade/orgs","repos_url":"https://api.github.com/users/amade/repos","events_url":"https://api.github.com/users/amade/events{/privacy}","received_events_url":"https://api.github.com/users/amade/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amade/tietopythontraining-basic","description":null,"fork":true,"url":"https://api.github.com/repos/amade/tietopythontraining-basic","forks_url":"https://api.github.com/repos/amade/tietopythontraining-basic/forks","keys_url":"https://api.github.com/repos/amade/tietopythontraining-basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amade/tietopythontraining-basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amade/tietopythontraining-basic/teams","hooks_url":"https://api.github.com/repos/amade/tietopythontraining-basic/hooks","issue_events_url":"https://api.github.com/repos/amade/tietopythontraining-basic/issues/events{/number}","events_url":"https://api.github.com/repos/amade/tietopythontraining-basic/events","assignees_url":"https://api.github.com/repos/amade/tietopythontraining-basic/assignees{/user}","branches_url":"https://api.github.com/repos/amade/tietopythontraining-basic/branches{/branch}","tags_url":"https://api.github.com/repos/amade/tietopythontraining-basic/tags","blobs_url":"https://api.github.com/repos/amade/tietopythontraining-basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amade/tietopythontraining-basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amade/tietopythontraining-basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/amade/tietopythontraining-basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amade/tietopythontraining-basic/statuses/{sha}","languages_url":"https://api.github.com/repos/amade/tietopythontraining-basic/languages","stargazers_url":"https://api.github.com/repos/amade/tietopythontraining-basic/stargazers","contributors_url":"https://api.github.com/repos/amade/tietopythontraining-basic/contributors","subscribers_url":"https://api.github.com/repos/amade/tietopythontraining-basic/subscribers","subscription_url":"https://api.github.com/repos/amade/tietopythontraining-basic/subscription","commits_url":"https://api.github.com/repos/amade/tietopythontraining-basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/amade/tietopythontraining-basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/amade/tietopythontraining-basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/amade/tietopythontraining-basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/amade/tietopythontraining-basic/contents/{+path}","compare_url":"https://api.github.com/repos/amade/tietopythontraining-basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amade/tietopythontraining-basic/merges","archive_url":"https://api.github.com/repos/amade/tietopythontraining-basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amade/tietopythontraining-basic/downloads","issues_url":"https://api.github.com/repos/amade/tietopythontraining-basic/issues{/number}","pulls_url":"https://api.github.com/repos/amade/tietopythontraining-basic/pulls{/number}","milestones_url":"https://api.github.com/repos/amade/tietopythontraining-basic/milestones{/number}","notifications_url":"https://api.github.com/repos/amade/tietopythontraining-basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amade/tietopythontraining-basic/labels{/name}","releases_url":"https://api.github.com/repos/amade/tietopythontraining-basic/releases{/id}","deployments_url":"https://api.github.com/repos/amade/tietopythontraining-basic/deployments","created_at":"2018-02-19T19:44:35Z","updated_at":"2018-03-18T12:05:19Z","pushed_at":"2018-03-26T20:33:02Z","git_url":"git://github.com/amade/tietopythontraining-basic.git","ssh_url":"git@github.com:amade/tietopythontraining-basic.git","clone_url":"https://github.com/amade/tietopythontraining-basic.git","svn_url":"https://github.com/amade/tietopythontraining-basic","homepage":null,"size":9639,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jedzej:master","ref":"master","sha":"2e87abc382a4ed7e97ba92f42b006be9d3266cc7","user":{"login":"jedzej","id":57070,"avatar_url":"https://avatars0.githubusercontent.com/u/57070?v=4","gravatar_id":"","url":"https://api.github.com/users/jedzej","html_url":"https://github.com/jedzej","followers_url":"https://api.github.com/users/jedzej/followers","following_url":"https://api.github.com/users/jedzej/following{/other_user}","gists_url":"https://api.github.com/users/jedzej/gists{/gist_id}","starred_url":"https://api.github.com/users/jedzej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedzej/subscriptions","organizations_url":"https://api.github.com/users/jedzej/orgs","repos_url":"https://api.github.com/users/jedzej/repos","events_url":"https://api.github.com/users/jedzej/events{/privacy}","received_events_url":"https://api.github.com/users/jedzej/received_events","type":"User","site_admin":false},"repo":{"id":118122178,"name":"tietopythontraining-basic","full_name":"jedzej/tietopythontraining-basic","owner":{"login":"jedzej","id":57070,"avatar_url":"https://avatars0.githubusercontent.com/u/57070?v=4","gravatar_id":"","url":"https://api.github.com/users/jedzej","html_url":"https://github.com/jedzej","followers_url":"https://api.github.com/users/jedzej/followers","following_url":"https://api.github.com/users/jedzej/following{/other_user}","gists_url":"https://api.github.com/users/jedzej/gists{/gist_id}","starred_url":"https://api.github.com/users/jedzej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedzej/subscriptions","organizations_url":"https://api.github.com/users/jedzej/orgs","repos_url":"https://api.github.com/users/jedzej/repos","events_url":"https://api.github.com/users/jedzej/events{/privacy}","received_events_url":"https://api.github.com/users/jedzej/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jedzej/tietopythontraining-basic","description":null,"fork":false,"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic","forks_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/forks","keys_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/teams","hooks_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/hooks","issue_events_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/events{/number}","events_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/events","assignees_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/assignees{/user}","branches_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/branches{/branch}","tags_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/tags","blobs_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/statuses/{sha}","languages_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/languages","stargazers_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/stargazers","contributors_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/contributors","subscribers_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/subscribers","subscription_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/subscription","commits_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/contents/{+path}","compare_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/merges","archive_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/downloads","issues_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues{/number}","pulls_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls{/number}","milestones_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/milestones{/number}","notifications_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/labels{/name}","releases_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/releases{/id}","deployments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/deployments","created_at":"2018-01-19T12:23:02Z","updated_at":"2018-03-29T19:39:30Z","pushed_at":"2018-03-30T09:33:43Z","git_url":"git://github.com/jedzej/tietopythontraining-basic.git","ssh_url":"git@github.com:jedzej/tietopythontraining-basic.git","clone_url":"https://github.com/jedzej/tietopythontraining-basic.git","svn_url":"https://github.com/jedzej/tietopythontraining-basic","homepage":null,"size":9719,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":77,"mirror_url":null,"archived":false,"open_issues_count":58,"license":null,"forks":77,"open_issues":58,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/324"},"html":{"href":"https://github.com/jedzej/tietopythontraining-basic/pull/324"},"issue":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/324"},"comments":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/324/comments"},"review_comments":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/324/comments"},"review_comment":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/324/commits"},"statuses":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/statuses/71bba46f0046f01332720f259db8764389b8c979"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kadilak83"}}