forked from flatpak/xdg-desktop-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/py: Add fixtures for specifying required templates and params
The required_templates fixtures specifies to templates which are required to be mocked by the test case. By default this is the portal implementation of the portal that's being tested. The return value is a map where the values are the parameters which will be passed to the template. The template_params fixture allows to override the parameters of templates. This is especially useful when combined with the @pytest.mark.parametrize annotation. The clipboard tests are adjusted to make use of this.
- Loading branch information
Showing
2 changed files
with
54 additions
and
31 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