-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some issues running integration tests with pytest #90
Comments
I forgot to add that I tried the following after some Googling:
|
ok sorry I realized that actually the "[test]" part in the README.md is not optional... the syntax sidetracked me a little bit. I now did:
Should I install the coverage 4.x ? |
Read the .travisci steps but I think you’re missing the test dependencies; i.e.:
pip install -e .[test]
Sent on the run; please excuse my brevity.
… On 24 Dec 2019, at 12:32, Francesco Montorsi ***@***.***> wrote:
Hi,
I'm not an expert of pytest and I'm trying to run integration tests.
I'm running them on Ubuntu 18.04. Since nexus3-cli is using Python3 and the distro defaults to Python2 I did the following
$ virtualenv -p /usr/bin/python3 py3env
$ source py3env/bin/activate
$ pip --version # I have pip 19.3.1 from /home/francesco/work/nexus3-cli/py3env/lib/python3.6/site-packages/pip (python 3.6)
$ pip install -e .
$ pip install pytest faker
$ docker run -d --rm -p 127.0.0.1:8081:8081 --name nexus sonatype/nexus3
$ ./tests/wait-for-nexus.sh # the Nexus instance takes a while to be ready
$ ./tests/nexus-login $(docker exec nexus cat /nexus-data/admin.password)
$ pytest -m integration
stty: 'standard input': Inappropriate ioctl for device
ImportError while loading conftest '/home/francesco/work/nexus3-cli/tests/conftest.py'.
tests/conftest.py:60: in <module>
@pytest.helpers.register
E AttributeError: module 'pytest' has no attribute 'helpers'
what am I missing?
I have pytest == 5.3.2 and Faker==3.0.0...
thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
right thanks! however the problem is that coverage 5.x seems incompatible with coverage 4.x... maybe the test_requires list should be adjusted to ensure 4.x is used... |
Hi,
I'm not an expert of pytest and I'm trying to run integration tests.
I'm running them on Ubuntu 18.04. Since nexus3-cli is using Python3 and the distro defaults to Python2 I did the following
what am I missing?
I have pytest == 5.3.2 and Faker==3.0.0...
thanks
The text was updated successfully, but these errors were encountered: