{"action":"created","comment":{"url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/comments/77618359","id":77618359,"diff_hunk":"@@ -27,15 +27,74 @@\n \n from __future__ import absolute_import, print_function\n \n+import tempfile\n+\n import pytest\n from flask import Flask\n+from flask_security.utils import encrypt_password\n+from invenio_accounts import InvenioAccounts\n+from invenio_db import db as db_\n+from invenio_db import InvenioDB\n+from invenio_oauth2server import InvenioOAuth2Server\n+from invenio_oauth2server.models import Token\n+from sqlalchemy_utils.functions import create_database, database_exists\n+from werkzeug.local import LocalProxy\n+\n+from invenio_accounts_rest import InvenioAccountsREST\n \n \n-@pytest.fixture()\n+@pytest.yield_fixture()\n def app():\n     \"\"\"Flask application fixture.\"\"\"\n-    app = Flask('testapp')\n+    instance_path = tempfile.mkdtemp()\n+\n+    app = Flask(__name__, instance_path=instance_path)\n     app.config.update(\n-        TESTING=True\n+        OAUTH2SERVER_CLIENT_ID_SALT_LEN=40,\n+        OAUTH2SERVER_CLIENT_SECRET_SALT_LEN=60,\n+        OAUTH2SERVER_TOKEN_PERSONAL_SALT_LEN=60,\n+        SECRET_KEY='changeme',\n+        SERVER_NAME='localhost:5000',","path":"tests/conftest.py","position":34,"original_position":34,"commit_id":"15fe432e0e0a17393af0c6e937d8870a108e9ee5","original_commit_id":"15fe432e0e0a17393af0c6e937d8870a108e9ee5","user":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"body":"please remove the server_name","created_at":"2016-09-06T11:38:56Z","updated_at":"2016-09-06T11:38:56Z","html_url":"https://github.com/inveniosoftware/invenio-accounts-rest/pull/4#discussion_r77618359","pull_request_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/comments/77618359"},"html":{"href":"https://github.com/inveniosoftware/invenio-accounts-rest/pull/4#discussion_r77618359"},"pull_request":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/4","id":84094048,"html_url":"https://github.com/inveniosoftware/invenio-accounts-rest/pull/4","diff_url":"https://github.com/inveniosoftware/invenio-accounts-rest/pull/4.diff","patch_url":"https://github.com/inveniosoftware/invenio-accounts-rest/pull/4.patch","issue_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/issues/4","number":4,"state":"open","locked":false,"title":"global: circulation specific user search","user":{"login":"mvesper","id":6840386,"avatar_url":"https://avatars.githubusercontent.com/u/6840386?v=3","gravatar_id":"","url":"https://api.github.com/users/mvesper","html_url":"https://github.com/mvesper","followers_url":"https://api.github.com/users/mvesper/followers","following_url":"https://api.github.com/users/mvesper/following{/other_user}","gists_url":"https://api.github.com/users/mvesper/gists{/gist_id}","starred_url":"https://api.github.com/users/mvesper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvesper/subscriptions","organizations_url":"https://api.github.com/users/mvesper/orgs","repos_url":"https://api.github.com/users/mvesper/repos","events_url":"https://api.github.com/users/mvesper/events{/privacy}","received_events_url":"https://api.github.com/users/mvesper/received_events","type":"User","site_admin":false},"body":"* Adds a first REST API implementation for *invenio_accounts.models.User* that handles current *invenio-circulation* needs.\r\n","created_at":"2016-09-06T10:04:56Z","updated_at":"2016-09-06T11:38:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65d3943a86825cc50e841851203c6d48c05a4579","assignee":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"assignees":[{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},{"login":"mvesper","id":6840386,"avatar_url":"https://avatars.githubusercontent.com/u/6840386?v=3","gravatar_id":"","url":"https://api.github.com/users/mvesper","html_url":"https://github.com/mvesper","followers_url":"https://api.github.com/users/mvesper/followers","following_url":"https://api.github.com/users/mvesper/following{/other_user}","gists_url":"https://api.github.com/users/mvesper/gists{/gist_id}","starred_url":"https://api.github.com/users/mvesper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvesper/subscriptions","organizations_url":"https://api.github.com/users/mvesper/orgs","repos_url":"https://api.github.com/users/mvesper/repos","events_url":"https://api.github.com/users/mvesper/events{/privacy}","received_events_url":"https://api.github.com/users/mvesper/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/4/commits","review_comments_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/4/comments","review_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/issues/4/comments","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/statuses/15fe432e0e0a17393af0c6e937d8870a108e9ee5","head":{"label":"mvesper:circulation_initial","ref":"circulation_initial","sha":"15fe432e0e0a17393af0c6e937d8870a108e9ee5","user":{"login":"mvesper","id":6840386,"avatar_url":"https://avatars.githubusercontent.com/u/6840386?v=3","gravatar_id":"","url":"https://api.github.com/users/mvesper","html_url":"https://github.com/mvesper","followers_url":"https://api.github.com/users/mvesper/followers","following_url":"https://api.github.com/users/mvesper/following{/other_user}","gists_url":"https://api.github.com/users/mvesper/gists{/gist_id}","starred_url":"https://api.github.com/users/mvesper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvesper/subscriptions","organizations_url":"https://api.github.com/users/mvesper/orgs","repos_url":"https://api.github.com/users/mvesper/repos","events_url":"https://api.github.com/users/mvesper/events{/privacy}","received_events_url":"https://api.github.com/users/mvesper/received_events","type":"User","site_admin":false},"repo":{"id":67489413,"name":"invenio-accounts-rest","full_name":"mvesper/invenio-accounts-rest","owner":{"login":"mvesper","id":6840386,"avatar_url":"https://avatars.githubusercontent.com/u/6840386?v=3","gravatar_id":"","url":"https://api.github.com/users/mvesper","html_url":"https://github.com/mvesper","followers_url":"https://api.github.com/users/mvesper/followers","following_url":"https://api.github.com/users/mvesper/following{/other_user}","gists_url":"https://api.github.com/users/mvesper/gists{/gist_id}","starred_url":"https://api.github.com/users/mvesper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvesper/subscriptions","organizations_url":"https://api.github.com/users/mvesper/orgs","repos_url":"https://api.github.com/users/mvesper/repos","events_url":"https://api.github.com/users/mvesper/events{/privacy}","received_events_url":"https://api.github.com/users/mvesper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mvesper/invenio-accounts-rest","description":null,"fork":true,"url":"https://api.github.com/repos/mvesper/invenio-accounts-rest","forks_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/forks","keys_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/teams","hooks_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/hooks","issue_events_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/issues/events{/number}","events_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/events","assignees_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/assignees{/user}","branches_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/branches{/branch}","tags_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/tags","blobs_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/languages","stargazers_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/stargazers","contributors_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/contributors","subscribers_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/subscribers","subscription_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/subscription","commits_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/contents/{+path}","compare_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/merges","archive_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/downloads","issues_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/issues{/number}","pulls_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/labels{/name}","releases_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/releases{/id}","deployments_url":"https://api.github.com/repos/mvesper/invenio-accounts-rest/deployments","created_at":"2016-09-06T08:32:27Z","updated_at":"2016-09-05T15:40:28Z","pushed_at":"2016-09-06T10:03:34Z","git_url":"git://github.com/mvesper/invenio-accounts-rest.git","ssh_url":"git@github.com:mvesper/invenio-accounts-rest.git","clone_url":"https://github.com/mvesper/invenio-accounts-rest.git","svn_url":"https://github.com/mvesper/invenio-accounts-rest","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":null,"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":"inveniosoftware:package-structure","ref":"package-structure","sha":"898753134c0b1147f7ee63b1bb53f4e9b6cfca1e","user":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":67432715,"name":"invenio-accounts-rest","full_name":"inveniosoftware/invenio-accounts-rest","owner":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inveniosoftware/invenio-accounts-rest","description":null,"fork":false,"url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest","forks_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/forks","keys_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/teams","hooks_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/hooks","issue_events_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/issues/events{/number}","events_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/events","assignees_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/assignees{/user}","branches_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/branches{/branch}","tags_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/tags","blobs_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/languages","stargazers_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/stargazers","contributors_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/contributors","subscribers_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/subscribers","subscription_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/subscription","commits_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/contents/{+path}","compare_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/merges","archive_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/downloads","issues_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/issues{/number}","pulls_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/labels{/name}","releases_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/releases{/id}","deployments_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/deployments","created_at":"2016-09-05T15:40:28Z","updated_at":"2016-09-05T15:40:28Z","pushed_at":"2016-09-06T10:04:56Z","git_url":"git://github.com/inveniosoftware/invenio-accounts-rest.git","ssh_url":"git@github.com:inveniosoftware/invenio-accounts-rest.git","clone_url":"https://github.com/inveniosoftware/invenio-accounts-rest.git","svn_url":"https://github.com/inveniosoftware/invenio-accounts-rest","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/4"},"html":{"href":"https://github.com/inveniosoftware/invenio-accounts-rest/pull/4"},"issue":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/issues/4"},"comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts-rest/statuses/15fe432e0e0a17393af0c6e937d8870a108e9ee5"}}}}
{"actor":{"display_login":"jirikuncar"}}