-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fixture fails if HOME is not set #37
Comments
@gdetrez what system you're running your tests on? |
Can't find what does the rabbitmq looks for in HOME unfortuantely. Not sure though if this can be treated like a standard config option,,,, |
@fizyk from the error message, it looks like it's I run my tests on ubuntu, more specifically in a ubuntu docker image. |
this doc shows https://marketplace.automic.com/details/rabbitmq-official-docker-image there's a |
test setup failed
...............virtualenvs\python-C16yBDVe\lib\site-packages\pytest_rabbitmq\factories\client.py:102: ...............virtualenvs\python-C16yBDVe\lib\site-packages\pytest_rabbitmq\factories\process.py:112: in rabbitmq_proc_fixture self = <pytest_rabbitmq.factories.executor.RabbitMqExecutor: "/usr/lib/r..." 0x273161ff5e0>
E mirakuru.exceptions.ProcessExitedWithError: The process invoked by the <pytest_rabbitmq.factories.executor.RabbitMqExecutor: "/usr/lib/rabbitmq/bin/rabbitmq-server" 0x273161ff5e0> executor has exited with a non-zero code: 1. ...............virtualenvs\python-C16yBDVe\lib\site-packages\mirakuru\base.py:546: ProcessExitedWithError ============================== 1 error in 5.41s =============================== Process finished with exit code 1 I have installed pytest-rabbitmq latest version I want to unit test my python pika rabbitmq client .After lot of googling I came here why It is asking to set path ? I am using windows machine I want to test code with rabbitmq client from pytest-rabbitmq My question is will it create same rabbitmq client with all the connections ? If not how it works actually ? |
@PrasadRajuChekuri for clarity, it would be good to create separate issue. Plugin isn't tested on WIndows. But in case, you use connection from the plugin to set up queue and check it's state after the test (run asserts) and at the same time, you can use any different client to use the queue in your own code. Both connections are disjoint but to the same instance. |
What action do you want to perform
Run any tests with the
rabbitmq
fixture using tox. E.g.:What are the results
Exception:
What are the expected results
Test should pass
It seems that rabbitmq requires
HOME
to be set buttox
unsets all environment variables. Maybe the fixture could setHOME
to a safe location to avoid the problem.A workarrout is to set
HOME
intox.ini
:The text was updated successfully, but these errors were encountered: