You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally reported by: Tobias Wellnitz (BitBucket: dh1tw, GitHub: dh1tw)
Hi,
when running py.test (OSX 10.9 with virtualenv), py.test can't find third party projects which are installed from a local source (e.g.: pip install -e pyhamtools). However in the python console I can import modules from the project without any problems (within the same virtualenv).
project/test/test_mytest.py:
#!python
import pytest
import pyhamtools #pytest doesn't find this project
from myproject import myfunction
class TestDecodeMyData:
def test_decoding_data_correctly(self):
assert (myfunction("me")) == pyhamtools.get_user("me")
Executing pytest returns:
#!bash
================================================================ test session starts ================================================================
platform darwin -- Python 2.7.5 -- py-1.4.20 -- pytest-2.5.2
collected 0 items / 1 errors
============================= test session starts =============================
platform darwin -- Python 2.7.5 -- py-1.4.20 -- pytest-2.5.2
collected 0 items / 1 errors
=================================== ERRORS ====================================
____________ ERROR collecting test/test_decoding_skimmer_spots.py _____________
test/test_decoding_data_correctly.py:2: in <module>
> import pyhamtools
E ImportError: No module named pyhamtools
=========================== 1 error in 0.06 seconds ===========================
Original comment byAnatoly Bubenkov (BitBucket: bubenkoff, GitHub: bubenkoff):
something is for sure wrong with your virtualenv, consider recreating it from scratch: pip reports pytest 2.6.3 is installed
but console output of the pytest reports 2.5.2
Originally reported by: Tobias Wellnitz (BitBucket: dh1tw, GitHub: dh1tw)
Hi,
when running py.test (OSX 10.9 with virtualenv), py.test can't find third party projects which are installed from a local source (e.g.: pip install -e pyhamtools). However in the python console I can import modules from the project without any problems (within the same virtualenv).
project/test/test_mytest.py:
Executing pytest returns:
Dump of "pip list":
The text was updated successfully, but these errors were encountered: