{"action":"created","comment":{"url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/comments/152051246","pull_request_review_id":77853633,"id":152051246,"diff_hunk":"@@ -795,3 +795,47 @@ def change_complete_asset(self):\n     # Move from 'complete' to one of blacklist status\n     for status in STATUS_BLACKLIST['complete']['Administrator']:\n         check_patch_status_403(self, '/{}'.format(asset['id']), status)\n+\n+\n+def patch_decimal_without_items(self):\n+    ''' Testing different decimal quantity ('decimal_numbers') at the root of assets.\n+    '''\n+    response = self.app.get('/')\n+    self.assertEqual(response.status, '200 OK')\n+    self.assertEqual(len(response.json['data']), 0)\n+    asset = self.create_resource()\n+    decimal_numbers = [1, '1', 1.111, '1.111', 1.1111, '1.1111']\n+    for quantity in decimal_numbers:\n+        asset['quantity'] = quantity\n+        response = self.app.patch_json('/{}'.format(asset['id']),","path":"openregistry/assets/core/tests/blanks/asset.py","position":16,"original_position":16,"commit_id":"1c03ca3e31a3b77ba45d9ac252a105be5acc3e66","original_commit_id":"1c03ca3e31a3b77ba45d9ac252a105be5acc3e66","user":{"login":"yarsanich","id":15478059,"avatar_url":"https://avatars1.githubusercontent.com/u/15478059?v=4","gravatar_id":"","url":"https://api.github.com/users/yarsanich","html_url":"https://github.com/yarsanich","followers_url":"https://api.github.com/users/yarsanich/followers","following_url":"https://api.github.com/users/yarsanich/following{/other_user}","gists_url":"https://api.github.com/users/yarsanich/gists{/gist_id}","starred_url":"https://api.github.com/users/yarsanich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarsanich/subscriptions","organizations_url":"https://api.github.com/users/yarsanich/orgs","repos_url":"https://api.github.com/users/yarsanich/repos","events_url":"https://api.github.com/users/yarsanich/events{/privacy}","received_events_url":"https://api.github.com/users/yarsanich/received_events","type":"User","site_admin":false},"body":"https://developer.mozilla.org/uk/docs/Web/HTTP/Methods/PATCH","created_at":"2017-11-20T17:03:21Z","updated_at":"2017-11-20T17:03:21Z","html_url":"https://github.com/openprocurement/openregistry.assets.core/pull/15#discussion_r152051246","pull_request_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/15","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/comments/152051246"},"html":{"href":"https://github.com/openprocurement/openregistry.assets.core/pull/15#discussion_r152051246"},"pull_request":{"href":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/15"}},"in_reply_to_id":151968374},"pull_request":{"url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/15","id":153277130,"html_url":"https://github.com/openprocurement/openregistry.assets.core/pull/15","diff_url":"https://github.com/openprocurement/openregistry.assets.core/pull/15.diff","patch_url":"https://github.com/openprocurement/openregistry.assets.core/pull/15.patch","issue_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/issues/15","number":15,"state":"open","locked":false,"title":"a451532442394170 Add decimal type for quantity","user":{"login":"andrii-shchudlo","id":26709422,"avatar_url":"https://avatars2.githubusercontent.com/u/26709422?v=4","gravatar_id":"","url":"https://api.github.com/users/andrii-shchudlo","html_url":"https://github.com/andrii-shchudlo","followers_url":"https://api.github.com/users/andrii-shchudlo/followers","following_url":"https://api.github.com/users/andrii-shchudlo/following{/other_user}","gists_url":"https://api.github.com/users/andrii-shchudlo/gists{/gist_id}","starred_url":"https://api.github.com/users/andrii-shchudlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrii-shchudlo/subscriptions","organizations_url":"https://api.github.com/users/andrii-shchudlo/orgs","repos_url":"https://api.github.com/users/andrii-shchudlo/repos","events_url":"https://api.github.com/users/andrii-shchudlo/events{/privacy}","received_events_url":"https://api.github.com/users/andrii-shchudlo/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-17T11:37:22Z","updated_at":"2017-11-20T17:03:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79bb873403b8248dccbfee77316fcd85112f6e63","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/15/commits","review_comments_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/15/comments","review_comment_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/issues/15/comments","statuses_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/statuses/1c03ca3e31a3b77ba45d9ac252a105be5acc3e66","head":{"label":"andrii-shchudlo:a451532442394170_add_quantity","ref":"a451532442394170_add_quantity","sha":"1c03ca3e31a3b77ba45d9ac252a105be5acc3e66","user":{"login":"andrii-shchudlo","id":26709422,"avatar_url":"https://avatars2.githubusercontent.com/u/26709422?v=4","gravatar_id":"","url":"https://api.github.com/users/andrii-shchudlo","html_url":"https://github.com/andrii-shchudlo","followers_url":"https://api.github.com/users/andrii-shchudlo/followers","following_url":"https://api.github.com/users/andrii-shchudlo/following{/other_user}","gists_url":"https://api.github.com/users/andrii-shchudlo/gists{/gist_id}","starred_url":"https://api.github.com/users/andrii-shchudlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrii-shchudlo/subscriptions","organizations_url":"https://api.github.com/users/andrii-shchudlo/orgs","repos_url":"https://api.github.com/users/andrii-shchudlo/repos","events_url":"https://api.github.com/users/andrii-shchudlo/events{/privacy}","received_events_url":"https://api.github.com/users/andrii-shchudlo/received_events","type":"User","site_admin":false},"repo":{"id":111096635,"name":"openregistry.assets.core","full_name":"andrii-shchudlo/openregistry.assets.core","owner":{"login":"andrii-shchudlo","id":26709422,"avatar_url":"https://avatars2.githubusercontent.com/u/26709422?v=4","gravatar_id":"","url":"https://api.github.com/users/andrii-shchudlo","html_url":"https://github.com/andrii-shchudlo","followers_url":"https://api.github.com/users/andrii-shchudlo/followers","following_url":"https://api.github.com/users/andrii-shchudlo/following{/other_user}","gists_url":"https://api.github.com/users/andrii-shchudlo/gists{/gist_id}","starred_url":"https://api.github.com/users/andrii-shchudlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrii-shchudlo/subscriptions","organizations_url":"https://api.github.com/users/andrii-shchudlo/orgs","repos_url":"https://api.github.com/users/andrii-shchudlo/repos","events_url":"https://api.github.com/users/andrii-shchudlo/events{/privacy}","received_events_url":"https://api.github.com/users/andrii-shchudlo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrii-shchudlo/openregistry.assets.core","description":null,"fork":true,"url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core","forks_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/forks","keys_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/teams","hooks_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/hooks","issue_events_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/issues/events{/number}","events_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/events","assignees_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/assignees{/user}","branches_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/branches{/branch}","tags_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/tags","blobs_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/statuses/{sha}","languages_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/languages","stargazers_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/stargazers","contributors_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/contributors","subscribers_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/subscribers","subscription_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/subscription","commits_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/contents/{+path}","compare_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/merges","archive_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/downloads","issues_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/issues{/number}","pulls_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/pulls{/number}","milestones_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/milestones{/number}","notifications_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/labels{/name}","releases_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/releases{/id}","deployments_url":"https://api.github.com/repos/andrii-shchudlo/openregistry.assets.core/deployments","created_at":"2017-11-17T11:36:17Z","updated_at":"2017-11-17T11:36:19Z","pushed_at":"2017-11-20T11:11:01Z","git_url":"git://github.com/andrii-shchudlo/openregistry.assets.core.git","ssh_url":"git@github.com:andrii-shchudlo/openregistry.assets.core.git","clone_url":"https://github.com/andrii-shchudlo/openregistry.assets.core.git","svn_url":"https://github.com/andrii-shchudlo/openregistry.assets.core","homepage":null,"size":79,"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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openprocurement:master","ref":"master","sha":"db942433d65cf3f47cfc276ecd23ffd488809860","user":{"login":"openprocurement","id":8692431,"avatar_url":"https://avatars2.githubusercontent.com/u/8692431?v=4","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":97601281,"name":"openregistry.assets.core","full_name":"openprocurement/openregistry.assets.core","owner":{"login":"openprocurement","id":8692431,"avatar_url":"https://avatars2.githubusercontent.com/u/8692431?v=4","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/openregistry.assets.core","description":null,"fork":false,"url":"https://api.github.com/repos/openprocurement/openregistry.assets.core","forks_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/forks","keys_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/teams","hooks_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/hooks","issue_events_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/issues/events{/number}","events_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/events","assignees_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/assignees{/user}","branches_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/branches{/branch}","tags_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/tags","blobs_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/git/refs{/sha}","trees_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/statuses/{sha}","languages_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/languages","stargazers_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/stargazers","contributors_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/contributors","subscribers_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/subscribers","subscription_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/subscription","commits_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/commits{/sha}","git_commits_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/git/commits{/sha}","comments_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/comments{/number}","issue_comment_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/issues/comments{/number}","contents_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/contents/{+path}","compare_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/merges","archive_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/downloads","issues_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/issues{/number}","pulls_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls{/number}","milestones_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/milestones{/number}","notifications_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/labels{/name}","releases_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/releases{/id}","deployments_url":"https://api.github.com/repos/openprocurement/openregistry.assets.core/deployments","created_at":"2017-07-18T13:26:13Z","updated_at":"2017-07-18T13:30:18Z","pushed_at":"2017-11-20T11:11:02Z","git_url":"git://github.com/openprocurement/openregistry.assets.core.git","ssh_url":"git@github.com:openprocurement/openregistry.assets.core.git","clone_url":"https://github.com/openprocurement/openregistry.assets.core.git","svn_url":"https://github.com/openprocurement/openregistry.assets.core","homepage":null,"size":74,"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":7,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/15"},"html":{"href":"https://github.com/openprocurement/openregistry.assets.core/pull/15"},"issue":{"href":"https://api.github.com/repos/openprocurement/openregistry.assets.core/issues/15"},"comments":{"href":"https://api.github.com/repos/openprocurement/openregistry.assets.core/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openprocurement/openregistry.assets.core/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/openprocurement/openregistry.assets.core/statuses/1c03ca3e31a3b77ba45d9ac252a105be5acc3e66"}},"author_association":"NONE"}}
{"actor":{"display_login":"yarsanich"}}