{"action":"created","issue":{"url":"https://api.github.com/repos/graphql-python/graphene-django/issues/54","repository_url":"https://api.github.com/repos/graphql-python/graphene-django","labels_url":"https://api.github.com/repos/graphql-python/graphene-django/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/graphql-python/graphene-django/issues/54/comments","events_url":"https://api.github.com/repos/graphql-python/graphene-django/issues/54/events","html_url":"https://github.com/graphql-python/graphene-django/pull/54","id":188923716,"number":54,"title":"Add `pytest-runner` and test-->pytest alias to make tests run as documented","user":{"login":"dukebody","id":41953,"avatar_url":"https://avatars.githubusercontent.com/u/41953?v=3","gravatar_id":"","url":"https://api.github.com/users/dukebody","html_url":"https://github.com/dukebody","followers_url":"https://api.github.com/users/dukebody/followers","following_url":"https://api.github.com/users/dukebody/following{/other_user}","gists_url":"https://api.github.com/users/dukebody/gists{/gist_id}","starred_url":"https://api.github.com/users/dukebody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dukebody/subscriptions","organizations_url":"https://api.github.com/users/dukebody/orgs","repos_url":"https://api.github.com/users/dukebody/repos","events_url":"https://api.github.com/users/dukebody/events{/privacy}","received_events_url":"https://api.github.com/users/dukebody/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-12T17:33:45Z","updated_at":"2016-11-12T19:04:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/graphql-python/graphene-django/pulls/54","html_url":"https://github.com/graphql-python/graphene-django/pull/54","diff_url":"https://github.com/graphql-python/graphene-django/pull/54.diff","patch_url":"https://github.com/graphql-python/graphene-django/pull/54.patch"},"body":"I recently cloned graphene-django and tried to run the tests there as documented:\r\n\r\n`python setup.py test`\r\n\r\nThat command didn't find any test:\r\n\r\n```\r\nrunning egg_info\r\nwriting requirements to graphene_django.egg-info/requires.txt\r\nwriting graphene_django.egg-info/PKG-INFO\r\nwriting top-level names to graphene_django.egg-info/top_level.txt\r\nwriting dependency_links to graphene_django.egg-info/dependency_links.txt\r\nreading manifest file 'graphene_django.egg-info/SOURCES.txt'\r\nreading manifest template 'MANIFEST.in'\r\nwriting manifest file 'graphene_django.egg-info/SOURCES.txt'\r\nrunning build_ext\r\n\r\n----------------------------------------------------------------------\r\nRan 0 tests in 0.000s\r\n```\r\n\r\n\r\nFollowing http://doc.pytest.org/en/latest/goodpractices.html#integrating-with-setuptools-python-setup-py-test-pytest-runner, `pytest-runner` was added to `setup_requires` and `test` was aliased to `pytest`. Now all test run sucessfully:\r\n\r\n```\r\n============================= test session starts ==============================\r\nplatform linux2 -- Python 2.7.12, pytest-3.0.4, py-1.4.31, pluggy-0.4.0\r\ndjango settings: django_test_settings (from ini file)\r\nrootdir: /.../graphene-django, inifile: setup.cfg\r\nplugins: django-2.9.1\r\ncollected 137 items \r\n\r\nexamples/starwars/tests/test_connections.py ..\r\nexamples/starwars/tests/test_mutation.py .\r\nexamples/starwars/tests/test_objectidentification.py .....\r\ngraphene_django/debug/tests/test_query.py ....\r\ngraphene_django/filter/tests/test_fields.py ..................\r\ngraphene_django/tests/test_command.py .\r\ngraphene_django/tests/test_converter.py .................................\r\ngraphene_django/tests/test_form_converter.py ...................\r\ngraphene_django/tests/test_forms.py ....\r\ngraphene_django/tests/test_query.py ......\r\ngraphene_django/tests/test_schema.py ....\r\ngraphene_django/tests/test_types.py .....\r\ngraphene_django/tests/test_views.py ...................................\r\n\r\n========================== 137 passed in 0.72 seconds ==========================\r\n```"},"comment":{"url":"https://api.github.com/repos/graphql-python/graphene-django/issues/comments/260141535","html_url":"https://github.com/graphql-python/graphene-django/pull/54#issuecomment-260141535","issue_url":"https://api.github.com/repos/graphql-python/graphene-django/issues/54","id":260141535,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T19:04:43Z","updated_at":"2016-11-12T19:04:43Z","body":"\n[![Coverage Status](https://coveralls.io/builds/8795235/badge)](https://coveralls.io/builds/8795235)\n\nCoverage remained the same at 92.326% when pulling **9e9a08ffe4e0296181ac8a235643e0ffeeebe692 on dukebody:add-pytest-runner** into **bb0b4fa76651ec0dd809bceadfb463596049458c on graphql-python:master**.\n"}}
{"actor":{"display_login":"coveralls"}}