{"action":"created","comment":{"url":"https://api.github.com/repos/tardis-sn/tardis/pulls/comments/31042012","id":31042012,"diff_hunk":"@@ -0,0 +1,19 @@\n+#include \"../src/rpacket.h\"\n+#include <assert.h>\n+#include <stdlib.h>\n+#include <Python.h>\n+\n+void test_rpacket_get_nu(){\n+\trpacket_t * rp = (rpacket_t *) malloc(sizeof(rpacket_t));\n+\tdouble value = 10.2;\n+\trpacket_set_nu(rp, value);\n+\tif( value != rpacket_get_nu(rp) ){\n+\t\tPyErr_Format(PyExc_AssertionError, \"value %g not %g\", value, rpacket_get_nu(rp));\n+\t}\n+}","path":"tardis/montecarlo/tests/test_rpacket.c","position":13,"original_position":13,"commit_id":"f8b8a5204c3bb1daee80b7590e91fcef1d624268","original_commit_id":"f8b8a5204c3bb1daee80b7590e91fcef1d624268","user":{"login":"kaushik94","id":6545467,"avatar_url":"https://avatars.githubusercontent.com/u/6545467?v=3","gravatar_id":"","url":"https://api.github.com/users/kaushik94","html_url":"https://github.com/kaushik94","followers_url":"https://api.github.com/users/kaushik94/followers","following_url":"https://api.github.com/users/kaushik94/following{/other_user}","gists_url":"https://api.github.com/users/kaushik94/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushik94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushik94/subscriptions","organizations_url":"https://api.github.com/users/kaushik94/orgs","repos_url":"https://api.github.com/users/kaushik94/repos","events_url":"https://api.github.com/users/kaushik94/events{/privacy}","received_events_url":"https://api.github.com/users/kaushik94/received_events","type":"User","site_admin":false},"body":"okay @wkerzendorf  I just watched it. Even that uses wrappers but with pytest we have the luxury of directly building C files and testing them, only problem is that they are not being build in the right place where we want. Do you want me to go with the method proposed in the video ? ","created_at":"2015-05-26T14:56:26Z","updated_at":"2015-05-26T14:56:26Z","html_url":"https://github.com/tardis-sn/tardis/pull/309#discussion_r31042012","pull_request_url":"https://api.github.com/repos/tardis-sn/tardis/pulls/309","_links":{"self":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/comments/31042012"},"html":{"href":"https://github.com/tardis-sn/tardis/pull/309#discussion_r31042012"},"pull_request":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/309"}}},"pull_request":{"url":"https://api.github.com/repos/tardis-sn/tardis/pulls/309","id":36158900,"html_url":"https://github.com/tardis-sn/tardis/pull/309","diff_url":"https://github.com/tardis-sn/tardis/pull/309.diff","patch_url":"https://github.com/tardis-sn/tardis/pull/309.patch","issue_url":"https://api.github.com/repos/tardis-sn/tardis/issues/309","number":309,"state":"open","locked":false,"title":"C testing framework","user":{"login":"kaushik94","id":6545467,"avatar_url":"https://avatars.githubusercontent.com/u/6545467?v=3","gravatar_id":"","url":"https://api.github.com/users/kaushik94","html_url":"https://github.com/kaushik94","followers_url":"https://api.github.com/users/kaushik94/followers","following_url":"https://api.github.com/users/kaushik94/following{/other_user}","gists_url":"https://api.github.com/users/kaushik94/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushik94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushik94/subscriptions","organizations_url":"https://api.github.com/users/kaushik94/orgs","repos_url":"https://api.github.com/users/kaushik94/repos","events_url":"https://api.github.com/users/kaushik94/events{/privacy}","received_events_url":"https://api.github.com/users/kaushik94/received_events","type":"User","site_admin":false},"body":"@wkerzendorf  how to go about from here. Should we use C types to call the function `test_rpacket_get_nu()` from a python test ?","created_at":"2015-05-25T21:42:40Z","updated_at":"2015-05-26T14:56:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a123ced02d47c9f6038e76a2597bd33dfca2badb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tardis-sn/tardis/pulls/309/commits","review_comments_url":"https://api.github.com/repos/tardis-sn/tardis/pulls/309/comments","review_comment_url":"https://api.github.com/repos/tardis-sn/tardis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tardis-sn/tardis/issues/309/comments","statuses_url":"https://api.github.com/repos/tardis-sn/tardis/statuses/f8b8a5204c3bb1daee80b7590e91fcef1d624268","head":{"label":"kaushik94:c-testing-framework","ref":"c-testing-framework","sha":"f8b8a5204c3bb1daee80b7590e91fcef1d624268","user":{"login":"kaushik94","id":6545467,"avatar_url":"https://avatars.githubusercontent.com/u/6545467?v=3","gravatar_id":"","url":"https://api.github.com/users/kaushik94","html_url":"https://github.com/kaushik94","followers_url":"https://api.github.com/users/kaushik94/followers","following_url":"https://api.github.com/users/kaushik94/following{/other_user}","gists_url":"https://api.github.com/users/kaushik94/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushik94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushik94/subscriptions","organizations_url":"https://api.github.com/users/kaushik94/orgs","repos_url":"https://api.github.com/users/kaushik94/repos","events_url":"https://api.github.com/users/kaushik94/events{/privacy}","received_events_url":"https://api.github.com/users/kaushik94/received_events","type":"User","site_admin":false},"repo":{"id":31717067,"name":"tardis","full_name":"kaushik94/tardis","owner":{"login":"kaushik94","id":6545467,"avatar_url":"https://avatars.githubusercontent.com/u/6545467?v=3","gravatar_id":"","url":"https://api.github.com/users/kaushik94","html_url":"https://github.com/kaushik94","followers_url":"https://api.github.com/users/kaushik94/followers","following_url":"https://api.github.com/users/kaushik94/following{/other_user}","gists_url":"https://api.github.com/users/kaushik94/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushik94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushik94/subscriptions","organizations_url":"https://api.github.com/users/kaushik94/orgs","repos_url":"https://api.github.com/users/kaushik94/repos","events_url":"https://api.github.com/users/kaushik94/events{/privacy}","received_events_url":"https://api.github.com/users/kaushik94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaushik94/tardis","description":"TARDIS - Temperature And Radiative Diffusion In Supernovae","fork":true,"url":"https://api.github.com/repos/kaushik94/tardis","forks_url":"https://api.github.com/repos/kaushik94/tardis/forks","keys_url":"https://api.github.com/repos/kaushik94/tardis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaushik94/tardis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaushik94/tardis/teams","hooks_url":"https://api.github.com/repos/kaushik94/tardis/hooks","issue_events_url":"https://api.github.com/repos/kaushik94/tardis/issues/events{/number}","events_url":"https://api.github.com/repos/kaushik94/tardis/events","assignees_url":"https://api.github.com/repos/kaushik94/tardis/assignees{/user}","branches_url":"https://api.github.com/repos/kaushik94/tardis/branches{/branch}","tags_url":"https://api.github.com/repos/kaushik94/tardis/tags","blobs_url":"https://api.github.com/repos/kaushik94/tardis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaushik94/tardis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaushik94/tardis/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaushik94/tardis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaushik94/tardis/statuses/{sha}","languages_url":"https://api.github.com/repos/kaushik94/tardis/languages","stargazers_url":"https://api.github.com/repos/kaushik94/tardis/stargazers","contributors_url":"https://api.github.com/repos/kaushik94/tardis/contributors","subscribers_url":"https://api.github.com/repos/kaushik94/tardis/subscribers","subscription_url":"https://api.github.com/repos/kaushik94/tardis/subscription","commits_url":"https://api.github.com/repos/kaushik94/tardis/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaushik94/tardis/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaushik94/tardis/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaushik94/tardis/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaushik94/tardis/contents/{+path}","compare_url":"https://api.github.com/repos/kaushik94/tardis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaushik94/tardis/merges","archive_url":"https://api.github.com/repos/kaushik94/tardis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaushik94/tardis/downloads","issues_url":"https://api.github.com/repos/kaushik94/tardis/issues{/number}","pulls_url":"https://api.github.com/repos/kaushik94/tardis/pulls{/number}","milestones_url":"https://api.github.com/repos/kaushik94/tardis/milestones{/number}","notifications_url":"https://api.github.com/repos/kaushik94/tardis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaushik94/tardis/labels{/name}","releases_url":"https://api.github.com/repos/kaushik94/tardis/releases{/id}","created_at":"2015-03-05T14:15:20Z","updated_at":"2015-03-07T19:42:42Z","pushed_at":"2015-05-25T23:29:36Z","git_url":"git://github.com/kaushik94/tardis.git","ssh_url":"git@github.com:kaushik94/tardis.git","clone_url":"https://github.com/kaushik94/tardis.git","svn_url":"https://github.com/kaushik94/tardis","homepage":"","size":6725,"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":"tardis-sn:master","ref":"master","sha":"8ca74ec5a0220d74c39f76fc69e32a4701406d0a","user":{"login":"tardis-sn","id":6108234,"avatar_url":"https://avatars.githubusercontent.com/u/6108234?v=3","gravatar_id":"","url":"https://api.github.com/users/tardis-sn","html_url":"https://github.com/tardis-sn","followers_url":"https://api.github.com/users/tardis-sn/followers","following_url":"https://api.github.com/users/tardis-sn/following{/other_user}","gists_url":"https://api.github.com/users/tardis-sn/gists{/gist_id}","starred_url":"https://api.github.com/users/tardis-sn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tardis-sn/subscriptions","organizations_url":"https://api.github.com/users/tardis-sn/orgs","repos_url":"https://api.github.com/users/tardis-sn/repos","events_url":"https://api.github.com/users/tardis-sn/events{/privacy}","received_events_url":"https://api.github.com/users/tardis-sn/received_events","type":"Organization","site_admin":false},"repo":{"id":2938270,"name":"tardis","full_name":"tardis-sn/tardis","owner":{"login":"tardis-sn","id":6108234,"avatar_url":"https://avatars.githubusercontent.com/u/6108234?v=3","gravatar_id":"","url":"https://api.github.com/users/tardis-sn","html_url":"https://github.com/tardis-sn","followers_url":"https://api.github.com/users/tardis-sn/followers","following_url":"https://api.github.com/users/tardis-sn/following{/other_user}","gists_url":"https://api.github.com/users/tardis-sn/gists{/gist_id}","starred_url":"https://api.github.com/users/tardis-sn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tardis-sn/subscriptions","organizations_url":"https://api.github.com/users/tardis-sn/orgs","repos_url":"https://api.github.com/users/tardis-sn/repos","events_url":"https://api.github.com/users/tardis-sn/events{/privacy}","received_events_url":"https://api.github.com/users/tardis-sn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tardis-sn/tardis","description":"TARDIS - Temperature And Radiative Diffusion In Supernovae","fork":false,"url":"https://api.github.com/repos/tardis-sn/tardis","forks_url":"https://api.github.com/repos/tardis-sn/tardis/forks","keys_url":"https://api.github.com/repos/tardis-sn/tardis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tardis-sn/tardis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tardis-sn/tardis/teams","hooks_url":"https://api.github.com/repos/tardis-sn/tardis/hooks","issue_events_url":"https://api.github.com/repos/tardis-sn/tardis/issues/events{/number}","events_url":"https://api.github.com/repos/tardis-sn/tardis/events","assignees_url":"https://api.github.com/repos/tardis-sn/tardis/assignees{/user}","branches_url":"https://api.github.com/repos/tardis-sn/tardis/branches{/branch}","tags_url":"https://api.github.com/repos/tardis-sn/tardis/tags","blobs_url":"https://api.github.com/repos/tardis-sn/tardis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tardis-sn/tardis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tardis-sn/tardis/git/refs{/sha}","trees_url":"https://api.github.com/repos/tardis-sn/tardis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tardis-sn/tardis/statuses/{sha}","languages_url":"https://api.github.com/repos/tardis-sn/tardis/languages","stargazers_url":"https://api.github.com/repos/tardis-sn/tardis/stargazers","contributors_url":"https://api.github.com/repos/tardis-sn/tardis/contributors","subscribers_url":"https://api.github.com/repos/tardis-sn/tardis/subscribers","subscription_url":"https://api.github.com/repos/tardis-sn/tardis/subscription","commits_url":"https://api.github.com/repos/tardis-sn/tardis/commits{/sha}","git_commits_url":"https://api.github.com/repos/tardis-sn/tardis/git/commits{/sha}","comments_url":"https://api.github.com/repos/tardis-sn/tardis/comments{/number}","issue_comment_url":"https://api.github.com/repos/tardis-sn/tardis/issues/comments{/number}","contents_url":"https://api.github.com/repos/tardis-sn/tardis/contents/{+path}","compare_url":"https://api.github.com/repos/tardis-sn/tardis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tardis-sn/tardis/merges","archive_url":"https://api.github.com/repos/tardis-sn/tardis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tardis-sn/tardis/downloads","issues_url":"https://api.github.com/repos/tardis-sn/tardis/issues{/number}","pulls_url":"https://api.github.com/repos/tardis-sn/tardis/pulls{/number}","milestones_url":"https://api.github.com/repos/tardis-sn/tardis/milestones{/number}","notifications_url":"https://api.github.com/repos/tardis-sn/tardis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tardis-sn/tardis/labels{/name}","releases_url":"https://api.github.com/repos/tardis-sn/tardis/releases{/id}","created_at":"2011-12-08T06:20:19Z","updated_at":"2015-05-10T09:47:33Z","pushed_at":"2015-05-26T12:05:00Z","git_url":"git://github.com/tardis-sn/tardis.git","ssh_url":"git@github.com:tardis-sn/tardis.git","clone_url":"https://github.com/tardis-sn/tardis.git","svn_url":"https://github.com/tardis-sn/tardis","homepage":"","size":37038,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":74,"forks":82,"open_issues":74,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/309"},"html":{"href":"https://github.com/tardis-sn/tardis/pull/309"},"issue":{"href":"https://api.github.com/repos/tardis-sn/tardis/issues/309"},"comments":{"href":"https://api.github.com/repos/tardis-sn/tardis/issues/309/comments"},"review_comments":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/309/comments"},"review_comment":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tardis-sn/tardis/pulls/309/commits"},"statuses":{"href":"https://api.github.com/repos/tardis-sn/tardis/statuses/f8b8a5204c3bb1daee80b7590e91fcef1d624268"}}}}