{"id":104,"date":"2009-11-26T22:09:25","date_gmt":"2009-11-27T04:09:25","guid":{"rendered":"http:\/\/www.insomnihack.com\/?p=104"},"modified":"2009-12-16T23:31:57","modified_gmt":"2009-12-17T05:31:57","slug":"nose-fix-nosetests-finding-0-tests","status":"publish","type":"post","link":"http:\/\/www.insomnihack.com\/?p=104","title":{"rendered":"Nose &#8211; Fix nosetests finding 0 tests"},"content":{"rendered":"<p>I ran into an odd problem with <a href=\"http:\/\/somethingaboutorange.com\/mrl\/projects\/nose\/0.11.1\/usage.html\">nosetests<\/a> not finding my unit test files after a git pull. After a little googling, I <a href=\"http:\/\/www.siafoo.net\/article\/61\">found<\/a> someone who&#8217;d had similar issues with the permissions of their test files getting changed. For whatever reason (perhaps pushing from <a href=\"http:\/\/www.cygwin.com\/\">Cygwin<\/a> on a Windows box?), my git pull had set the execution bit on my test files.<\/p>\n<p>Typically, nosetests ignores executable files unless you pass it the <span><tt><a href=\"http:\/\/somethingaboutorange.com\/mrl\/projects\/nose\/0.11.1\/usage.html#cmdoption--exe\">--exe<\/a><\/tt><\/span> command line option. For now, I ran a <span><tt>chmod -x path\/to\/test.py<\/tt><\/span> to make the file non-executable again. I&#8217;m going to have to keep an eye on this to see if it reoccurs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I ran into an odd problem with nosetests not finding my unit test files after a git pull. After a little googling, I found someone who&#8217;d had similar issues with the permissions of their test files getting changed. For whatever reason (perhaps pushing from Cygwin on a Windows box?), my git pull had set the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6,14],"_links":{"self":[{"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/posts\/104"}],"collection":[{"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":0,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}