{"action":"created","issue":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/738","labels_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/738/labels{/name}","comments_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/738/comments","events_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/738/events","html_url":"https://github.com/jorgenschaefer/elpy/issues/738","id":121596288,"number":738,"title":"Where to put the test_*.py files? ","user":{"login":"yitang","id":6054101,"avatar_url":"https://avatars.githubusercontent.com/u/6054101?v=3","gravatar_id":"","url":"https://api.github.com/users/yitang","html_url":"https://github.com/yitang","followers_url":"https://api.github.com/users/yitang/followers","following_url":"https://api.github.com/users/yitang/following{/other_user}","gists_url":"https://api.github.com/users/yitang/gists{/gist_id}","starred_url":"https://api.github.com/users/yitang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yitang/subscriptions","organizations_url":"https://api.github.com/users/yitang/orgs","repos_url":"https://api.github.com/users/yitang/repos","events_url":"https://api.github.com/users/yitang/events{/privacy}","received_events_url":"https://api.github.com/users/yitang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jorgenschaefer/elpy/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/milestones/19","html_url":"https://github.com/jorgenschaefer/elpy/milestones/v1.11","labels_url":"https://api.github.com/repos/jorgenschaefer/elpy/milestones/19/labels","id":1346285,"number":19,"title":"v1.11","description":"","creator":{"login":"jorgenschaefer","id":2500270,"avatar_url":"https://avatars.githubusercontent.com/u/2500270?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgenschaefer","html_url":"https://github.com/jorgenschaefer","followers_url":"https://api.github.com/users/jorgenschaefer/followers","following_url":"https://api.github.com/users/jorgenschaefer/following{/other_user}","gists_url":"https://api.github.com/users/jorgenschaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgenschaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgenschaefer/subscriptions","organizations_url":"https://api.github.com/users/jorgenschaefer/orgs","repos_url":"https://api.github.com/users/jorgenschaefer/repos","events_url":"https://api.github.com/users/jorgenschaefer/events{/privacy}","received_events_url":"https://api.github.com/users/jorgenschaefer/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":13,"state":"open","created_at":"2015-10-09T10:30:01Z","updated_at":"2015-12-11T09:05:31Z","due_on":"2016-01-30T23:00:00Z","closed_at":null},"comments":4,"created_at":"2015-12-10T22:53:14Z","updated_at":"2015-12-11T15:48:54Z","closed_at":null,"body":"Hi, thanks for writing this awesome package. It helps me to pick up python quicker. \r\n\r\nI have a config.py file in the src folder, and the unite test code is saved in **src/tests/test_config.py**. In the config.py buffer, I press C-c C-t, it runs a unit test and get this output: \r\n\r\n```\r\nCompilation started at Thu Dec 10 21:16:24\r\n\r\npython -m unittest discover\r\n\r\n----------------------------------------------------------------------\r\nRan 0 tests in 0.000s\r\n\r\nOK\r\n\r\nCompilation finished at Thu Dec 10 21:16:24\r\n```\r\n\r\nI don't know what elpy did in this case but I am sure it doesn't run the src/tests/test_config.py file. \r\n\r\nIf I move the test_config.py to src folder (**src/test_config.py**), then pressing C-c C-t runs the right unit testing.\r\n\r\nIs there a configurable variable that is used to tell elpy where the testing folder is? I don't want the src folder is full of test_* files. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/comments/163969991","html_url":"https://github.com/jorgenschaefer/elpy/issues/738#issuecomment-163969991","issue_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/738","id":163969991,"user":{"login":"jorgenschaefer","id":2500270,"avatar_url":"https://avatars.githubusercontent.com/u/2500270?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgenschaefer","html_url":"https://github.com/jorgenschaefer","followers_url":"https://api.github.com/users/jorgenschaefer/followers","following_url":"https://api.github.com/users/jorgenschaefer/following{/other_user}","gists_url":"https://api.github.com/users/jorgenschaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgenschaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgenschaefer/subscriptions","organizations_url":"https://api.github.com/users/jorgenschaefer/orgs","repos_url":"https://api.github.com/users/jorgenschaefer/repos","events_url":"https://api.github.com/users/jorgenschaefer/events{/privacy}","received_events_url":"https://api.github.com/users/jorgenschaefer/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T15:48:54Z","updated_at":"2015-12-11T15:48:54Z","body":"> It seems elpy use python2 to run the testing although the `elpy-rpc-python-command` variable is set to `python3`.\r\n\r\nYou can adjust `elpy-test-discover-runner-command` to tell Elpy which Python command to run, although I can highly recommend using virtualenvs to make `python` run the correct interpreter for each project! :-)"}}