{"action":"closed","issue":{"url":"https://api.github.com/repos/django-haystack/django-haystack/issues/182","labels_url":"https://api.github.com/repos/django-haystack/django-haystack/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/django-haystack/django-haystack/issues/182/comments","events_url":"https://api.github.com/repos/django-haystack/django-haystack/issues/182/events","html_url":"https://github.com/django-haystack/django-haystack/issues/182","id":133901,"number":182,"title":"Haystack is responsible for bad coverage score","user":{"login":"batiste","id":66927,"avatar_url":"https://avatars.githubusercontent.com/u/66927?v=3","gravatar_id":"","url":"https://api.github.com/users/batiste","html_url":"https://github.com/batiste","followers_url":"https://api.github.com/users/batiste/followers","following_url":"https://api.github.com/users/batiste/following{/other_user}","gists_url":"https://api.github.com/users/batiste/gists{/gist_id}","starred_url":"https://api.github.com/users/batiste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batiste/subscriptions","organizations_url":"https://api.github.com/users/batiste/orgs","repos_url":"https://api.github.com/users/batiste/repos","events_url":"https://api.github.com/users/batiste/events{/privacy}","received_events_url":"https://api.github.com/users/batiste/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/django-haystack/django-haystack/labels/Needs%20review","name":"Needs review","color":"ff9900"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2010-02-16T13:59:21Z","updated_at":"2016-01-14T21:43:43Z","closed_at":"2016-01-14T21:43:43Z","body":"When I activate haystack in my project, the coverage report becomes bad.\r\n\r\nHaystack is loading modules in my project too soon because of that the coverage doesn't count the import and function definition in my models.py. Apparently because I import those in my search_indexes.py.\r\n\r\nI use django test extensions:\r\n\r\nhttp://github.com/garethr/django-test-extensions/issues#issue/5\r\n\r\nCould be nice to find a way to not load read search_indexes.py files that early, maybe by using an registry instead?"}}