{"action":"created","comment":{"url":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/comments/70629798","id":70629798,"diff_hunk":"@@ -41,6 +41,9 @@ def pytest_addoption(parser):\n     group.addoption('--html', action='store', dest='htmlpath',\n                     metavar='path', default=None,\n                     help='create html report file at given path.')\n+    group.addoption('--self-contained-html', action=\"store\", dest='self_contained_html', default=False,","path":"pytest_html/plugin.py","position":4,"original_position":4,"commit_id":"96f8672cab8898782b3d8f6a4b6f7acd2516a25f","original_commit_id":"96f8672cab8898782b3d8f6a4b6f7acd2516a25f","user":{"login":"davehunt","id":122800,"avatar_url":"https://avatars.githubusercontent.com/u/122800?v=3","gravatar_id":"","url":"https://api.github.com/users/davehunt","html_url":"https://github.com/davehunt","followers_url":"https://api.github.com/users/davehunt/followers","following_url":"https://api.github.com/users/davehunt/following{/other_user}","gists_url":"https://api.github.com/users/davehunt/gists{/gist_id}","starred_url":"https://api.github.com/users/davehunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davehunt/subscriptions","organizations_url":"https://api.github.com/users/davehunt/orgs","repos_url":"https://api.github.com/users/davehunt/repos","events_url":"https://api.github.com/users/davehunt/events{/privacy}","received_events_url":"https://api.github.com/users/davehunt/received_events","type":"User","site_admin":false},"body":"You can access it from `config` such as `config.getoption('self_contained_html')`. The `config` is available through many objects such as `request`, `session`, etc.","created_at":"2016-07-13T13:59:35Z","updated_at":"2016-07-13T13:59:35Z","html_url":"https://github.com/pytest-dev/pytest-html/pull/63#discussion_r70629798","pull_request_url":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/comments/70629798"},"html":{"href":"https://github.com/pytest-dev/pytest-html/pull/63#discussion_r70629798"},"pull_request":{"href":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/63","id":76974363,"html_url":"https://github.com/pytest-dev/pytest-html/pull/63","diff_url":"https://github.com/pytest-dev/pytest-html/pull/63.diff","patch_url":"https://github.com/pytest-dev/pytest-html/pull/63.patch","issue_url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/63","number":63,"state":"open","locked":false,"title":"Added code to create an apart file to CSS","user":{"login":"RibeiroAna","id":7302792,"avatar_url":"https://avatars.githubusercontent.com/u/7302792?v=3","gravatar_id":"","url":"https://api.github.com/users/RibeiroAna","html_url":"https://github.com/RibeiroAna","followers_url":"https://api.github.com/users/RibeiroAna/followers","following_url":"https://api.github.com/users/RibeiroAna/following{/other_user}","gists_url":"https://api.github.com/users/RibeiroAna/gists{/gist_id}","starred_url":"https://api.github.com/users/RibeiroAna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RibeiroAna/subscriptions","organizations_url":"https://api.github.com/users/RibeiroAna/orgs","repos_url":"https://api.github.com/users/RibeiroAna/repos","events_url":"https://api.github.com/users/RibeiroAna/events{/privacy}","received_events_url":"https://api.github.com/users/RibeiroAna/received_events","type":"User","site_admin":false},"body":"Closes #62 ","created_at":"2016-07-11T15:32:02Z","updated_at":"2016-07-13T13:59:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd75c76072b5930dae1328b6c35738f36bc9df5d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/63/commits","review_comments_url":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/63/comments","review_comment_url":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/63/comments","statuses_url":"https://api.github.com/repos/pytest-dev/pytest-html/statuses/96f8672cab8898782b3d8f6a4b6f7acd2516a25f","head":{"label":"RibeiroAna:CSSapart","ref":"CSSapart","sha":"96f8672cab8898782b3d8f6a4b6f7acd2516a25f","user":{"login":"RibeiroAna","id":7302792,"avatar_url":"https://avatars.githubusercontent.com/u/7302792?v=3","gravatar_id":"","url":"https://api.github.com/users/RibeiroAna","html_url":"https://github.com/RibeiroAna","followers_url":"https://api.github.com/users/RibeiroAna/followers","following_url":"https://api.github.com/users/RibeiroAna/following{/other_user}","gists_url":"https://api.github.com/users/RibeiroAna/gists{/gist_id}","starred_url":"https://api.github.com/users/RibeiroAna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RibeiroAna/subscriptions","organizations_url":"https://api.github.com/users/RibeiroAna/orgs","repos_url":"https://api.github.com/users/RibeiroAna/repos","events_url":"https://api.github.com/users/RibeiroAna/events{/privacy}","received_events_url":"https://api.github.com/users/RibeiroAna/received_events","type":"User","site_admin":false},"repo":{"id":62120624,"name":"pytest-html","full_name":"RibeiroAna/pytest-html","owner":{"login":"RibeiroAna","id":7302792,"avatar_url":"https://avatars.githubusercontent.com/u/7302792?v=3","gravatar_id":"","url":"https://api.github.com/users/RibeiroAna","html_url":"https://github.com/RibeiroAna","followers_url":"https://api.github.com/users/RibeiroAna/followers","following_url":"https://api.github.com/users/RibeiroAna/following{/other_user}","gists_url":"https://api.github.com/users/RibeiroAna/gists{/gist_id}","starred_url":"https://api.github.com/users/RibeiroAna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RibeiroAna/subscriptions","organizations_url":"https://api.github.com/users/RibeiroAna/orgs","repos_url":"https://api.github.com/users/RibeiroAna/repos","events_url":"https://api.github.com/users/RibeiroAna/events{/privacy}","received_events_url":"https://api.github.com/users/RibeiroAna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RibeiroAna/pytest-html","description":"Plugin for generating HTML reports for py.test results","fork":true,"url":"https://api.github.com/repos/RibeiroAna/pytest-html","forks_url":"https://api.github.com/repos/RibeiroAna/pytest-html/forks","keys_url":"https://api.github.com/repos/RibeiroAna/pytest-html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RibeiroAna/pytest-html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RibeiroAna/pytest-html/teams","hooks_url":"https://api.github.com/repos/RibeiroAna/pytest-html/hooks","issue_events_url":"https://api.github.com/repos/RibeiroAna/pytest-html/issues/events{/number}","events_url":"https://api.github.com/repos/RibeiroAna/pytest-html/events","assignees_url":"https://api.github.com/repos/RibeiroAna/pytest-html/assignees{/user}","branches_url":"https://api.github.com/repos/RibeiroAna/pytest-html/branches{/branch}","tags_url":"https://api.github.com/repos/RibeiroAna/pytest-html/tags","blobs_url":"https://api.github.com/repos/RibeiroAna/pytest-html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RibeiroAna/pytest-html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RibeiroAna/pytest-html/git/refs{/sha}","trees_url":"https://api.github.com/repos/RibeiroAna/pytest-html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RibeiroAna/pytest-html/statuses/{sha}","languages_url":"https://api.github.com/repos/RibeiroAna/pytest-html/languages","stargazers_url":"https://api.github.com/repos/RibeiroAna/pytest-html/stargazers","contributors_url":"https://api.github.com/repos/RibeiroAna/pytest-html/contributors","subscribers_url":"https://api.github.com/repos/RibeiroAna/pytest-html/subscribers","subscription_url":"https://api.github.com/repos/RibeiroAna/pytest-html/subscription","commits_url":"https://api.github.com/repos/RibeiroAna/pytest-html/commits{/sha}","git_commits_url":"https://api.github.com/repos/RibeiroAna/pytest-html/git/commits{/sha}","comments_url":"https://api.github.com/repos/RibeiroAna/pytest-html/comments{/number}","issue_comment_url":"https://api.github.com/repos/RibeiroAna/pytest-html/issues/comments{/number}","contents_url":"https://api.github.com/repos/RibeiroAna/pytest-html/contents/{+path}","compare_url":"https://api.github.com/repos/RibeiroAna/pytest-html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RibeiroAna/pytest-html/merges","archive_url":"https://api.github.com/repos/RibeiroAna/pytest-html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RibeiroAna/pytest-html/downloads","issues_url":"https://api.github.com/repos/RibeiroAna/pytest-html/issues{/number}","pulls_url":"https://api.github.com/repos/RibeiroAna/pytest-html/pulls{/number}","milestones_url":"https://api.github.com/repos/RibeiroAna/pytest-html/milestones{/number}","notifications_url":"https://api.github.com/repos/RibeiroAna/pytest-html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RibeiroAna/pytest-html/labels{/name}","releases_url":"https://api.github.com/repos/RibeiroAna/pytest-html/releases{/id}","deployments_url":"https://api.github.com/repos/RibeiroAna/pytest-html/deployments","created_at":"2016-06-28T07:43:07Z","updated_at":"2016-06-28T07:43:08Z","pushed_at":"2016-07-13T13:49:28Z","git_url":"git://github.com/RibeiroAna/pytest-html.git","ssh_url":"git@github.com:RibeiroAna/pytest-html.git","clone_url":"https://github.com/RibeiroAna/pytest-html.git","svn_url":"https://github.com/RibeiroAna/pytest-html","homepage":null,"size":120,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"pytest-dev:master","ref":"master","sha":"93eaaf8ac855a322ec97a964de5b5c45ac886695","user":{"login":"pytest-dev","id":8897583,"avatar_url":"https://avatars.githubusercontent.com/u/8897583?v=3","gravatar_id":"","url":"https://api.github.com/users/pytest-dev","html_url":"https://github.com/pytest-dev","followers_url":"https://api.github.com/users/pytest-dev/followers","following_url":"https://api.github.com/users/pytest-dev/following{/other_user}","gists_url":"https://api.github.com/users/pytest-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pytest-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytest-dev/subscriptions","organizations_url":"https://api.github.com/users/pytest-dev/orgs","repos_url":"https://api.github.com/users/pytest-dev/repos","events_url":"https://api.github.com/users/pytest-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pytest-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":33952074,"name":"pytest-html","full_name":"pytest-dev/pytest-html","owner":{"login":"pytest-dev","id":8897583,"avatar_url":"https://avatars.githubusercontent.com/u/8897583?v=3","gravatar_id":"","url":"https://api.github.com/users/pytest-dev","html_url":"https://github.com/pytest-dev","followers_url":"https://api.github.com/users/pytest-dev/followers","following_url":"https://api.github.com/users/pytest-dev/following{/other_user}","gists_url":"https://api.github.com/users/pytest-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pytest-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytest-dev/subscriptions","organizations_url":"https://api.github.com/users/pytest-dev/orgs","repos_url":"https://api.github.com/users/pytest-dev/repos","events_url":"https://api.github.com/users/pytest-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pytest-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pytest-dev/pytest-html","description":"Plugin for generating HTML reports for py.test results","fork":false,"url":"https://api.github.com/repos/pytest-dev/pytest-html","forks_url":"https://api.github.com/repos/pytest-dev/pytest-html/forks","keys_url":"https://api.github.com/repos/pytest-dev/pytest-html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pytest-dev/pytest-html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pytest-dev/pytest-html/teams","hooks_url":"https://api.github.com/repos/pytest-dev/pytest-html/hooks","issue_events_url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/events{/number}","events_url":"https://api.github.com/repos/pytest-dev/pytest-html/events","assignees_url":"https://api.github.com/repos/pytest-dev/pytest-html/assignees{/user}","branches_url":"https://api.github.com/repos/pytest-dev/pytest-html/branches{/branch}","tags_url":"https://api.github.com/repos/pytest-dev/pytest-html/tags","blobs_url":"https://api.github.com/repos/pytest-dev/pytest-html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pytest-dev/pytest-html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pytest-dev/pytest-html/git/refs{/sha}","trees_url":"https://api.github.com/repos/pytest-dev/pytest-html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pytest-dev/pytest-html/statuses/{sha}","languages_url":"https://api.github.com/repos/pytest-dev/pytest-html/languages","stargazers_url":"https://api.github.com/repos/pytest-dev/pytest-html/stargazers","contributors_url":"https://api.github.com/repos/pytest-dev/pytest-html/contributors","subscribers_url":"https://api.github.com/repos/pytest-dev/pytest-html/subscribers","subscription_url":"https://api.github.com/repos/pytest-dev/pytest-html/subscription","commits_url":"https://api.github.com/repos/pytest-dev/pytest-html/commits{/sha}","git_commits_url":"https://api.github.com/repos/pytest-dev/pytest-html/git/commits{/sha}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-html/comments{/number}","issue_comment_url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/comments{/number}","contents_url":"https://api.github.com/repos/pytest-dev/pytest-html/contents/{+path}","compare_url":"https://api.github.com/repos/pytest-dev/pytest-html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pytest-dev/pytest-html/merges","archive_url":"https://api.github.com/repos/pytest-dev/pytest-html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pytest-dev/pytest-html/downloads","issues_url":"https://api.github.com/repos/pytest-dev/pytest-html/issues{/number}","pulls_url":"https://api.github.com/repos/pytest-dev/pytest-html/pulls{/number}","milestones_url":"https://api.github.com/repos/pytest-dev/pytest-html/milestones{/number}","notifications_url":"https://api.github.com/repos/pytest-dev/pytest-html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pytest-dev/pytest-html/labels{/name}","releases_url":"https://api.github.com/repos/pytest-dev/pytest-html/releases{/id}","deployments_url":"https://api.github.com/repos/pytest-dev/pytest-html/deployments","created_at":"2015-04-14T19:22:42Z","updated_at":"2016-07-11T21:47:18Z","pushed_at":"2016-07-13T13:49:29Z","git_url":"git://github.com/pytest-dev/pytest-html.git","ssh_url":"git@github.com:pytest-dev/pytest-html.git","clone_url":"https://github.com/pytest-dev/pytest-html.git","svn_url":"https://github.com/pytest-dev/pytest-html","homepage":null,"size":177,"stargazers_count":39,"watchers_count":39,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":18,"forks":28,"open_issues":18,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/63"},"html":{"href":"https://github.com/pytest-dev/pytest-html/pull/63"},"issue":{"href":"https://api.github.com/repos/pytest-dev/pytest-html/issues/63"},"comments":{"href":"https://api.github.com/repos/pytest-dev/pytest-html/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytest-dev/pytest-html/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/pytest-dev/pytest-html/statuses/96f8672cab8898782b3d8f6a4b6f7acd2516a25f"}}}}
{"actor":{"display_login":"davehunt"}}