-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use parameterized to enable parallelisation of slow tests
We can't use pytest's parameterisation here as this test is a unittest-style test, to which pytest does not support applying parameterisation. Instead we can use the separate parameterized package which offers parameterisation on plain unittest tests, including when run under pytest. Happily this also plays nicely with pytest-xdist. As the resulting test functions are actually separate functions on the class, xdist is able to then spread the work between workers.
- Loading branch information
1 parent
5845828
commit b40ed6d
Showing
2 changed files
with
46 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters