{"action":"created","comment":{"url":"https://api.github.com/repos/fsr-itse/EvaP/pulls/comments/55123374","id":55123374,"diff_hunk":"@@ -0,0 +1,93 @@\n+import os\n+\n+import xlrd\n+from django.conf import settings\n+from django.contrib.auth.models import Group\n+from django.test.utils import override_settings\n+from django_webtest import WebTest\n+from model_mommy import mommy\n+\n+from evap.evaluation.models import Semester, UserProfile, Course, CourseType\n+from evap.evaluation.tests.test_utils import lastform, ViewTest\n+\n+\n+class TestSemesterExportView(ViewTest):\n+    url = '/staff/semester/1/export'\n+    users = ['staff']\n+\n+    def setUp(self):\n+        self.semester = mommy.make(Semester, name='fuk', name_en='fuk', name_de='fuk')","path":"evap/staff/tests/test_views.py","position":19,"original_position":19,"commit_id":"ab82dac7e05b2835a9efb5d448c53466dbfa1a9a","original_commit_id":"fe55192004c037a811cb212c36d648a212baa089","user":{"login":"schumannd","id":5385472,"avatar_url":"https://avatars.githubusercontent.com/u/5385472?v=3","gravatar_id":"","url":"https://api.github.com/users/schumannd","html_url":"https://github.com/schumannd","followers_url":"https://api.github.com/users/schumannd/followers","following_url":"https://api.github.com/users/schumannd/following{/other_user}","gists_url":"https://api.github.com/users/schumannd/gists{/gist_id}","starred_url":"https://api.github.com/users/schumannd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schumannd/subscriptions","organizations_url":"https://api.github.com/users/schumannd/orgs","repos_url":"https://api.github.com/users/schumannd/repos","events_url":"https://api.github.com/users/schumannd/events{/privacy}","received_events_url":"https://api.github.com/users/schumannd/received_events","type":"User","site_admin":false},"body":"haha, oops. That are the results of some frustrating debugging there...","created_at":"2016-03-05T16:13:54Z","updated_at":"2016-03-05T16:13:54Z","html_url":"https://github.com/fsr-itse/EvaP/pull/748#discussion_r55123374","pull_request_url":"https://api.github.com/repos/fsr-itse/EvaP/pulls/748","_links":{"self":{"href":"https://api.github.com/repos/fsr-itse/EvaP/pulls/comments/55123374"},"html":{"href":"https://github.com/fsr-itse/EvaP/pull/748#discussion_r55123374"},"pull_request":{"href":"https://api.github.com/repos/fsr-itse/EvaP/pulls/748"}}},"pull_request":{"url":"https://api.github.com/repos/fsr-itse/EvaP/pulls/748","id":61688339,"html_url":"https://github.com/fsr-itse/EvaP/pull/748","diff_url":"https://github.com/fsr-itse/EvaP/pull/748.diff","patch_url":"https://github.com/fsr-itse/EvaP/pull/748.patch","issue_url":"https://api.github.com/repos/fsr-itse/EvaP/issues/748","number":748,"state":"open","locked":false,"title":"Tests for exporter (regression for #746) + some test refactoring","user":{"login":"schumannd","id":5385472,"avatar_url":"https://avatars.githubusercontent.com/u/5385472?v=3","gravatar_id":"","url":"https://api.github.com/users/schumannd","html_url":"https://github.com/schumannd","followers_url":"https://api.github.com/users/schumannd/followers","following_url":"https://api.github.com/users/schumannd/following{/other_user}","gists_url":"https://api.github.com/users/schumannd/gists{/gist_id}","starred_url":"https://api.github.com/users/schumannd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schumannd/subscriptions","organizations_url":"https://api.github.com/users/schumannd/orgs","repos_url":"https://api.github.com/users/schumannd/repos","events_url":"https://api.github.com/users/schumannd/events{/privacy}","received_events_url":"https://api.github.com/users/schumannd/received_events","type":"User","site_admin":false},"body":"Fixes #685 \r\n\r\nRefactoring also a part of ongoing test reorganization #707 ","created_at":"2016-03-04T09:45:36Z","updated_at":"2016-03-05T16:13:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb13c494af956dfc13e9df1fcce1e81cfc8642c2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fsr-itse/EvaP/pulls/748/commits","review_comments_url":"https://api.github.com/repos/fsr-itse/EvaP/pulls/748/comments","review_comment_url":"https://api.github.com/repos/fsr-itse/EvaP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fsr-itse/EvaP/issues/748/comments","statuses_url":"https://api.github.com/repos/fsr-itse/EvaP/statuses/ab82dac7e05b2835a9efb5d448c53466dbfa1a9a","head":{"label":"schumannd:feature-685","ref":"feature-685","sha":"ab82dac7e05b2835a9efb5d448c53466dbfa1a9a","user":{"login":"schumannd","id":5385472,"avatar_url":"https://avatars.githubusercontent.com/u/5385472?v=3","gravatar_id":"","url":"https://api.github.com/users/schumannd","html_url":"https://github.com/schumannd","followers_url":"https://api.github.com/users/schumannd/followers","following_url":"https://api.github.com/users/schumannd/following{/other_user}","gists_url":"https://api.github.com/users/schumannd/gists{/gist_id}","starred_url":"https://api.github.com/users/schumannd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schumannd/subscriptions","organizations_url":"https://api.github.com/users/schumannd/orgs","repos_url":"https://api.github.com/users/schumannd/repos","events_url":"https://api.github.com/users/schumannd/events{/privacy}","received_events_url":"https://api.github.com/users/schumannd/received_events","type":"User","site_admin":false},"repo":{"id":49011255,"name":"EvaP","full_name":"schumannd/EvaP","owner":{"login":"schumannd","id":5385472,"avatar_url":"https://avatars.githubusercontent.com/u/5385472?v=3","gravatar_id":"","url":"https://api.github.com/users/schumannd","html_url":"https://github.com/schumannd","followers_url":"https://api.github.com/users/schumannd/followers","following_url":"https://api.github.com/users/schumannd/following{/other_user}","gists_url":"https://api.github.com/users/schumannd/gists{/gist_id}","starred_url":"https://api.github.com/users/schumannd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schumannd/subscriptions","organizations_url":"https://api.github.com/users/schumannd/orgs","repos_url":"https://api.github.com/users/schumannd/repos","events_url":"https://api.github.com/users/schumannd/events{/privacy}","received_events_url":"https://api.github.com/users/schumannd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schumannd/EvaP","description":"a university course evaluation system written in Python using Django","fork":true,"url":"https://api.github.com/repos/schumannd/EvaP","forks_url":"https://api.github.com/repos/schumannd/EvaP/forks","keys_url":"https://api.github.com/repos/schumannd/EvaP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schumannd/EvaP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schumannd/EvaP/teams","hooks_url":"https://api.github.com/repos/schumannd/EvaP/hooks","issue_events_url":"https://api.github.com/repos/schumannd/EvaP/issues/events{/number}","events_url":"https://api.github.com/repos/schumannd/EvaP/events","assignees_url":"https://api.github.com/repos/schumannd/EvaP/assignees{/user}","branches_url":"https://api.github.com/repos/schumannd/EvaP/branches{/branch}","tags_url":"https://api.github.com/repos/schumannd/EvaP/tags","blobs_url":"https://api.github.com/repos/schumannd/EvaP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schumannd/EvaP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schumannd/EvaP/git/refs{/sha}","trees_url":"https://api.github.com/repos/schumannd/EvaP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schumannd/EvaP/statuses/{sha}","languages_url":"https://api.github.com/repos/schumannd/EvaP/languages","stargazers_url":"https://api.github.com/repos/schumannd/EvaP/stargazers","contributors_url":"https://api.github.com/repos/schumannd/EvaP/contributors","subscribers_url":"https://api.github.com/repos/schumannd/EvaP/subscribers","subscription_url":"https://api.github.com/repos/schumannd/EvaP/subscription","commits_url":"https://api.github.com/repos/schumannd/EvaP/commits{/sha}","git_commits_url":"https://api.github.com/repos/schumannd/EvaP/git/commits{/sha}","comments_url":"https://api.github.com/repos/schumannd/EvaP/comments{/number}","issue_comment_url":"https://api.github.com/repos/schumannd/EvaP/issues/comments{/number}","contents_url":"https://api.github.com/repos/schumannd/EvaP/contents/{+path}","compare_url":"https://api.github.com/repos/schumannd/EvaP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schumannd/EvaP/merges","archive_url":"https://api.github.com/repos/schumannd/EvaP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schumannd/EvaP/downloads","issues_url":"https://api.github.com/repos/schumannd/EvaP/issues{/number}","pulls_url":"https://api.github.com/repos/schumannd/EvaP/pulls{/number}","milestones_url":"https://api.github.com/repos/schumannd/EvaP/milestones{/number}","notifications_url":"https://api.github.com/repos/schumannd/EvaP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schumannd/EvaP/labels{/name}","releases_url":"https://api.github.com/repos/schumannd/EvaP/releases{/id}","deployments_url":"https://api.github.com/repos/schumannd/EvaP/deployments","created_at":"2016-01-04T17:09:49Z","updated_at":"2016-02-01T19:47:39Z","pushed_at":"2016-03-05T16:13:00Z","git_url":"git://github.com/schumannd/EvaP.git","ssh_url":"git@github.com:schumannd/EvaP.git","clone_url":"https://github.com/schumannd/EvaP.git","svn_url":"https://github.com/schumannd/EvaP","homepage":"","size":10886,"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":"fsr-itse:master","ref":"master","sha":"bfbb43e3e20e7da83b847199bc32f6f03bbb33eb","user":{"login":"fsr-itse","id":1298457,"avatar_url":"https://avatars.githubusercontent.com/u/1298457?v=3","gravatar_id":"","url":"https://api.github.com/users/fsr-itse","html_url":"https://github.com/fsr-itse","followers_url":"https://api.github.com/users/fsr-itse/followers","following_url":"https://api.github.com/users/fsr-itse/following{/other_user}","gists_url":"https://api.github.com/users/fsr-itse/gists{/gist_id}","starred_url":"https://api.github.com/users/fsr-itse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsr-itse/subscriptions","organizations_url":"https://api.github.com/users/fsr-itse/orgs","repos_url":"https://api.github.com/users/fsr-itse/repos","events_url":"https://api.github.com/users/fsr-itse/events{/privacy}","received_events_url":"https://api.github.com/users/fsr-itse/received_events","type":"Organization","site_admin":false},"repo":{"id":3110378,"name":"EvaP","full_name":"fsr-itse/EvaP","owner":{"login":"fsr-itse","id":1298457,"avatar_url":"https://avatars.githubusercontent.com/u/1298457?v=3","gravatar_id":"","url":"https://api.github.com/users/fsr-itse","html_url":"https://github.com/fsr-itse","followers_url":"https://api.github.com/users/fsr-itse/followers","following_url":"https://api.github.com/users/fsr-itse/following{/other_user}","gists_url":"https://api.github.com/users/fsr-itse/gists{/gist_id}","starred_url":"https://api.github.com/users/fsr-itse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsr-itse/subscriptions","organizations_url":"https://api.github.com/users/fsr-itse/orgs","repos_url":"https://api.github.com/users/fsr-itse/repos","events_url":"https://api.github.com/users/fsr-itse/events{/privacy}","received_events_url":"https://api.github.com/users/fsr-itse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsr-itse/EvaP","description":"a university course evaluation system written in Python using Django","fork":false,"url":"https://api.github.com/repos/fsr-itse/EvaP","forks_url":"https://api.github.com/repos/fsr-itse/EvaP/forks","keys_url":"https://api.github.com/repos/fsr-itse/EvaP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsr-itse/EvaP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsr-itse/EvaP/teams","hooks_url":"https://api.github.com/repos/fsr-itse/EvaP/hooks","issue_events_url":"https://api.github.com/repos/fsr-itse/EvaP/issues/events{/number}","events_url":"https://api.github.com/repos/fsr-itse/EvaP/events","assignees_url":"https://api.github.com/repos/fsr-itse/EvaP/assignees{/user}","branches_url":"https://api.github.com/repos/fsr-itse/EvaP/branches{/branch}","tags_url":"https://api.github.com/repos/fsr-itse/EvaP/tags","blobs_url":"https://api.github.com/repos/fsr-itse/EvaP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsr-itse/EvaP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsr-itse/EvaP/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsr-itse/EvaP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsr-itse/EvaP/statuses/{sha}","languages_url":"https://api.github.com/repos/fsr-itse/EvaP/languages","stargazers_url":"https://api.github.com/repos/fsr-itse/EvaP/stargazers","contributors_url":"https://api.github.com/repos/fsr-itse/EvaP/contributors","subscribers_url":"https://api.github.com/repos/fsr-itse/EvaP/subscribers","subscription_url":"https://api.github.com/repos/fsr-itse/EvaP/subscription","commits_url":"https://api.github.com/repos/fsr-itse/EvaP/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsr-itse/EvaP/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsr-itse/EvaP/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsr-itse/EvaP/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsr-itse/EvaP/contents/{+path}","compare_url":"https://api.github.com/repos/fsr-itse/EvaP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsr-itse/EvaP/merges","archive_url":"https://api.github.com/repos/fsr-itse/EvaP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsr-itse/EvaP/downloads","issues_url":"https://api.github.com/repos/fsr-itse/EvaP/issues{/number}","pulls_url":"https://api.github.com/repos/fsr-itse/EvaP/pulls{/number}","milestones_url":"https://api.github.com/repos/fsr-itse/EvaP/milestones{/number}","notifications_url":"https://api.github.com/repos/fsr-itse/EvaP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsr-itse/EvaP/labels{/name}","releases_url":"https://api.github.com/repos/fsr-itse/EvaP/releases{/id}","deployments_url":"https://api.github.com/repos/fsr-itse/EvaP/deployments","created_at":"2012-01-05T13:56:45Z","updated_at":"2016-03-02T20:11:16Z","pushed_at":"2016-03-05T16:13:01Z","git_url":"git://github.com/fsr-itse/EvaP.git","ssh_url":"git@github.com:fsr-itse/EvaP.git","clone_url":"https://github.com/fsr-itse/EvaP.git","svn_url":"https://github.com/fsr-itse/EvaP","homepage":"","size":50261,"stargazers_count":26,"watchers_count":26,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":53,"forks":54,"open_issues":53,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fsr-itse/EvaP/pulls/748"},"html":{"href":"https://github.com/fsr-itse/EvaP/pull/748"},"issue":{"href":"https://api.github.com/repos/fsr-itse/EvaP/issues/748"},"comments":{"href":"https://api.github.com/repos/fsr-itse/EvaP/issues/748/comments"},"review_comments":{"href":"https://api.github.com/repos/fsr-itse/EvaP/pulls/748/comments"},"review_comment":{"href":"https://api.github.com/repos/fsr-itse/EvaP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fsr-itse/EvaP/pulls/748/commits"},"statuses":{"href":"https://api.github.com/repos/fsr-itse/EvaP/statuses/ab82dac7e05b2835a9efb5d448c53466dbfa1a9a"}}}}