-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pytest_cases to simplify parametrization of decomon inputs
We use pytest_cases to get union of fixture and thus define a single fixture to generate all kind of inputs for decomon/backwad layers: - 1d - multid - images These inputs are parametrized via several parameters (dc_decomp, mode, n, odd, data_format) depending of the kind of inputs. These well managed by the fixture union. We can also limit the cases by setting the value of mode, dc_decomp, ... in a parameter of a given test. We make use of this to test backward layers on all values of n, odd, ... without having to explicitely list all cases.
- Loading branch information
Showing
5 changed files
with
123 additions
and
157 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
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
Oops, something went wrong.