The app I am working on is heavily asynchronous. The web application runs a lot of tasks through celery depending on user actions. The celery tasks themselves are capable of launching further tasks.
...

What I'm trying to achieve is to put setup code needed by certain tests inside a decorator function. I deliberately avoided setUp and tearDown methods because they are shared by all the tests inside ...

I am using pytest to run tests in multiple environments and I wanted to include that information (ideally) in an ini style config file. I would also like to override parts or all of the configuration ...

Currently pytest returns 0 when all tests are skipped. Is it possible to configure pytest return value to 'fail' when all tests are skipped? Or is it possible to get total number passed/failed tests ...

I'm new to Python and having some trouble understanding importing modules into Pytest. I solved the problem using Python 2.7 (through much searching and not much understanding). I've now switched to ...

I am using pytest-mozwebqa plugin for running some selenium tests. I want to login to the application only once for all the tests so I tried using a session scoped fixture in the conftest.py but I am ...

I am experimenting with pytest and got stuck with some unobvious behavior for me. I have session-scope fixture and use it like this:
@pytest.mark.usefixtures("myfixt")
class TestWithMyFixt(object):
...

I've created a py.test plugin, which once the tests have been collected, passes the test names into a method of a class which returns a dict of configurations.
I have a module level fixture which is ...

I read that unit-test is a brilliant feature to write better code and assert that the features of some target code stay the same. So I wanted to use it...
I am using Anaconda on my Linux machine.
I ...

I'm using pytest through Command Prompt and the results are always written in white. The color symbols are visible in Command line, but the Command line ignores them and actually writes everything in ...

I have a test that currently uses a smoke test fixture that covers a subset of the full test fixture. For one part of my testing, I'd like to use the smoke test fixture for my test, but then if I want ...

I'm currently using Python with Pytest and would like it so that whenever a test failure or test error occurs the traceback (or something similar) is saved externally so that I can later inspect it.
...

I am using pytest to do software testing lately but am coming across a problem when dynamically parameterizing test fixtures. When testing, I would like to be able to provide the option to:
A) Test a ...

The project running py.test handles calls to the Twilio API. Running py.test on a directory or a particular test file returns the test results, but also a sequence of repeated unicode characters. This ...

I am running selenium testing with two different parameters: users[A,B,C] and browsers[chrome, firefox, ie]. When py.test is done parameterizing this setup I end up with 9 versions of a single test ...

I'm running a couple of instances of pytest.main() and once they are all complete I want to quickly see the failures across all the runs without rooting through all the individual reports. How can I ...

I installed pytest-django with pip and made a test file, which uses the client fixture as per the docs, but running this gives me fixture 'client' not found. Here's my test_homepage.py:
import pytest
...

I have a scenario where being able to sub-class a base test class in py.test would make our test environment very extensible. The problem I have is I cannot override the base class's attributes and ...