73
73
from domdf_python_tools .versions import Version
74
74
75
75
__all__ = [
76
- "generate_truthy_values" ,
77
- "generate_falsy_values" ,
78
- "testing_boolean_values" ,
79
- "whitespace" ,
80
- "whitespace_perms_list" ,
81
- "whitespace_perms" ,
76
+ "check_file_output" ,
77
+ "check_file_regression" ,
82
78
"count" ,
83
- "min_version" ,
79
+ "generate_falsy_values" ,
80
+ "generate_truthy_values" ,
81
+ "is_docker" ,
84
82
"max_version" ,
83
+ "min_version" ,
85
84
"only_version" ,
86
85
"not_windows" ,
87
86
"only_windows" ,
88
87
"not_pypy" ,
89
88
"only_pypy" ,
90
- "pytest_report_header" ,
91
- "PEP_563" ,
92
- "platform_boolean_factory" ,
93
89
"not_macos" ,
94
90
"only_macos" ,
95
91
"not_docker" ,
96
92
"only_docker" ,
97
- "check_file_regression" ,
98
- "check_file_output" ,
93
+ "pytest_report_header" ,
94
+ "PEP_563" ,
95
+ "original_datadir" ,
96
+ "platform_boolean_factory" ,
97
+ "testing_boolean_values" ,
98
+ "tmp_pathplus" ,
99
+ "whitespace" ,
100
+ "whitespace_perms" ,
101
+ "whitespace_perms_list"
99
102
]
100
103
101
104
MarkDecorator .__module__ = "_pytest.mark"
@@ -105,7 +108,7 @@ def generate_truthy_values(extra_truthy: Sequence = (), ratio: float = 1) -> Ite
105
108
"""
106
109
Returns an iterator of strings, integers and booleans that should be considered :py:obj:`True`.
107
110
108
- Optionally, a random selection of the values can be returned, using the ``ratio`` argument.
111
+ Optionally, a random selection of the values can be returned using the ``ratio`` argument.
109
112
110
113
:param extra_truthy: Additional values that should be considered :py:obj:`True`.
111
114
:param ratio: The ratio of the number of values to select to the total number of values.
@@ -143,7 +146,7 @@ def generate_falsy_values(extra_falsy: Sequence = (), ratio: float = 1) -> Itera
143
146
"""
144
147
Returns an iterator of strings, integers and booleans that should be considered :py:obj:`False`.
145
148
146
- Optionally, a random selection of the values can be returned, using the ``ratio`` argument.
149
+ Optionally, a random selection of the values can be returned using the ``ratio`` argument.
147
150
148
151
:param extra_falsy: Additional values that should be considered :py:obj:`True`.
149
152
:param ratio: The ratio of the number of values to select to the total number of values.
@@ -189,7 +192,7 @@ def testing_boolean_values(
189
192
The parametrized arguments are ``boolean_string`` for the input value,
190
193
and ``expected_boolean`` for the expected output.
191
194
192
- Optionally, a random selection of the values can be returned, using the ``ratio`` argument.
195
+ Optionally, a random selection of the values can be returned using the ``ratio`` argument.
193
196
194
197
:param extra_truthy: Additional values that should be considered :py:obj:`True`.
195
198
:param extra_falsy: Additional values that should be considered :py:obj:`False`.
@@ -358,6 +361,7 @@ def platform_boolean_factory(
358
361
:param platform:
359
362
:param versionadded:
360
363
:param module: The module to set the function as belonging to in ``__module__``.
364
+ If :py:obj:`None` ``__module__`` is set to ``'domdf_python_tools.testing'``.
361
365
362
366
:return: 2-element tuple of ``not_function``, ``only_function``.
363
367
@@ -534,6 +538,7 @@ def check_file_output(
534
538
:param filename:
535
539
:param file_regression: The file regression fixture for the test.
536
540
:param extension: The extension of the reference file.
541
+ If :py:obj:`None` the extension is determined from ``filename``.
537
542
:param newline: Controls how universal newlines mode works. See :func:`open`.
538
543
:param \*\*kwargs: Additional keyword arguments passed to :meth:`.FileRegressionFixture.check`.
539
544
0 commit comments