Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running nosetests

Tags:

python

nose

I recently reinstalled nose to run tests on my code.

https://nose.readthedocs.org/en/latest/

I used

sudo pip install nose

and went to my project folder. The response is

-bash: nosetests: command not found.

So, I once again I uninstalled and tried installing nose with MacPorts:

sudo port install py27-nose

In my project folder, I run

nosetests-2.7 filename.py

and I get the following error:

ERROR: Failure: ImportError (No module named nose_parameterized)

What's the problem?

EDIT: More information. nose is installed. I get Successfully installed nose-1.3.6.

like image 791
JesseTrevve Avatar asked Dec 19 '22 04:12

JesseTrevve


1 Answers

So, the way I've made it work is by specifically downloading nose-parameterized

sudo pip install nose-parameterized

Previously nose would work in the project's directory, but the trials would always be very quick. For example,

Ran 0 tests in 0.002s

I'm more confused now than previously. Why would I have to download nose-parameterized individually?

like image 67
JesseTrevve Avatar answered Dec 21 '22 16:12

JesseTrevve