Simple powerful no-boilerplate testing with Python.
I recently discovered pytest. It seems great. However, I feel the documentation could be better. I'm trying to understand what …
python testing pytestI want to run additional setup and teardown checks before and after each test in my test suite. I've looked …
python testing pytest test-fixtureI would like to put some logging statements within test function to examine some state variables. I have the following …
python logging pytestHow to do assert almost equal with py.test for floats without resorting to something like: assert x - 0.00001 <= …
python unit-testing pytestBefore I start executing the tests in my Python project, I read some environment variables and set some variables with …
pytestHow do you mock a readonly property with mock? I tried: setattr(obj.__class__, 'property_to_be_mocked', mock.Mock()) …
python unit-testing mocking pytestI'm trying to figure out how to get python setup.py test to run the equivalent of python -m unittest …
python unit-testing nose pytest unittest2I have a code and I need to pass the arguments like name from terminal. Here is my code and …
python pytestI tried to use the norecursedirs option inside setup.cfg to tell py.test not to collect tests from certain …
python unit-testing pytestLet's assume we have smth like that : import py, pytest ERROR1 = ' --- Error : value < 5! ---' ERROR2 = ' --- …
python pytest raise