]> git.ipfire.org Git - thirdparty/patchwork.git/commit
tests: Remove 'default_states' fixture requirement
authorStephen Finucane <stephen.finucane@intel.com>
Thu, 30 Jun 2016 17:30:26 +0000 (18:30 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 12 Jul 2016 14:51:35 +0000 (15:51 +0100)
commit1fa6756bbfc251fe069ad68b358b32b5181992c3
treeb3c975598cf75ae3bc2fafbfe853f252b9b7b266
parente4f714b7e041216c6227710da778adf91b08a84f
tests: Remove 'default_states' fixture requirement

The 'default_states' fixture is used in many tests. However, the
'default_states' are merely suggestions for various States, and the
names themselves have no meaning from a patchwork perspective. In
addition, these fixtures significantly increase run time of the tests.

Resolve this by creating new State objects on demand, rather than
using versions provided by the fixture.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
15 files changed:
patchwork/tests/test_bundles.py
patchwork/tests/test_checks.py
patchwork/tests/test_detail.py
patchwork/tests/test_encodings.py
patchwork/tests/test_expiry.py
patchwork/tests/test_list.py
patchwork/tests/test_mboxviews.py
patchwork/tests/test_notifications.py
patchwork/tests/test_parser.py
patchwork/tests/test_rest_api.py
patchwork/tests/test_tags.py
patchwork/tests/test_updates.py
patchwork/tests/test_user.py
patchwork/tests/test_xmlrpc.py
patchwork/tests/utils.py