python - How do I use pytest with virtualenv? -


i installed pytest virtualenv , running virtual env, not using packages installed in virtual env. instead using main system packages. (using "python -m unittest discover", can run tests right python , packages, want use py.test framework.)

is possible py.test not running pytest inside virtualenv , have specify pytest run?

how py.test use python , packages in virtualenv?

also, since have several pythons on system, how tell python pytest using? automatically use python within virtualenv, or have specify somehow?

inside environment, may try

python -m pytest 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -