{"action":"created","comment":{"url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/comments/63032515","id":63032515,"diff_hunk":"@@ -27,15 +27,51 @@\n \n from __future__ import absolute_import, print_function\n \n+import os\n+import shutil\n+import tempfile\n+\n import pytest\n from flask import Flask\n+from flask_cli import FlaskCLI\n+from invenio_accounts import InvenioAccounts\n+from invenio_db import InvenioDB, db\n+from invenio_jsonschemas import InvenioJSONSchemas\n+from sqlalchemy_utils.functions import create_database, database_exists, \\\n+    drop_database\n+\n+from invenio_sipstore import InvenioSIPStore\n \n \n @pytest.fixture()\n-def app():\n+def app(request):","path":"tests/conftest.py","position":22,"original_position":22,"commit_id":"1300c00c28ede9546d2bf5ae25904529c468310c","original_commit_id":"1300c00c28ede9546d2bf5ae25904529c468310c","user":{"login":"lnielsen","id":1698163,"avatar_url":"https://avatars.githubusercontent.com/u/1698163?v=3","gravatar_id":"","url":"https://api.github.com/users/lnielsen","html_url":"https://github.com/lnielsen","followers_url":"https://api.github.com/users/lnielsen/followers","following_url":"https://api.github.com/users/lnielsen/following{/other_user}","gists_url":"https://api.github.com/users/lnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/lnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnielsen/subscriptions","organizations_url":"https://api.github.com/users/lnielsen/orgs","repos_url":"https://api.github.com/users/lnielsen/repos","events_url":"https://api.github.com/users/lnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/lnielsen/received_events","type":"User","site_admin":false},"body":"Better to split up the fixture in small parts similar to: https://github.com/zenodo/zenodo/blob/master/tests/unit/conftest.py#L89-L132","created_at":"2016-05-12T14:43:10Z","updated_at":"2016-05-12T14:43:10Z","html_url":"https://github.com/inveniosoftware/invenio-sipstore/pull/2#discussion_r63032515","pull_request_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/comments/63032515"},"html":{"href":"https://github.com/inveniosoftware/invenio-sipstore/pull/2#discussion_r63032515"},"pull_request":{"href":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/2","id":67715742,"html_url":"https://github.com/inveniosoftware/invenio-sipstore/pull/2","diff_url":"https://github.com/inveniosoftware/invenio-sipstore/pull/2.diff","patch_url":"https://github.com/inveniosoftware/invenio-sipstore/pull/2.patch","issue_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/issues/2","number":2,"state":"open","locked":false,"title":"global: addition of basic SIP models","user":{"login":"krzysztof","id":656365,"avatar_url":"https://avatars.githubusercontent.com/u/656365?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztof","html_url":"https://github.com/krzysztof","followers_url":"https://api.github.com/users/krzysztof/followers","following_url":"https://api.github.com/users/krzysztof/following{/other_user}","gists_url":"https://api.github.com/users/krzysztof/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztof/subscriptions","organizations_url":"https://api.github.com/users/krzysztof/orgs","repos_url":"https://api.github.com/users/krzysztof/repos","events_url":"https://api.github.com/users/krzysztof/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztof/received_events","type":"User","site_admin":false},"body":"* Adds SIP models definition.","created_at":"2016-04-25T13:03:35Z","updated_at":"2016-05-12T14:43:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8dc631dbdb64449b438fa85b1c274b1120b286d","assignee":null,"milestone":{"url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/milestones/1","html_url":"https://github.com/inveniosoftware/invenio-sipstore/milestones/v1.0.0","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/milestones/1/labels","id":1729009,"number":1,"title":"v1.0.0","description":null,"creator":{"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},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-04-25T13:38:51Z","updated_at":"2016-05-03T09:22:47Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/2/commits","review_comments_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/2/comments","review_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/issues/2/comments","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/statuses/1300c00c28ede9546d2bf5ae25904529c468310c","head":{"label":"krzysztof:master","ref":"master","sha":"1300c00c28ede9546d2bf5ae25904529c468310c","user":{"login":"krzysztof","id":656365,"avatar_url":"https://avatars.githubusercontent.com/u/656365?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztof","html_url":"https://github.com/krzysztof","followers_url":"https://api.github.com/users/krzysztof/followers","following_url":"https://api.github.com/users/krzysztof/following{/other_user}","gists_url":"https://api.github.com/users/krzysztof/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztof/subscriptions","organizations_url":"https://api.github.com/users/krzysztof/orgs","repos_url":"https://api.github.com/users/krzysztof/repos","events_url":"https://api.github.com/users/krzysztof/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztof/received_events","type":"User","site_admin":false},"repo":{"id":57035392,"name":"invenio-sipstore","full_name":"krzysztof/invenio-sipstore","owner":{"login":"krzysztof","id":656365,"avatar_url":"https://avatars.githubusercontent.com/u/656365?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztof","html_url":"https://github.com/krzysztof","followers_url":"https://api.github.com/users/krzysztof/followers","following_url":"https://api.github.com/users/krzysztof/following{/other_user}","gists_url":"https://api.github.com/users/krzysztof/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztof/subscriptions","organizations_url":"https://api.github.com/users/krzysztof/orgs","repos_url":"https://api.github.com/users/krzysztof/repos","events_url":"https://api.github.com/users/krzysztof/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztof/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzysztof/invenio-sipstore","description":"Invenio Submission Information Package Store","fork":true,"url":"https://api.github.com/repos/krzysztof/invenio-sipstore","forks_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/forks","keys_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/teams","hooks_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/hooks","issue_events_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/issues/events{/number}","events_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/events","assignees_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/assignees{/user}","branches_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/branches{/branch}","tags_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/tags","blobs_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/statuses/{sha}","languages_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/languages","stargazers_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/stargazers","contributors_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/contributors","subscribers_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/subscribers","subscription_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/subscription","commits_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/contents/{+path}","compare_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/merges","archive_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/downloads","issues_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/issues{/number}","pulls_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/pulls{/number}","milestones_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/milestones{/number}","notifications_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/labels{/name}","releases_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/releases{/id}","deployments_url":"https://api.github.com/repos/krzysztof/invenio-sipstore/deployments","created_at":"2016-04-25T11:10:21Z","updated_at":"2016-04-25T11:10:22Z","pushed_at":"2016-05-12T12:47:36Z","git_url":"git://github.com/krzysztof/invenio-sipstore.git","ssh_url":"git@github.com:krzysztof/invenio-sipstore.git","clone_url":"https://github.com/krzysztof/invenio-sipstore.git","svn_url":"https://github.com/krzysztof/invenio-sipstore","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Python","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:master","ref":"master","sha":"3522c03e07e3868ef1d1fccb019c86f5822e3a1e","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":57033641,"name":"invenio-sipstore","full_name":"inveniosoftware/invenio-sipstore","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-sipstore","description":"Invenio Submission Information Package Store","fork":false,"url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore","forks_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/forks","keys_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/teams","hooks_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/hooks","issue_events_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/issues/events{/number}","events_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/events","assignees_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/assignees{/user}","branches_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/branches{/branch}","tags_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/tags","blobs_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/statuses/{sha}","languages_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/languages","stargazers_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/stargazers","contributors_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/contributors","subscribers_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/subscribers","subscription_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/subscription","commits_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/contents/{+path}","compare_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/merges","archive_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/downloads","issues_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/issues{/number}","pulls_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls{/number}","milestones_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/milestones{/number}","notifications_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/labels{/name}","releases_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/releases{/id}","deployments_url":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/deployments","created_at":"2016-04-25T10:40:12Z","updated_at":"2016-04-25T19:21:24Z","pushed_at":"2016-05-12T12:47:36Z","git_url":"git://github.com/inveniosoftware/invenio-sipstore.git","ssh_url":"git@github.com:inveniosoftware/invenio-sipstore.git","clone_url":"https://github.com/inveniosoftware/invenio-sipstore.git","svn_url":"https://github.com/inveniosoftware/invenio-sipstore","homepage":null,"size":26,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/2"},"html":{"href":"https://github.com/inveniosoftware/invenio-sipstore/pull/2"},"issue":{"href":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/issues/2"},"comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/inveniosoftware/invenio-sipstore/statuses/1300c00c28ede9546d2bf5ae25904529c468310c"}}}}