{"action":"created","comment":{"url":"https://api.github.com/repos/tolstoyevsky/gits/pulls/comments/99915568","pull_request_review_id":20606184,"id":99915568,"diff_hunk":"@@ -323,20 +323,42 @@ def test_cap_dch(self):\n         want = s[:term._cur_x] + s[term._cur_x + 1:]\n         self._check_string(want, (0, 0), (len(want), 0))\n \n-    @unittest.skip('skip')\n-    def test_cap_dl1(self):\n-        \"\"\"The terminal should have the possibility to delete a line. \"\"\"\n+    def test_cap_dl(self):\n+        \"\"\"The terminal should have the possibility to delete ``n`` number of\n+        lines.\n+        \"\"\"\n         term = self._terminal\n-\n-        # The y position of the cursor is on the first line.\n-        self._check_cap_dl1(['s'] * term._right_most, (0, 1))\n-\n-        # The y position of the cursor is on the last line.\n-        self._check_cap_dl1(['s'] * term._right_most, (0, term._bottom_most))\n-\n-        # The y position of the cursor is on an arbitrary line.\n-        rand_y = random.randint(1, term._bottom_most - 1)\n-        self._check_cap_dl1(['s'] * term._right_most, (0, rand_y))\n+        self._check_cap_dl(0, [\n+            (['f'] * term._right_most, (0, 0)),\n+        ])","path":"gits/test/capabilities_test.py","position":24,"original_position":24,"commit_id":"6a197c0216ecf4b3550b871bd866078a6bcee55a","original_commit_id":"6a197c0216ecf4b3550b871bd866078a6bcee55a","user":{"login":"eugulixes","id":5358223,"avatar_url":"https://avatars.githubusercontent.com/u/5358223?v=3","gravatar_id":"","url":"https://api.github.com/users/eugulixes","html_url":"https://github.com/eugulixes","followers_url":"https://api.github.com/users/eugulixes/followers","following_url":"https://api.github.com/users/eugulixes/following{/other_user}","gists_url":"https://api.github.com/users/eugulixes/gists{/gist_id}","starred_url":"https://api.github.com/users/eugulixes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugulixes/subscriptions","organizations_url":"https://api.github.com/users/eugulixes/orgs","repos_url":"https://api.github.com/users/eugulixes/repos","events_url":"https://api.github.com/users/eugulixes/events{/privacy}","received_events_url":"https://api.github.com/users/eugulixes/received_events","type":"User","site_admin":false},"body":"keep the code on one line\r\n\r\n`self._check_cap_dl(0, [(['f'] * term._right_most, (0, 0))])`","created_at":"2017-02-07T20:03:47Z","updated_at":"2017-02-07T20:06:20Z","html_url":"https://github.com/tolstoyevsky/gits/pull/49#discussion_r99915568","pull_request_url":"https://api.github.com/repos/tolstoyevsky/gits/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/tolstoyevsky/gits/pulls/comments/99915568"},"html":{"href":"https://github.com/tolstoyevsky/gits/pull/49#discussion_r99915568"},"pull_request":{"href":"https://api.github.com/repos/tolstoyevsky/gits/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/tolstoyevsky/gits/pulls/49","id":102608778,"html_url":"https://github.com/tolstoyevsky/gits/pull/49","diff_url":"https://github.com/tolstoyevsky/gits/pull/49.diff","patch_url":"https://github.com/tolstoyevsky/gits/pull/49.patch","issue_url":"https://api.github.com/repos/tolstoyevsky/gits/issues/49","number":49,"state":"open","locked":false,"title":"Refine `dl` capability","user":{"login":"dshil","id":8618625,"avatar_url":"https://avatars.githubusercontent.com/u/8618625?v=3","gravatar_id":"","url":"https://api.github.com/users/dshil","html_url":"https://github.com/dshil","followers_url":"https://api.github.com/users/dshil/followers","following_url":"https://api.github.com/users/dshil/following{/other_user}","gists_url":"https://api.github.com/users/dshil/gists{/gist_id}","starred_url":"https://api.github.com/users/dshil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dshil/subscriptions","organizations_url":"https://api.github.com/users/dshil/orgs","repos_url":"https://api.github.com/users/dshil/repos","events_url":"https://api.github.com/users/dshil/events{/privacy}","received_events_url":"https://api.github.com/users/dshil/received_events","type":"User","site_admin":false},"body":"The previous implementation of the `dl` capability just scrolls up\r\nthe screen and doesn't really delete a corresponding line.\r\n\r\n* Rework the test for the `_cap_dl` method.\r\n* Rework the test for the `_cap_dl1` method.","created_at":"2017-01-22T05:47:17Z","updated_at":"2017-02-07T20:06:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ede8919e4e96bcaf4f1fde6c0544a75d0e52fdd7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tolstoyevsky/gits/pulls/49/commits","review_comments_url":"https://api.github.com/repos/tolstoyevsky/gits/pulls/49/comments","review_comment_url":"https://api.github.com/repos/tolstoyevsky/gits/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tolstoyevsky/gits/issues/49/comments","statuses_url":"https://api.github.com/repos/tolstoyevsky/gits/statuses/6a197c0216ecf4b3550b871bd866078a6bcee55a","head":{"label":"tolstoyevsky:refine-cap_dl","ref":"refine-cap_dl","sha":"6a197c0216ecf4b3550b871bd866078a6bcee55a","user":{"login":"tolstoyevsky","id":5354708,"avatar_url":"https://avatars.githubusercontent.com/u/5354708?v=3","gravatar_id":"","url":"https://api.github.com/users/tolstoyevsky","html_url":"https://github.com/tolstoyevsky","followers_url":"https://api.github.com/users/tolstoyevsky/followers","following_url":"https://api.github.com/users/tolstoyevsky/following{/other_user}","gists_url":"https://api.github.com/users/tolstoyevsky/gists{/gist_id}","starred_url":"https://api.github.com/users/tolstoyevsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolstoyevsky/subscriptions","organizations_url":"https://api.github.com/users/tolstoyevsky/orgs","repos_url":"https://api.github.com/users/tolstoyevsky/repos","events_url":"https://api.github.com/users/tolstoyevsky/events{/privacy}","received_events_url":"https://api.github.com/users/tolstoyevsky/received_events","type":"Organization","site_admin":false},"repo":{"id":77752799,"name":"gits","full_name":"tolstoyevsky/gits","owner":{"login":"tolstoyevsky","id":5354708,"avatar_url":"https://avatars.githubusercontent.com/u/5354708?v=3","gravatar_id":"","url":"https://api.github.com/users/tolstoyevsky","html_url":"https://github.com/tolstoyevsky","followers_url":"https://api.github.com/users/tolstoyevsky/followers","following_url":"https://api.github.com/users/tolstoyevsky/following{/other_user}","gists_url":"https://api.github.com/users/tolstoyevsky/gists{/gist_id}","starred_url":"https://api.github.com/users/tolstoyevsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolstoyevsky/subscriptions","organizations_url":"https://api.github.com/users/tolstoyevsky/orgs","repos_url":"https://api.github.com/users/tolstoyevsky/repos","events_url":"https://api.github.com/users/tolstoyevsky/events{/privacy}","received_events_url":"https://api.github.com/users/tolstoyevsky/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tolstoyevsky/gits","description":"Web-based terminal emulator","fork":false,"url":"https://api.github.com/repos/tolstoyevsky/gits","forks_url":"https://api.github.com/repos/tolstoyevsky/gits/forks","keys_url":"https://api.github.com/repos/tolstoyevsky/gits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tolstoyevsky/gits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tolstoyevsky/gits/teams","hooks_url":"https://api.github.com/repos/tolstoyevsky/gits/hooks","issue_events_url":"https://api.github.com/repos/tolstoyevsky/gits/issues/events{/number}","events_url":"https://api.github.com/repos/tolstoyevsky/gits/events","assignees_url":"https://api.github.com/repos/tolstoyevsky/gits/assignees{/user}","branches_url":"https://api.github.com/repos/tolstoyevsky/gits/branches{/branch}","tags_url":"https://api.github.com/repos/tolstoyevsky/gits/tags","blobs_url":"https://api.github.com/repos/tolstoyevsky/gits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tolstoyevsky/gits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tolstoyevsky/gits/git/refs{/sha}","trees_url":"https://api.github.com/repos/tolstoyevsky/gits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tolstoyevsky/gits/statuses/{sha}","languages_url":"https://api.github.com/repos/tolstoyevsky/gits/languages","stargazers_url":"https://api.github.com/repos/tolstoyevsky/gits/stargazers","contributors_url":"https://api.github.com/repos/tolstoyevsky/gits/contributors","subscribers_url":"https://api.github.com/repos/tolstoyevsky/gits/subscribers","subscription_url":"https://api.github.com/repos/tolstoyevsky/gits/subscription","commits_url":"https://api.github.com/repos/tolstoyevsky/gits/commits{/sha}","git_commits_url":"https://api.github.com/repos/tolstoyevsky/gits/git/commits{/sha}","comments_url":"https://api.github.com/repos/tolstoyevsky/gits/comments{/number}","issue_comment_url":"https://api.github.com/repos/tolstoyevsky/gits/issues/comments{/number}","contents_url":"https://api.github.com/repos/tolstoyevsky/gits/contents/{+path}","compare_url":"https://api.github.com/repos/tolstoyevsky/gits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tolstoyevsky/gits/merges","archive_url":"https://api.github.com/repos/tolstoyevsky/gits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tolstoyevsky/gits/downloads","issues_url":"https://api.github.com/repos/tolstoyevsky/gits/issues{/number}","pulls_url":"https://api.github.com/repos/tolstoyevsky/gits/pulls{/number}","milestones_url":"https://api.github.com/repos/tolstoyevsky/gits/milestones{/number}","notifications_url":"https://api.github.com/repos/tolstoyevsky/gits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tolstoyevsky/gits/labels{/name}","releases_url":"https://api.github.com/repos/tolstoyevsky/gits/releases{/id}","deployments_url":"https://api.github.com/repos/tolstoyevsky/gits/deployments","created_at":"2016-12-31T19:06:09Z","updated_at":"2017-01-22T15:40:23Z","pushed_at":"2017-02-05T07:05:12Z","git_url":"git://github.com/tolstoyevsky/gits.git","ssh_url":"git@github.com:tolstoyevsky/gits.git","clone_url":"https://github.com/tolstoyevsky/gits.git","svn_url":"https://github.com/tolstoyevsky/gits","homepage":"","size":419,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":1,"default_branch":"master"}},"base":{"label":"tolstoyevsky:master","ref":"master","sha":"22c3986519c5f2acb1c393d2ac850f876e837b1c","user":{"login":"tolstoyevsky","id":5354708,"avatar_url":"https://avatars.githubusercontent.com/u/5354708?v=3","gravatar_id":"","url":"https://api.github.com/users/tolstoyevsky","html_url":"https://github.com/tolstoyevsky","followers_url":"https://api.github.com/users/tolstoyevsky/followers","following_url":"https://api.github.com/users/tolstoyevsky/following{/other_user}","gists_url":"https://api.github.com/users/tolstoyevsky/gists{/gist_id}","starred_url":"https://api.github.com/users/tolstoyevsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolstoyevsky/subscriptions","organizations_url":"https://api.github.com/users/tolstoyevsky/orgs","repos_url":"https://api.github.com/users/tolstoyevsky/repos","events_url":"https://api.github.com/users/tolstoyevsky/events{/privacy}","received_events_url":"https://api.github.com/users/tolstoyevsky/received_events","type":"Organization","site_admin":false},"repo":{"id":77752799,"name":"gits","full_name":"tolstoyevsky/gits","owner":{"login":"tolstoyevsky","id":5354708,"avatar_url":"https://avatars.githubusercontent.com/u/5354708?v=3","gravatar_id":"","url":"https://api.github.com/users/tolstoyevsky","html_url":"https://github.com/tolstoyevsky","followers_url":"https://api.github.com/users/tolstoyevsky/followers","following_url":"https://api.github.com/users/tolstoyevsky/following{/other_user}","gists_url":"https://api.github.com/users/tolstoyevsky/gists{/gist_id}","starred_url":"https://api.github.com/users/tolstoyevsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolstoyevsky/subscriptions","organizations_url":"https://api.github.com/users/tolstoyevsky/orgs","repos_url":"https://api.github.com/users/tolstoyevsky/repos","events_url":"https://api.github.com/users/tolstoyevsky/events{/privacy}","received_events_url":"https://api.github.com/users/tolstoyevsky/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tolstoyevsky/gits","description":"Web-based terminal emulator","fork":false,"url":"https://api.github.com/repos/tolstoyevsky/gits","forks_url":"https://api.github.com/repos/tolstoyevsky/gits/forks","keys_url":"https://api.github.com/repos/tolstoyevsky/gits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tolstoyevsky/gits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tolstoyevsky/gits/teams","hooks_url":"https://api.github.com/repos/tolstoyevsky/gits/hooks","issue_events_url":"https://api.github.com/repos/tolstoyevsky/gits/issues/events{/number}","events_url":"https://api.github.com/repos/tolstoyevsky/gits/events","assignees_url":"https://api.github.com/repos/tolstoyevsky/gits/assignees{/user}","branches_url":"https://api.github.com/repos/tolstoyevsky/gits/branches{/branch}","tags_url":"https://api.github.com/repos/tolstoyevsky/gits/tags","blobs_url":"https://api.github.com/repos/tolstoyevsky/gits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tolstoyevsky/gits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tolstoyevsky/gits/git/refs{/sha}","trees_url":"https://api.github.com/repos/tolstoyevsky/gits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tolstoyevsky/gits/statuses/{sha}","languages_url":"https://api.github.com/repos/tolstoyevsky/gits/languages","stargazers_url":"https://api.github.com/repos/tolstoyevsky/gits/stargazers","contributors_url":"https://api.github.com/repos/tolstoyevsky/gits/contributors","subscribers_url":"https://api.github.com/repos/tolstoyevsky/gits/subscribers","subscription_url":"https://api.github.com/repos/tolstoyevsky/gits/subscription","commits_url":"https://api.github.com/repos/tolstoyevsky/gits/commits{/sha}","git_commits_url":"https://api.github.com/repos/tolstoyevsky/gits/git/commits{/sha}","comments_url":"https://api.github.com/repos/tolstoyevsky/gits/comments{/number}","issue_comment_url":"https://api.github.com/repos/tolstoyevsky/gits/issues/comments{/number}","contents_url":"https://api.github.com/repos/tolstoyevsky/gits/contents/{+path}","compare_url":"https://api.github.com/repos/tolstoyevsky/gits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tolstoyevsky/gits/merges","archive_url":"https://api.github.com/repos/tolstoyevsky/gits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tolstoyevsky/gits/downloads","issues_url":"https://api.github.com/repos/tolstoyevsky/gits/issues{/number}","pulls_url":"https://api.github.com/repos/tolstoyevsky/gits/pulls{/number}","milestones_url":"https://api.github.com/repos/tolstoyevsky/gits/milestones{/number}","notifications_url":"https://api.github.com/repos/tolstoyevsky/gits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tolstoyevsky/gits/labels{/name}","releases_url":"https://api.github.com/repos/tolstoyevsky/gits/releases{/id}","deployments_url":"https://api.github.com/repos/tolstoyevsky/gits/deployments","created_at":"2016-12-31T19:06:09Z","updated_at":"2017-01-22T15:40:23Z","pushed_at":"2017-02-05T07:05:12Z","git_url":"git://github.com/tolstoyevsky/gits.git","ssh_url":"git@github.com:tolstoyevsky/gits.git","clone_url":"https://github.com/tolstoyevsky/gits.git","svn_url":"https://github.com/tolstoyevsky/gits","homepage":"","size":419,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tolstoyevsky/gits/pulls/49"},"html":{"href":"https://github.com/tolstoyevsky/gits/pull/49"},"issue":{"href":"https://api.github.com/repos/tolstoyevsky/gits/issues/49"},"comments":{"href":"https://api.github.com/repos/tolstoyevsky/gits/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/tolstoyevsky/gits/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/tolstoyevsky/gits/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tolstoyevsky/gits/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/tolstoyevsky/gits/statuses/6a197c0216ecf4b3550b871bd866078a6bcee55a"}}}}
{"actor":{"display_login":"eugulixes"}}