Re: [Pydev-users] importing test code, that is below normal code

2015-12-08 Thread peter
On 12/08/2015 01:29 PM, Fabio Zadrozny wrote: On Tue, Dec 8, 2015 at 10:16 AM, peter > wrote: i should have posted the error message, lets try it again: project looks like this: http://erntehelfer.ddns.net/tmp/test.png since i used the pydev wi

Re: [Pydev-users] importing test code, that is below normal code

2015-12-08 Thread Fabio Zadrozny
On Tue, Dec 8, 2015 at 10:16 AM, peter wrote: > i should have posted the error message, lets try it again: > > project looks like this: > http://erntehelfer.ddns.net/tmp/test.png > > since i used the pydev wizard to create the project, the files should be > in the PYTHONPATH. > > now i run the fi

Re: [Pydev-users] importing test code, that is below normal code

2015-12-08 Thread peter
i should have posted the error message, lets try it again: project looks like this: http://erntehelfer.ddns.net/tmp/test.png since i used the pydev wizard to create the project, the files should be in the PYTHONPATH. now i run the file: distance_test.py as python unit test error i get: Trac

Re: [Pydev-users] importing test code, that is below normal code

2015-12-08 Thread Nathan Schneider
Also note that hyphens are invalid in module names without special tricks: http://stackoverflow.com/questions/7583652/python-module-with-a-dash-or-hyphen-in-its-name . Best, Nathan On Tue, Dec 8, 2015 at 11:47 AM, Fabio Zadrozny wrote: > I'm not sure I understood what you meant, so, let me try

Re: [Pydev-users] importing test code, that is below normal code

2015-12-08 Thread Fabio Zadrozny
I'm not sure I understood what you meant, so, let me try to guess here... In PyDev you just need to set the source folders (which are the folders in your PYTHONPATH) -- see: http://www.pydev.org/manual_101_project_conf2.html for details Then you can run the file with F9, or if it's a test case wi

[Pydev-users] importing test code, that is below normal code

2015-12-08 Thread peter
hi, from the commandline in can run: python -m code/tests/distance_test in the test class i got: from code.find-1-motif-brute-force import y,x,z tests are under tests, and code is in code. how can i do this with eclipse/pydev? --