{"action":"created","comment":{"url":"https://api.github.com/repos/it-muslim/QuranWords/pulls/comments/236549183","pull_request_review_id":178494198,"id":236549183,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjU0OTE4Mw==","diff_hunk":"@@ -0,0 +1,216 @@\n+import shutil\n+import tempfile\n+from django.db import connection\n+from django.core import exceptions\n+from django.core.files import File\n+from django.conf import settings\n+from django.test import TestCase, SimpleTestCase\n+from .models import Ayah, Reciter, Recitation\n+from .fields import SegmentsField\n+\n+\n+class SegmentsFieldTestCase(TestCase):\n+    '''Test for SegmentsField'''\n+\n+    def setUp(self):\n+        # Create a temporary directory\n+        self.test_dir = tempfile.mkdtemp()\n+        self._original_media_root = settings.MEDIA_ROOT\n+        settings.MEDIA_ROOT = self.test_dir\n+        # get the 93rd ayah from the surah Al-Baqara\n+        self.ayah_2_93 = Ayah.objects.get(pk=100)\n+        # create a temporary audio\n+        file = tempfile.NamedTemporaryFile(suffix='.mp3')\n+        self.audio_ayah = File(file, name=file.name)\n+        # create a reciter\n+        self.husari = Reciter.objects.create(\n+            name=\"Mahmud Kh. al-Husary\")\n+\n+    def tearDown(self):\n+        # Delete a temporary directory\n+        shutil.rmtree(self.test_dir)\n+        settings.MEDIA_ROOT = self._original_media_root\n+\n+    def test_refresh_segments(self):","path":"quran/test_fields.py","position":34,"original_position":34,"commit_id":"5009ce29198371021cfaac027654a74cd547ef22","original_commit_id":"5009ce29198371021cfaac027654a74cd547ef22","user":{"login":"Jihadik","id":11528067,"node_id":"MDQ6VXNlcjExNTI4MDY3","avatar_url":"https://avatars1.githubusercontent.com/u/11528067?v=4","gravatar_id":"","url":"https://api.github.com/users/Jihadik","html_url":"https://github.com/Jihadik","followers_url":"https://api.github.com/users/Jihadik/followers","following_url":"https://api.github.com/users/Jihadik/following{/other_user}","gists_url":"https://api.github.com/users/Jihadik/gists{/gist_id}","starred_url":"https://api.github.com/users/Jihadik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jihadik/subscriptions","organizations_url":"https://api.github.com/users/Jihadik/orgs","repos_url":"https://api.github.com/users/Jihadik/repos","events_url":"https://api.github.com/users/Jihadik/events{/privacy}","received_events_url":"https://api.github.com/users/Jihadik/received_events","type":"User","site_admin":false},"body":"It's a recitation test, remove.","created_at":"2018-11-27T07:46:45Z","updated_at":"2018-11-27T07:51:49Z","html_url":"https://github.com/it-muslim/QuranWords/pull/7#discussion_r236549183","pull_request_url":"https://api.github.com/repos/it-muslim/QuranWords/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/it-muslim/QuranWords/pulls/comments/236549183"},"html":{"href":"https://github.com/it-muslim/QuranWords/pull/7#discussion_r236549183"},"pull_request":{"href":"https://api.github.com/repos/it-muslim/QuranWords/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/it-muslim/QuranWords/pulls/7","id":229275211,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5Mjc1MjEx","html_url":"https://github.com/it-muslim/QuranWords/pull/7","diff_url":"https://github.com/it-muslim/QuranWords/pull/7.diff","patch_url":"https://github.com/it-muslim/QuranWords/pull/7.patch","issue_url":"https://api.github.com/repos/it-muslim/QuranWords/issues/7","number":7,"state":"open","locked":false,"title":"Work with Reciter and Recitation models","user":{"login":"mannpy","id":18081766,"node_id":"MDQ6VXNlcjE4MDgxNzY2","avatar_url":"https://avatars3.githubusercontent.com/u/18081766?v=4","gravatar_id":"","url":"https://api.github.com/users/mannpy","html_url":"https://github.com/mannpy","followers_url":"https://api.github.com/users/mannpy/followers","following_url":"https://api.github.com/users/mannpy/following{/other_user}","gists_url":"https://api.github.com/users/mannpy/gists{/gist_id}","starred_url":"https://api.github.com/users/mannpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mannpy/subscriptions","organizations_url":"https://api.github.com/users/mannpy/orgs","repos_url":"https://api.github.com/users/mannpy/repos","events_url":"https://api.github.com/users/mannpy/events{/privacy}","received_events_url":"https://api.github.com/users/mannpy/received_events","type":"User","site_admin":false},"body":"Changing models, migration files. Adding new Reciter and Recitation models.","created_at":"2018-11-08T07:44:01Z","updated_at":"2018-11-27T07:51:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfe32ad3691639342dc2afa479d6b348766e3a3a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rguliev","id":9852534,"node_id":"MDQ6VXNlcjk4NTI1MzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9852534?v=4","gravatar_id":"","url":"https://api.github.com/users/rguliev","html_url":"https://github.com/rguliev","followers_url":"https://api.github.com/users/rguliev/followers","following_url":"https://api.github.com/users/rguliev/following{/other_user}","gists_url":"https://api.github.com/users/rguliev/gists{/gist_id}","starred_url":"https://api.github.com/users/rguliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rguliev/subscriptions","organizations_url":"https://api.github.com/users/rguliev/orgs","repos_url":"https://api.github.com/users/rguliev/repos","events_url":"https://api.github.com/users/rguliev/events{/privacy}","received_events_url":"https://api.github.com/users/rguliev/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/it-muslim/QuranWords/pulls/7/commits","review_comments_url":"https://api.github.com/repos/it-muslim/QuranWords/pulls/7/comments","review_comment_url":"https://api.github.com/repos/it-muslim/QuranWords/pulls/comments{/number}","comments_url":"https://api.github.com/repos/it-muslim/QuranWords/issues/7/comments","statuses_url":"https://api.github.com/repos/it-muslim/QuranWords/statuses/5009ce29198371021cfaac027654a74cd547ef22","head":{"label":"it-muslim:Models","ref":"Models","sha":"5009ce29198371021cfaac027654a74cd547ef22","user":{"login":"it-muslim","id":38845319,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODQ1MzE5","avatar_url":"https://avatars0.githubusercontent.com/u/38845319?v=4","gravatar_id":"","url":"https://api.github.com/users/it-muslim","html_url":"https://github.com/it-muslim","followers_url":"https://api.github.com/users/it-muslim/followers","following_url":"https://api.github.com/users/it-muslim/following{/other_user}","gists_url":"https://api.github.com/users/it-muslim/gists{/gist_id}","starred_url":"https://api.github.com/users/it-muslim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-muslim/subscriptions","organizations_url":"https://api.github.com/users/it-muslim/orgs","repos_url":"https://api.github.com/users/it-muslim/repos","events_url":"https://api.github.com/users/it-muslim/events{/privacy}","received_events_url":"https://api.github.com/users/it-muslim/received_events","type":"Organization","site_admin":false},"repo":{"id":146659405,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2NTk0MDU=","name":"QuranWords","full_name":"it-muslim/QuranWords","private":false,"owner":{"login":"it-muslim","id":38845319,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODQ1MzE5","avatar_url":"https://avatars0.githubusercontent.com/u/38845319?v=4","gravatar_id":"","url":"https://api.github.com/users/it-muslim","html_url":"https://github.com/it-muslim","followers_url":"https://api.github.com/users/it-muslim/followers","following_url":"https://api.github.com/users/it-muslim/following{/other_user}","gists_url":"https://api.github.com/users/it-muslim/gists{/gist_id}","starred_url":"https://api.github.com/users/it-muslim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-muslim/subscriptions","organizations_url":"https://api.github.com/users/it-muslim/orgs","repos_url":"https://api.github.com/users/it-muslim/repos","events_url":"https://api.github.com/users/it-muslim/events{/privacy}","received_events_url":"https://api.github.com/users/it-muslim/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/it-muslim/QuranWords","description":"Quran Words Project","fork":false,"url":"https://api.github.com/repos/it-muslim/QuranWords","forks_url":"https://api.github.com/repos/it-muslim/QuranWords/forks","keys_url":"https://api.github.com/repos/it-muslim/QuranWords/keys{/key_id}","collaborators_url":"https://api.github.com/repos/it-muslim/QuranWords/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/it-muslim/QuranWords/teams","hooks_url":"https://api.github.com/repos/it-muslim/QuranWords/hooks","issue_events_url":"https://api.github.com/repos/it-muslim/QuranWords/issues/events{/number}","events_url":"https://api.github.com/repos/it-muslim/QuranWords/events","assignees_url":"https://api.github.com/repos/it-muslim/QuranWords/assignees{/user}","branches_url":"https://api.github.com/repos/it-muslim/QuranWords/branches{/branch}","tags_url":"https://api.github.com/repos/it-muslim/QuranWords/tags","blobs_url":"https://api.github.com/repos/it-muslim/QuranWords/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/it-muslim/QuranWords/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/it-muslim/QuranWords/git/refs{/sha}","trees_url":"https://api.github.com/repos/it-muslim/QuranWords/git/trees{/sha}","statuses_url":"https://api.github.com/repos/it-muslim/QuranWords/statuses/{sha}","languages_url":"https://api.github.com/repos/it-muslim/QuranWords/languages","stargazers_url":"https://api.github.com/repos/it-muslim/QuranWords/stargazers","contributors_url":"https://api.github.com/repos/it-muslim/QuranWords/contributors","subscribers_url":"https://api.github.com/repos/it-muslim/QuranWords/subscribers","subscription_url":"https://api.github.com/repos/it-muslim/QuranWords/subscription","commits_url":"https://api.github.com/repos/it-muslim/QuranWords/commits{/sha}","git_commits_url":"https://api.github.com/repos/it-muslim/QuranWords/git/commits{/sha}","comments_url":"https://api.github.com/repos/it-muslim/QuranWords/comments{/number}","issue_comment_url":"https://api.github.com/repos/it-muslim/QuranWords/issues/comments{/number}","contents_url":"https://api.github.com/repos/it-muslim/QuranWords/contents/{+path}","compare_url":"https://api.github.com/repos/it-muslim/QuranWords/compare/{base}...{head}","merges_url":"https://api.github.com/repos/it-muslim/QuranWords/merges","archive_url":"https://api.github.com/repos/it-muslim/QuranWords/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/it-muslim/QuranWords/downloads","issues_url":"https://api.github.com/repos/it-muslim/QuranWords/issues{/number}","pulls_url":"https://api.github.com/repos/it-muslim/QuranWords/pulls{/number}","milestones_url":"https://api.github.com/repos/it-muslim/QuranWords/milestones{/number}","notifications_url":"https://api.github.com/repos/it-muslim/QuranWords/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/it-muslim/QuranWords/labels{/name}","releases_url":"https://api.github.com/repos/it-muslim/QuranWords/releases{/id}","deployments_url":"https://api.github.com/repos/it-muslim/QuranWords/deployments","created_at":"2018-08-29T21:16:21Z","updated_at":"2018-11-08T04:31:56Z","pushed_at":"2018-11-26T15:45:14Z","git_url":"git://github.com/it-muslim/QuranWords.git","ssh_url":"git@github.com:it-muslim/QuranWords.git","clone_url":"https://github.com/it-muslim/QuranWords.git","svn_url":"https://github.com/it-muslim/QuranWords","homepage":null,"size":2640,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"it-muslim:master","ref":"master","sha":"25a194b3cd6ff348da1bc1cddb2e9fdfa505f313","user":{"login":"it-muslim","id":38845319,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODQ1MzE5","avatar_url":"https://avatars0.githubusercontent.com/u/38845319?v=4","gravatar_id":"","url":"https://api.github.com/users/it-muslim","html_url":"https://github.com/it-muslim","followers_url":"https://api.github.com/users/it-muslim/followers","following_url":"https://api.github.com/users/it-muslim/following{/other_user}","gists_url":"https://api.github.com/users/it-muslim/gists{/gist_id}","starred_url":"https://api.github.com/users/it-muslim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-muslim/subscriptions","organizations_url":"https://api.github.com/users/it-muslim/orgs","repos_url":"https://api.github.com/users/it-muslim/repos","events_url":"https://api.github.com/users/it-muslim/events{/privacy}","received_events_url":"https://api.github.com/users/it-muslim/received_events","type":"Organization","site_admin":false},"repo":{"id":146659405,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2NTk0MDU=","name":"QuranWords","full_name":"it-muslim/QuranWords","private":false,"owner":{"login":"it-muslim","id":38845319,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODQ1MzE5","avatar_url":"https://avatars0.githubusercontent.com/u/38845319?v=4","gravatar_id":"","url":"https://api.github.com/users/it-muslim","html_url":"https://github.com/it-muslim","followers_url":"https://api.github.com/users/it-muslim/followers","following_url":"https://api.github.com/users/it-muslim/following{/other_user}","gists_url":"https://api.github.com/users/it-muslim/gists{/gist_id}","starred_url":"https://api.github.com/users/it-muslim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-muslim/subscriptions","organizations_url":"https://api.github.com/users/it-muslim/orgs","repos_url":"https://api.github.com/users/it-muslim/repos","events_url":"https://api.github.com/users/it-muslim/events{/privacy}","received_events_url":"https://api.github.com/users/it-muslim/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/it-muslim/QuranWords","description":"Quran Words Project","fork":false,"url":"https://api.github.com/repos/it-muslim/QuranWords","forks_url":"https://api.github.com/repos/it-muslim/QuranWords/forks","keys_url":"https://api.github.com/repos/it-muslim/QuranWords/keys{/key_id}","collaborators_url":"https://api.github.com/repos/it-muslim/QuranWords/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/it-muslim/QuranWords/teams","hooks_url":"https://api.github.com/repos/it-muslim/QuranWords/hooks","issue_events_url":"https://api.github.com/repos/it-muslim/QuranWords/issues/events{/number}","events_url":"https://api.github.com/repos/it-muslim/QuranWords/events","assignees_url":"https://api.github.com/repos/it-muslim/QuranWords/assignees{/user}","branches_url":"https://api.github.com/repos/it-muslim/QuranWords/branches{/branch}","tags_url":"https://api.github.com/repos/it-muslim/QuranWords/tags","blobs_url":"https://api.github.com/repos/it-muslim/QuranWords/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/it-muslim/QuranWords/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/it-muslim/QuranWords/git/refs{/sha}","trees_url":"https://api.github.com/repos/it-muslim/QuranWords/git/trees{/sha}","statuses_url":"https://api.github.com/repos/it-muslim/QuranWords/statuses/{sha}","languages_url":"https://api.github.com/repos/it-muslim/QuranWords/languages","stargazers_url":"https://api.github.com/repos/it-muslim/QuranWords/stargazers","contributors_url":"https://api.github.com/repos/it-muslim/QuranWords/contributors","subscribers_url":"https://api.github.com/repos/it-muslim/QuranWords/subscribers","subscription_url":"https://api.github.com/repos/it-muslim/QuranWords/subscription","commits_url":"https://api.github.com/repos/it-muslim/QuranWords/commits{/sha}","git_commits_url":"https://api.github.com/repos/it-muslim/QuranWords/git/commits{/sha}","comments_url":"https://api.github.com/repos/it-muslim/QuranWords/comments{/number}","issue_comment_url":"https://api.github.com/repos/it-muslim/QuranWords/issues/comments{/number}","contents_url":"https://api.github.com/repos/it-muslim/QuranWords/contents/{+path}","compare_url":"https://api.github.com/repos/it-muslim/QuranWords/compare/{base}...{head}","merges_url":"https://api.github.com/repos/it-muslim/QuranWords/merges","archive_url":"https://api.github.com/repos/it-muslim/QuranWords/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/it-muslim/QuranWords/downloads","issues_url":"https://api.github.com/repos/it-muslim/QuranWords/issues{/number}","pulls_url":"https://api.github.com/repos/it-muslim/QuranWords/pulls{/number}","milestones_url":"https://api.github.com/repos/it-muslim/QuranWords/milestones{/number}","notifications_url":"https://api.github.com/repos/it-muslim/QuranWords/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/it-muslim/QuranWords/labels{/name}","releases_url":"https://api.github.com/repos/it-muslim/QuranWords/releases{/id}","deployments_url":"https://api.github.com/repos/it-muslim/QuranWords/deployments","created_at":"2018-08-29T21:16:21Z","updated_at":"2018-11-08T04:31:56Z","pushed_at":"2018-11-26T15:45:14Z","git_url":"git://github.com/it-muslim/QuranWords.git","ssh_url":"git@github.com:it-muslim/QuranWords.git","clone_url":"https://github.com/it-muslim/QuranWords.git","svn_url":"https://github.com/it-muslim/QuranWords","homepage":null,"size":2640,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/it-muslim/QuranWords/pulls/7"},"html":{"href":"https://github.com/it-muslim/QuranWords/pull/7"},"issue":{"href":"https://api.github.com/repos/it-muslim/QuranWords/issues/7"},"comments":{"href":"https://api.github.com/repos/it-muslim/QuranWords/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/it-muslim/QuranWords/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/it-muslim/QuranWords/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/it-muslim/QuranWords/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/it-muslim/QuranWords/statuses/5009ce29198371021cfaac027654a74cd547ef22"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Jihadik"}}