Top "Pytest" questions

Simple powerful no-boilerplate testing with Python.

KeyError in module 'threading' after a successful py.test run

I'm running a set of tests with py.test. They pass. Yippie! But I'm getting this message: Exception KeyError: KeyError(4427427920,) …

python gevent pytest
How to generate test report using pytest?

How can I generate test report using pytest? I searched for it but whatever i got was about coverage report. …

python pytest
Using py.test with coverage doesn't include imports

For Jedi we want to generate our test coverage. There is a related question in stackoverflow, but it didn't help. …

python pytest coverage.py
Generating allure report using pytest

I am using py test allure adaptor and trying to generate input data required for allure report. But I am …

python pytest allure
Py.Test : Reporting and HTML output

This is not a technical question at all really. However, I can not locate my .HTML report that is supposed …

python reporting pytest
How to execute ipdb.set_trace() at will while running pytest tests

I'm using pytest for my test suite. While catching bugs in complex inter-components test, I would like to place import …

python pytest
pytest run tests parallel

I want to run all my pytest tests in parallel instead of sequentially. my current setup looks like: class Test1(…

python pytest
How and where does py.test find fixtures

Where and how does py.test look for fixtures? I have the same code in 2 files in the same folder. …

python fixtures pytest
How to test a function with input call?

I have a console program written in Python. It asks the user questions using the command: some_input = input('Answer …

python unit-testing testing input pytest
How to install py.test?

So I am new to Python. This may be a very foolish question, but I have no idea how to …

python installation add-on pytest instructions