{"action":"opened","issue":{"url":"https://api.github.com/repos/Zitrax/nose-dep/issues/3","labels_url":"https://api.github.com/repos/Zitrax/nose-dep/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Zitrax/nose-dep/issues/3/comments","events_url":"https://api.github.com/repos/Zitrax/nose-dep/issues/3/events","html_url":"https://github.com/Zitrax/nose-dep/issues/3","id":116525315,"number":3,"title":"nosetests fails to discover tests with nosedep enabled","user":{"login":"OscarL","id":923213,"avatar_url":"https://avatars.githubusercontent.com/u/923213?v=3","gravatar_id":"","url":"https://api.github.com/users/OscarL","html_url":"https://github.com/OscarL","followers_url":"https://api.github.com/users/OscarL/followers","following_url":"https://api.github.com/users/OscarL/following{/other_user}","gists_url":"https://api.github.com/users/OscarL/gists{/gist_id}","starred_url":"https://api.github.com/users/OscarL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OscarL/subscriptions","organizations_url":"https://api.github.com/users/OscarL/orgs","repos_url":"https://api.github.com/users/OscarL/repos","events_url":"https://api.github.com/users/OscarL/events{/privacy}","received_events_url":"https://api.github.com/users/OscarL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-12T10:49:35Z","updated_at":"2015-11-12T10:49:35Z","closed_at":null,"body":"I'm using nose 1.3.7 to run several tests, and I've just installed nose-dep 0.2 (nose and nosedep installed in a virtualenv).\r\n\r\nI have not changed my tests yet to use `@depends`.\r\n\r\nMy directory layout is like basically like this:\r\n\r\n    package/\r\n        __init__.py\r\n        some_code.py\r\n        tests/\r\n            foo/\r\n                __init__.py\r\n                test_package.py\r\n\r\nIf I do:\r\n\r\n    ~/package$ export PYTHONPATH=~/package\r\n    ~/package$ nosetests tests\r\n    ....\r\n    Ran 10 tests in 10.000s\r\n\r\nAll my tests are run properly. But as soon as I add --with-nosedep:\r\n\r\n    ~/package$ nosetests --with-nosedep tests\r\n    ....\r\n    Ran 0 tests in 0.000s\r\n\r\nThe following also works\r\n\r\n    ~/package$ nosetests tests/foo/test_package.py\r\n\r\nBut this:\r\n\r\n    ~/package$ nosetests --with-nosedep tests/foo/test_package.py\r\n\r\nI get:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/user/package/venv/bin/nosetests\", line 11, in <module>\r\n    sys.exit(run_exit())\r\n  File \"/home/user/package/venv/local/lib/python2.7/site-packages/nose/core.py\", line 121, in __init__\r\n    **extra_args)\r\n  File \"/usr/lib/python2.7/unittest/main.py\", line 95, in __init__\r\n    self.runTests()\r\n  File \"/home/user/package/venv/local/lib/python2.7/site-packages/nose/core.py\", line 207, in runTests\r\n    result = self.testRunner.run(self.test)\r\n  File \"/home/user/package/venv/local/lib/python2.7/site-packages/nose/core.py\", line 50, in run\r\n    wrapper = self.config.plugins.prepareTest(test)\r\n  File \"/home/user/package/venv/local/lib/python2.7/site-packages/nose/plugins/manager.py\", line 99, in __call__\r\n    return self.call(*arg, **kw)\r\n  File \"/home/user/package/venv/local/lib/python2.7/site-packages/nose/plugins/manager.py\", line 167, in simple\r\n    result = meth(*arg, **kw)\r\n  File \"/home/user/package/venv/local/lib/python2.7/site-packages/nosedep.py\", line 235, in prepareTest\r\n    reraise(t, v, tb)\r\n  File \"/home/user/package/venv/local/lib/python2.7/site-packages/nosedep.py\", line 230, in prepareTest\r\n    all_tests[tt.test.test.__name__] = tt\r\nAttributeError: 'Failure' object has no attribute 'test' - Due to: Failure: OSError (No such file /home/user/package/tests/foo/test_package)\r\n```\r\n\r\nBesides the somehow convoluted project layout (can't help it, not my project), am I missing something or doing it wrong? Or is this an issue on nosedep?\r\n\r\nThanks for sharing your work, looking forward to be able to use it! :-D"}}