assertpy 2.35.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- assertpy/__init__.py +87 -0
- assertpy/_clustering.py +511 -0
- assertpy/_dangling.py +505 -0
- assertpy/_engine/__init__.py +1 -0
- assertpy/_engine/_builder_check_typing.py +1365 -0
- assertpy/_engine/_capable_typing.py +772 -0
- assertpy/_engine/_check_typing.py +753 -0
- assertpy/_engine/_compare.py +983 -0
- assertpy/_engine/_compat.py +38 -0
- assertpy/_engine/_contract.py +1926 -0
- assertpy/_engine/_diff.py +1058 -0
- assertpy/_engine/_equality.py +843 -0
- assertpy/_engine/_introspection.py +729 -0
- assertpy/_engine/_membership.py +522 -0
- assertpy/_engine/_mixin_base.py +258 -0
- assertpy/_engine/_negated_typing.py +2176 -0
- assertpy/_engine/_operations.py +75 -0
- assertpy/_engine/_ordering.py +884 -0
- assertpy/_engine/_pairing.py +70 -0
- assertpy/_engine/_path.py +158 -0
- assertpy/_engine/_poll_typing.py +6039 -0
- assertpy/_engine/_require.py +312 -0
- assertpy/_engine/_size.py +31 -0
- assertpy/_engine/_text.py +39 -0
- assertpy/_engine/_typing.py +1226 -0
- assertpy/_hints.py +1213 -0
- assertpy/_inline.py +484 -0
- assertpy/_matcher_impls.py +1876 -0
- assertpy/_passes.py +249 -0
- assertpy/_renamed.py +64 -0
- assertpy/_satisfies.py +835 -0
- assertpy/_snapshot_codec.py +290 -0
- assertpy/assertpy.py +2640 -0
- assertpy/async_assertions.py +864 -0
- assertpy/base.py +862 -0
- assertpy/behave_matchers.py +96 -0
- assertpy/bytes_mixin.py +158 -0
- assertpy/collection.py +528 -0
- assertpy/contains.py +1068 -0
- assertpy/dataframe.py +200 -0
- assertpy/date.py +327 -0
- assertpy/dict.py +249 -0
- assertpy/dynamic.py +222 -0
- assertpy/errors.py +782 -0
- assertpy/exception.py +838 -0
- assertpy/extracting.py +266 -0
- assertpy/file.py +324 -0
- assertpy/helpers.py +747 -0
- assertpy/http_mixin.py +218 -0
- assertpy/json_mixin.py +1265 -0
- assertpy/matchers.py +639 -0
- assertpy/numeric.py +696 -0
- assertpy/outcome.py +163 -0
- assertpy/py.typed +0 -0
- assertpy/pytest_plugin.py +1650 -0
- assertpy/snapshot.py +1031 -0
- assertpy/string.py +803 -0
- assertpy/warning.py +137 -0
- assertpy-2.35.0.dist-info/METADATA +324 -0
- assertpy-2.35.0.dist-info/RECORD +63 -0
- assertpy-2.35.0.dist-info/WHEEL +4 -0
- assertpy-2.35.0.dist-info/entry_points.txt +2 -0
- assertpy-2.35.0.dist-info/licenses/LICENSE +28 -0
|
@@ -0,0 +1,2176 @@
|
|
|
1
|
+
"""The negation twin of every assertion protocol.
|
|
2
|
+
|
|
3
|
+
Generated by `scripts/generate_poll_protocols.py`.
|
|
4
|
+
|
|
5
|
+
Do not edit. `not_` on a view hands one of these back, and every assertion on it hands the view back:
|
|
6
|
+
`NegatedBuilder` inverts one assertion and returns the builder it wrapped, so the type has to say
|
|
7
|
+
`positive -> negated -> positive` rather than making the negation permanent.
|
|
8
|
+
|
|
9
|
+
The narrowing ladders are absent by construction. A negated `is_instance_of(str)` asserts the value is
|
|
10
|
+
*not* a string, so answering the string view promises the opposite of what was checked: that shipped,
|
|
11
|
+
typed an `int` as `str`, and all four checkers accepted it.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
16
|
+
from typing import TYPE_CHECKING, Protocol
|
|
17
|
+
|
|
18
|
+
if TYPE_CHECKING:
|
|
19
|
+
import datetime
|
|
20
|
+
import re
|
|
21
|
+
from collections.abc import Callable, Hashable, Iterable, Mapping, Sized
|
|
22
|
+
from pathlib import Path
|
|
23
|
+
from typing import Any, SupportsFloat, SupportsIndex, TypeVar, overload
|
|
24
|
+
|
|
25
|
+
from .._matcher_impls import ClassInfo, ExceptionInfo
|
|
26
|
+
from ..matchers import Matcher
|
|
27
|
+
from ._introspection import MappingLike
|
|
28
|
+
from ._typing import (
|
|
29
|
+
_U,
|
|
30
|
+
_ArrayT_co,
|
|
31
|
+
_Exc,
|
|
32
|
+
_FrameT_co,
|
|
33
|
+
_Landed,
|
|
34
|
+
_Other,
|
|
35
|
+
_P_co,
|
|
36
|
+
_T_co,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
_KeySpecs = Hashable | list[Hashable] | set[Hashable] | frozenset[Hashable]
|
|
40
|
+
|
|
41
|
+
_E = TypeVar("_E")
|
|
42
|
+
_N = TypeVar("_N", int, float)
|
|
43
|
+
_K = TypeVar("_K")
|
|
44
|
+
_V = TypeVar("_V")
|
|
45
|
+
_R = TypeVar("_R")
|
|
46
|
+
_B_co = TypeVar("_B_co", bytes, bytearray, covariant=True)
|
|
47
|
+
_U2 = TypeVar("_U2")
|
|
48
|
+
_U3 = TypeVar("_U3")
|
|
49
|
+
_Number = SupportsFloat
|
|
50
|
+
|
|
51
|
+
# the rungs below restrict `self` with the annotations `assert_that()` overloads are written with
|
|
52
|
+
_T = TypeVar("_T")
|
|
53
|
+
_P = TypeVar("_P")
|
|
54
|
+
from ._typing import (
|
|
55
|
+
_ArrayAssertion,
|
|
56
|
+
_BoolAssertion,
|
|
57
|
+
_BytesAssertion,
|
|
58
|
+
_CallableAssertion,
|
|
59
|
+
_CompletedAssertion,
|
|
60
|
+
_ComplexAssertion,
|
|
61
|
+
_CoreAssertion,
|
|
62
|
+
_DateAssertion,
|
|
63
|
+
_DateTimeAssertion,
|
|
64
|
+
_DictAssertion,
|
|
65
|
+
_ExpectedCompletionAssertion,
|
|
66
|
+
_ExpectedRaiseAssertion,
|
|
67
|
+
_ExpectedWarningAssertion,
|
|
68
|
+
_FrameAssertion,
|
|
69
|
+
_InvokedAssertion,
|
|
70
|
+
_IterableAssertion,
|
|
71
|
+
_ListAssertion,
|
|
72
|
+
_NumericAssertion,
|
|
73
|
+
_ObjectAssertion,
|
|
74
|
+
_PathAssertion,
|
|
75
|
+
_StringAssertion,
|
|
76
|
+
_TextAssertion,
|
|
77
|
+
_WarnedAssertion,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
class _NegatedStringAssertion(Protocol):
|
|
81
|
+
"""The negation twin of `_StringAssertion`."""
|
|
82
|
+
|
|
83
|
+
def satisfies(self, matcher: Matcher[str] | Callable[[str], object]) -> _StringAssertion: ...
|
|
84
|
+
def contains(self, *items: str | Matcher[str]) -> _StringAssertion: ...
|
|
85
|
+
def is_equal_to_ignoring_case(self, other: str) -> _StringAssertion: ...
|
|
86
|
+
def is_equal_to_ignoring_whitespace(self, other: str) -> _StringAssertion: ...
|
|
87
|
+
def contains_ignoring_case(self, *items: str) -> _StringAssertion: ...
|
|
88
|
+
def starts_with(self, prefix: str) -> _StringAssertion: ...
|
|
89
|
+
def starts_with_ignoring_case(self, prefix: str) -> _StringAssertion: ...
|
|
90
|
+
def ends_with(self, suffix: str) -> _StringAssertion: ...
|
|
91
|
+
def ends_with_ignoring_case(self, suffix: str) -> _StringAssertion: ...
|
|
92
|
+
def matches(self, pattern: str | re.Pattern[str]) -> _StringAssertion: ...
|
|
93
|
+
def does_not_match(self, pattern: str | re.Pattern[str]) -> _StringAssertion: ...
|
|
94
|
+
def is_alpha(self) -> _StringAssertion: ...
|
|
95
|
+
def is_digit(self) -> _StringAssertion: ...
|
|
96
|
+
def is_lower(self) -> _StringAssertion: ...
|
|
97
|
+
def is_upper(self) -> _StringAssertion: ...
|
|
98
|
+
def is_alphanumeric(self) -> _StringAssertion: ...
|
|
99
|
+
def is_whitespace(self) -> _StringAssertion: ...
|
|
100
|
+
def contains_any_of(self, *items: str) -> _StringAssertion: ...
|
|
101
|
+
def contains_none_of(self, *items: str) -> _StringAssertion: ...
|
|
102
|
+
def is_unicode(self) -> _StringAssertion: ...
|
|
103
|
+
def is_greater_than(self, other: str) -> _StringAssertion: ...
|
|
104
|
+
def is_greater_than_or_equal_to(self, other: str) -> _StringAssertion: ...
|
|
105
|
+
def is_less_than(self, other: str) -> _StringAssertion: ...
|
|
106
|
+
def is_less_than_or_equal_to(self, other: str) -> _StringAssertion: ...
|
|
107
|
+
def does_not_contain(self, *items: str | Matcher[str]) -> _StringAssertion: ...
|
|
108
|
+
def contains_only(self, *items: str | Matcher[str]) -> _StringAssertion: ...
|
|
109
|
+
def contains_sequence(self, *items: str | Matcher[str]) -> _StringAssertion: ...
|
|
110
|
+
def contains_exactly(self, *items: str | Matcher[str]) -> _StringAssertion: ...
|
|
111
|
+
def contains_exactly_in_any_order(self, *items: str | Matcher[str]) -> _StringAssertion: ...
|
|
112
|
+
def is_sorted(
|
|
113
|
+
self, key: Callable[[str], object] = ..., reverse: bool = ..., *, allow_empty: bool = ...
|
|
114
|
+
) -> _StringAssertion: ...
|
|
115
|
+
def each(
|
|
116
|
+
self, matcher: Matcher[str] | Callable[[str], object], *, allow_empty: bool = ...
|
|
117
|
+
) -> _StringAssertion: ...
|
|
118
|
+
def all_satisfy(
|
|
119
|
+
self, matcher: Matcher[str] | Callable[[str], object], *, allow_empty: bool = ...
|
|
120
|
+
) -> _StringAssertion: ...
|
|
121
|
+
def any_satisfy(self, matcher: Matcher[str] | Callable[[str], object]) -> _StringAssertion: ...
|
|
122
|
+
def none_satisfy(self, matcher: Matcher[str] | Callable[[str], object]) -> _StringAssertion: ...
|
|
123
|
+
def satisfies_exactly(self, *matchers: Matcher[str] | Callable[[str], object]) -> _StringAssertion: ...
|
|
124
|
+
def satisfies_exactly_in_any_order(
|
|
125
|
+
self, *matchers: Matcher[str] | Callable[[str], object]
|
|
126
|
+
) -> _StringAssertion: ...
|
|
127
|
+
def zip_satisfies(
|
|
128
|
+
self, other: Iterable[_Other], predicate: Callable[[str, _Other], object], *, allow_empty: bool = ...
|
|
129
|
+
) -> _StringAssertion: ...
|
|
130
|
+
def extracting_group(self, pattern: str | re.Pattern[str], group: int | str = ...) -> _StringAssertion: ...
|
|
131
|
+
def matches_with_groups(self, pattern: str | re.Pattern[str]) -> _StringAssertion: ...
|
|
132
|
+
def exists(self) -> _StringAssertion: ...
|
|
133
|
+
def does_not_exist(self) -> _StringAssertion: ...
|
|
134
|
+
def is_file(self) -> _StringAssertion: ...
|
|
135
|
+
def is_directory(self) -> _StringAssertion: ...
|
|
136
|
+
def is_named(self, filename: str) -> _StringAssertion: ...
|
|
137
|
+
def is_child_of(self, parent: object) -> _StringAssertion: ...
|
|
138
|
+
def is_readable(self) -> _StringAssertion: ...
|
|
139
|
+
def is_writable(self) -> _StringAssertion: ...
|
|
140
|
+
def is_executable(self) -> _StringAssertion: ...
|
|
141
|
+
def is_subset_of(self, *supersets: object, allow_empty: bool = ...) -> _StringAssertion: ...
|
|
142
|
+
def contains_duplicates(self) -> _StringAssertion: ...
|
|
143
|
+
def does_not_contain_duplicates(self) -> _StringAssertion: ...
|
|
144
|
+
def contains_only_once(self, *items: object) -> _StringAssertion: ...
|
|
145
|
+
def contains_in_order(self, *items: str | Matcher[str]) -> _StringAssertion: ...
|
|
146
|
+
def has_same_size_as(self, other: Sized) -> _StringAssertion: ...
|
|
147
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _StringAssertion: ...
|
|
148
|
+
def has_size_less_than(self, size: SupportsIndex) -> _StringAssertion: ...
|
|
149
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _StringAssertion: ...
|
|
150
|
+
def is_empty(self) -> _StringAssertion: ...
|
|
151
|
+
def is_not_empty(self) -> _StringAssertion: ...
|
|
152
|
+
def is_equal_to(
|
|
153
|
+
self,
|
|
154
|
+
other: object,
|
|
155
|
+
*,
|
|
156
|
+
ignore: _KeySpecs | None = ...,
|
|
157
|
+
include: _KeySpecs | None = ...,
|
|
158
|
+
tolerance: float | None = ...,
|
|
159
|
+
rel: float | None = ...,
|
|
160
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
161
|
+
ignore_null: bool = ...,
|
|
162
|
+
strict_types: bool = ...,
|
|
163
|
+
) -> _StringAssertion: ...
|
|
164
|
+
def is_not_equal_to(self, other: object) -> _StringAssertion: ...
|
|
165
|
+
def is_same_as(self, other: object) -> _StringAssertion: ...
|
|
166
|
+
def is_not_same_as(self, other: object) -> _StringAssertion: ...
|
|
167
|
+
def is_true(self) -> _StringAssertion: ...
|
|
168
|
+
def is_false(self) -> _StringAssertion: ...
|
|
169
|
+
def is_none(self) -> _StringAssertion: ...
|
|
170
|
+
def is_not_none(self) -> _StringAssertion: ...
|
|
171
|
+
def is_type_of(self, some_type: type) -> _StringAssertion: ...
|
|
172
|
+
def is_instance_of(self, some_class: ClassInfo) -> _StringAssertion: ...
|
|
173
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _StringAssertion: ...
|
|
174
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _StringAssertion: ...
|
|
175
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _StringAssertion: ...
|
|
176
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _StringAssertion: ...
|
|
177
|
+
def is_callable(self) -> _StringAssertion: ...
|
|
178
|
+
def is_not_callable(self) -> _StringAssertion: ...
|
|
179
|
+
def is_iterable(self) -> _StringAssertion: ...
|
|
180
|
+
def is_not_iterable(self) -> _StringAssertion: ...
|
|
181
|
+
def all_fields_satisfy(
|
|
182
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
183
|
+
) -> _StringAssertion: ...
|
|
184
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _StringAssertion: ...
|
|
185
|
+
def is_in(self, *items: object) -> _StringAssertion: ...
|
|
186
|
+
def is_not_in(self, *items: object) -> _StringAssertion: ...
|
|
187
|
+
def snapshot(
|
|
188
|
+
self,
|
|
189
|
+
id: str | None = ...,
|
|
190
|
+
path: str = ...,
|
|
191
|
+
*,
|
|
192
|
+
ignore: _KeySpecs | None = ...,
|
|
193
|
+
include: _KeySpecs | None = ...,
|
|
194
|
+
tolerance: float | None = ...,
|
|
195
|
+
rel: float | None = ...,
|
|
196
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
197
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
198
|
+
) -> _StringAssertion: ...
|
|
199
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _StringAssertion: ...
|
|
200
|
+
def matches_inline(
|
|
201
|
+
self,
|
|
202
|
+
expected: object = ...,
|
|
203
|
+
*,
|
|
204
|
+
ignore: _KeySpecs | None = ...,
|
|
205
|
+
include: _KeySpecs | None = ...,
|
|
206
|
+
tolerance: float | None = ...,
|
|
207
|
+
rel: float | None = ...,
|
|
208
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
209
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
210
|
+
) -> _StringAssertion: ...
|
|
211
|
+
|
|
212
|
+
class _NegatedBoolAssertion(Protocol):
|
|
213
|
+
"""The negation twin of `_BoolAssertion`."""
|
|
214
|
+
|
|
215
|
+
def is_positive(self) -> _BoolAssertion: ...
|
|
216
|
+
def is_negative(self) -> _BoolAssertion: ...
|
|
217
|
+
def is_nan(self) -> _BoolAssertion: ...
|
|
218
|
+
def is_not_nan(self) -> _BoolAssertion: ...
|
|
219
|
+
def is_inf(self) -> _BoolAssertion: ...
|
|
220
|
+
def is_not_inf(self) -> _BoolAssertion: ...
|
|
221
|
+
def is_not_between(self, low: _Number, high: _Number) -> _BoolAssertion: ...
|
|
222
|
+
def is_between(self, low: _Number, high: _Number) -> _BoolAssertion: ...
|
|
223
|
+
def is_greater_than(self, other: _Number) -> _BoolAssertion: ...
|
|
224
|
+
def is_greater_than_or_equal_to(self, other: _Number) -> _BoolAssertion: ...
|
|
225
|
+
def is_less_than(self, other: _Number) -> _BoolAssertion: ...
|
|
226
|
+
def is_less_than_or_equal_to(self, other: _Number) -> _BoolAssertion: ...
|
|
227
|
+
def is_zero(self) -> _BoolAssertion: ...
|
|
228
|
+
def is_not_zero(self) -> _BoolAssertion: ...
|
|
229
|
+
def is_equal_to(
|
|
230
|
+
self,
|
|
231
|
+
other: object,
|
|
232
|
+
*,
|
|
233
|
+
ignore: _KeySpecs | None = ...,
|
|
234
|
+
include: _KeySpecs | None = ...,
|
|
235
|
+
tolerance: float | None = ...,
|
|
236
|
+
rel: float | None = ...,
|
|
237
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
238
|
+
ignore_null: bool = ...,
|
|
239
|
+
strict_types: bool = ...,
|
|
240
|
+
) -> _BoolAssertion: ...
|
|
241
|
+
def is_not_equal_to(self, other: object) -> _BoolAssertion: ...
|
|
242
|
+
def is_same_as(self, other: object) -> _BoolAssertion: ...
|
|
243
|
+
def is_not_same_as(self, other: object) -> _BoolAssertion: ...
|
|
244
|
+
def is_true(self) -> _BoolAssertion: ...
|
|
245
|
+
def is_false(self) -> _BoolAssertion: ...
|
|
246
|
+
def is_none(self) -> _BoolAssertion: ...
|
|
247
|
+
def is_not_none(self) -> _BoolAssertion: ...
|
|
248
|
+
def is_type_of(self, some_type: type) -> _BoolAssertion: ...
|
|
249
|
+
def is_instance_of(self, some_class: ClassInfo) -> _BoolAssertion: ...
|
|
250
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _BoolAssertion: ...
|
|
251
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _BoolAssertion: ...
|
|
252
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _BoolAssertion: ...
|
|
253
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _BoolAssertion: ...
|
|
254
|
+
def is_callable(self) -> _BoolAssertion: ...
|
|
255
|
+
def is_not_callable(self) -> _BoolAssertion: ...
|
|
256
|
+
def is_iterable(self) -> _BoolAssertion: ...
|
|
257
|
+
def is_not_iterable(self) -> _BoolAssertion: ...
|
|
258
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _BoolAssertion: ...
|
|
259
|
+
def all_fields_satisfy(
|
|
260
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
261
|
+
) -> _BoolAssertion: ...
|
|
262
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _BoolAssertion: ...
|
|
263
|
+
def is_in(self, *items: object) -> _BoolAssertion: ...
|
|
264
|
+
def is_not_in(self, *items: object) -> _BoolAssertion: ...
|
|
265
|
+
def snapshot(
|
|
266
|
+
self,
|
|
267
|
+
id: str | None = ...,
|
|
268
|
+
path: str = ...,
|
|
269
|
+
*,
|
|
270
|
+
ignore: _KeySpecs | None = ...,
|
|
271
|
+
include: _KeySpecs | None = ...,
|
|
272
|
+
tolerance: float | None = ...,
|
|
273
|
+
rel: float | None = ...,
|
|
274
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
275
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
276
|
+
) -> _BoolAssertion: ...
|
|
277
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _BoolAssertion: ...
|
|
278
|
+
def matches_inline(
|
|
279
|
+
self,
|
|
280
|
+
expected: object = ...,
|
|
281
|
+
*,
|
|
282
|
+
ignore: _KeySpecs | None = ...,
|
|
283
|
+
include: _KeySpecs | None = ...,
|
|
284
|
+
tolerance: float | None = ...,
|
|
285
|
+
rel: float | None = ...,
|
|
286
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
287
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
288
|
+
) -> _BoolAssertion: ...
|
|
289
|
+
|
|
290
|
+
class _NegatedNumericAssertion(Protocol[_N]):
|
|
291
|
+
"""The negation twin of `_NumericAssertion`."""
|
|
292
|
+
|
|
293
|
+
def is_close_to(
|
|
294
|
+
self, other: _Number, tolerance: _Number | None = ..., *, rel: _Number | None = ...
|
|
295
|
+
) -> _NumericAssertion[_N]: ...
|
|
296
|
+
def is_not_close_to(
|
|
297
|
+
self, other: _Number, tolerance: _Number | None = ..., *, rel: _Number | None = ...
|
|
298
|
+
) -> _NumericAssertion[_N]: ...
|
|
299
|
+
def satisfies(self, matcher: Matcher[_N] | Callable[[_N], object]) -> _NumericAssertion[_N]: ...
|
|
300
|
+
def is_even(self) -> _NumericAssertion[_N]: ...
|
|
301
|
+
def is_odd(self) -> _NumericAssertion[_N]: ...
|
|
302
|
+
def is_divisible_by(self, divisor: SupportsIndex) -> _NumericAssertion[_N]: ...
|
|
303
|
+
def is_positive(self) -> _NumericAssertion[_N]: ...
|
|
304
|
+
def is_negative(self) -> _NumericAssertion[_N]: ...
|
|
305
|
+
def is_nan(self) -> _NumericAssertion[_N]: ...
|
|
306
|
+
def is_not_nan(self) -> _NumericAssertion[_N]: ...
|
|
307
|
+
def is_inf(self) -> _NumericAssertion[_N]: ...
|
|
308
|
+
def is_not_inf(self) -> _NumericAssertion[_N]: ...
|
|
309
|
+
def is_not_between(self, low: _Number, high: _Number) -> _NumericAssertion[_N]: ...
|
|
310
|
+
def is_between(self, low: _Number, high: _Number) -> _NumericAssertion[_N]: ...
|
|
311
|
+
def is_greater_than(self, other: _Number) -> _NumericAssertion[_N]: ...
|
|
312
|
+
def is_greater_than_or_equal_to(self, other: _Number) -> _NumericAssertion[_N]: ...
|
|
313
|
+
def is_less_than(self, other: _Number) -> _NumericAssertion[_N]: ...
|
|
314
|
+
def is_less_than_or_equal_to(self, other: _Number) -> _NumericAssertion[_N]: ...
|
|
315
|
+
def is_zero(self) -> _NumericAssertion[_N]: ...
|
|
316
|
+
def is_not_zero(self) -> _NumericAssertion[_N]: ...
|
|
317
|
+
def is_equal_to(
|
|
318
|
+
self,
|
|
319
|
+
other: object,
|
|
320
|
+
*,
|
|
321
|
+
ignore: _KeySpecs | None = ...,
|
|
322
|
+
include: _KeySpecs | None = ...,
|
|
323
|
+
tolerance: float | None = ...,
|
|
324
|
+
rel: float | None = ...,
|
|
325
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
326
|
+
ignore_null: bool = ...,
|
|
327
|
+
strict_types: bool = ...,
|
|
328
|
+
) -> _NumericAssertion[_N]: ...
|
|
329
|
+
def is_not_equal_to(self, other: object) -> _NumericAssertion[_N]: ...
|
|
330
|
+
def is_same_as(self, other: object) -> _NumericAssertion[_N]: ...
|
|
331
|
+
def is_not_same_as(self, other: object) -> _NumericAssertion[_N]: ...
|
|
332
|
+
def is_true(self) -> _NumericAssertion[_N]: ...
|
|
333
|
+
def is_false(self) -> _NumericAssertion[_N]: ...
|
|
334
|
+
def is_none(self) -> _NumericAssertion[_N]: ...
|
|
335
|
+
def is_not_none(self) -> _NumericAssertion[_N]: ...
|
|
336
|
+
def is_type_of(self, some_type: type) -> _NumericAssertion[_N]: ...
|
|
337
|
+
def is_instance_of(self, some_class: ClassInfo) -> _NumericAssertion[_N]: ...
|
|
338
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _NumericAssertion[_N]: ...
|
|
339
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _NumericAssertion[_N]: ...
|
|
340
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _NumericAssertion[_N]: ...
|
|
341
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _NumericAssertion[_N]: ...
|
|
342
|
+
def is_callable(self) -> _NumericAssertion[_N]: ...
|
|
343
|
+
def is_not_callable(self) -> _NumericAssertion[_N]: ...
|
|
344
|
+
def is_iterable(self) -> _NumericAssertion[_N]: ...
|
|
345
|
+
def is_not_iterable(self) -> _NumericAssertion[_N]: ...
|
|
346
|
+
def all_fields_satisfy(
|
|
347
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
348
|
+
) -> _NumericAssertion[_N]: ...
|
|
349
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _NumericAssertion[_N]: ...
|
|
350
|
+
def is_in(self, *items: object) -> _NumericAssertion[_N]: ...
|
|
351
|
+
def is_not_in(self, *items: object) -> _NumericAssertion[_N]: ...
|
|
352
|
+
def snapshot(
|
|
353
|
+
self,
|
|
354
|
+
id: str | None = ...,
|
|
355
|
+
path: str = ...,
|
|
356
|
+
*,
|
|
357
|
+
ignore: _KeySpecs | None = ...,
|
|
358
|
+
include: _KeySpecs | None = ...,
|
|
359
|
+
tolerance: float | None = ...,
|
|
360
|
+
rel: float | None = ...,
|
|
361
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
362
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
363
|
+
) -> _NumericAssertion[_N]: ...
|
|
364
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _NumericAssertion[_N]: ...
|
|
365
|
+
def matches_inline(
|
|
366
|
+
self,
|
|
367
|
+
expected: object = ...,
|
|
368
|
+
*,
|
|
369
|
+
ignore: _KeySpecs | None = ...,
|
|
370
|
+
include: _KeySpecs | None = ...,
|
|
371
|
+
tolerance: float | None = ...,
|
|
372
|
+
rel: float | None = ...,
|
|
373
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
374
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
375
|
+
) -> _NumericAssertion[_N]: ...
|
|
376
|
+
|
|
377
|
+
class _NegatedComplexAssertion(Protocol):
|
|
378
|
+
"""The negation twin of `_ComplexAssertion`."""
|
|
379
|
+
|
|
380
|
+
def is_zero(self) -> _ComplexAssertion: ...
|
|
381
|
+
def is_not_zero(self) -> _ComplexAssertion: ...
|
|
382
|
+
def is_equal_to(
|
|
383
|
+
self,
|
|
384
|
+
other: object,
|
|
385
|
+
*,
|
|
386
|
+
ignore: _KeySpecs | None = ...,
|
|
387
|
+
include: _KeySpecs | None = ...,
|
|
388
|
+
tolerance: float | None = ...,
|
|
389
|
+
rel: float | None = ...,
|
|
390
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
391
|
+
ignore_null: bool = ...,
|
|
392
|
+
strict_types: bool = ...,
|
|
393
|
+
) -> _ComplexAssertion: ...
|
|
394
|
+
def is_not_equal_to(self, other: object) -> _ComplexAssertion: ...
|
|
395
|
+
def is_same_as(self, other: object) -> _ComplexAssertion: ...
|
|
396
|
+
def is_not_same_as(self, other: object) -> _ComplexAssertion: ...
|
|
397
|
+
def is_true(self) -> _ComplexAssertion: ...
|
|
398
|
+
def is_false(self) -> _ComplexAssertion: ...
|
|
399
|
+
def is_none(self) -> _ComplexAssertion: ...
|
|
400
|
+
def is_not_none(self) -> _ComplexAssertion: ...
|
|
401
|
+
def is_type_of(self, some_type: type) -> _ComplexAssertion: ...
|
|
402
|
+
def is_instance_of(self, some_class: ClassInfo) -> _ComplexAssertion: ...
|
|
403
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _ComplexAssertion: ...
|
|
404
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _ComplexAssertion: ...
|
|
405
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _ComplexAssertion: ...
|
|
406
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _ComplexAssertion: ...
|
|
407
|
+
def is_callable(self) -> _ComplexAssertion: ...
|
|
408
|
+
def is_not_callable(self) -> _ComplexAssertion: ...
|
|
409
|
+
def is_iterable(self) -> _ComplexAssertion: ...
|
|
410
|
+
def is_not_iterable(self) -> _ComplexAssertion: ...
|
|
411
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _ComplexAssertion: ...
|
|
412
|
+
def all_fields_satisfy(
|
|
413
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
414
|
+
) -> _ComplexAssertion: ...
|
|
415
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _ComplexAssertion: ...
|
|
416
|
+
def is_in(self, *items: object) -> _ComplexAssertion: ...
|
|
417
|
+
def is_not_in(self, *items: object) -> _ComplexAssertion: ...
|
|
418
|
+
def snapshot(
|
|
419
|
+
self,
|
|
420
|
+
id: str | None = ...,
|
|
421
|
+
path: str = ...,
|
|
422
|
+
*,
|
|
423
|
+
ignore: _KeySpecs | None = ...,
|
|
424
|
+
include: _KeySpecs | None = ...,
|
|
425
|
+
tolerance: float | None = ...,
|
|
426
|
+
rel: float | None = ...,
|
|
427
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
428
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
429
|
+
) -> _ComplexAssertion: ...
|
|
430
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _ComplexAssertion: ...
|
|
431
|
+
def matches_inline(
|
|
432
|
+
self,
|
|
433
|
+
expected: object = ...,
|
|
434
|
+
*,
|
|
435
|
+
ignore: _KeySpecs | None = ...,
|
|
436
|
+
include: _KeySpecs | None = ...,
|
|
437
|
+
tolerance: float | None = ...,
|
|
438
|
+
rel: float | None = ...,
|
|
439
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
440
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
441
|
+
) -> _ComplexAssertion: ...
|
|
442
|
+
|
|
443
|
+
class _NegatedDictAssertion(Protocol[_K, _V]):
|
|
444
|
+
"""The negation twin of `_DictAssertion`."""
|
|
445
|
+
|
|
446
|
+
def is_subset_of(
|
|
447
|
+
self, *supersets: Mapping[Any, Any] | MappingLike, allow_empty: bool = ...
|
|
448
|
+
) -> _DictAssertion[_K, _V]: ...
|
|
449
|
+
def contains(self, *items: object) -> _DictAssertion[_K, _V]: ...
|
|
450
|
+
def each(
|
|
451
|
+
self, matcher: Matcher[_K] | Callable[[_K], object], *, allow_empty: bool = ...
|
|
452
|
+
) -> _DictAssertion[_K, _V]: ...
|
|
453
|
+
def all_satisfy(
|
|
454
|
+
self, matcher: Matcher[_K] | Callable[[_K], object], *, allow_empty: bool = ...
|
|
455
|
+
) -> _DictAssertion[_K, _V]: ...
|
|
456
|
+
def contains_key(self, *keys: _K | Matcher[_K]) -> _DictAssertion[_K, _V]: ...
|
|
457
|
+
def does_not_contain_key(self, *keys: _K | Matcher[_K]) -> _DictAssertion[_K, _V]: ...
|
|
458
|
+
def contains_value(self, *values: _V | Matcher[_V]) -> _DictAssertion[_K, _V]: ...
|
|
459
|
+
def does_not_contain_value(self, *values: _V | Matcher[_V]) -> _DictAssertion[_K, _V]: ...
|
|
460
|
+
def contains_entry(self, *args: object, **kwargs: object) -> _DictAssertion[_K, _V]: ...
|
|
461
|
+
def does_not_contain_entry(self, *args: object, **kwargs: object) -> _DictAssertion[_K, _V]: ...
|
|
462
|
+
def does_not_contain(self, *items: object) -> _DictAssertion[_K, _V]: ...
|
|
463
|
+
def contains_only(self, *keys: object) -> _DictAssertion[_K, _V]: ...
|
|
464
|
+
def is_sorted(
|
|
465
|
+
self, key: Callable[[_K], object] = ..., reverse: bool = ..., *, allow_empty: bool = ...
|
|
466
|
+
) -> _DictAssertion[_K, _V]: ...
|
|
467
|
+
def matches_structure(self, spec: dict[Any, Any]) -> _DictAssertion[_K, _V]: ...
|
|
468
|
+
def has_same_size_as(self, other: Sized) -> _DictAssertion[_K, _V]: ...
|
|
469
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _DictAssertion[_K, _V]: ...
|
|
470
|
+
def has_size_less_than(self, size: SupportsIndex) -> _DictAssertion[_K, _V]: ...
|
|
471
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _DictAssertion[_K, _V]: ...
|
|
472
|
+
def is_empty(self) -> _DictAssertion[_K, _V]: ...
|
|
473
|
+
def is_not_empty(self) -> _DictAssertion[_K, _V]: ...
|
|
474
|
+
def is_equal_to(
|
|
475
|
+
self,
|
|
476
|
+
other: object,
|
|
477
|
+
*,
|
|
478
|
+
ignore: _KeySpecs | None = ...,
|
|
479
|
+
include: _KeySpecs | None = ...,
|
|
480
|
+
tolerance: float | None = ...,
|
|
481
|
+
rel: float | None = ...,
|
|
482
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
483
|
+
ignore_null: bool = ...,
|
|
484
|
+
strict_types: bool = ...,
|
|
485
|
+
) -> _DictAssertion[_K, _V]: ...
|
|
486
|
+
def is_not_equal_to(self, other: object) -> _DictAssertion[_K, _V]: ...
|
|
487
|
+
def is_same_as(self, other: object) -> _DictAssertion[_K, _V]: ...
|
|
488
|
+
def is_not_same_as(self, other: object) -> _DictAssertion[_K, _V]: ...
|
|
489
|
+
def is_true(self) -> _DictAssertion[_K, _V]: ...
|
|
490
|
+
def is_false(self) -> _DictAssertion[_K, _V]: ...
|
|
491
|
+
def is_none(self) -> _DictAssertion[_K, _V]: ...
|
|
492
|
+
def is_not_none(self) -> _DictAssertion[_K, _V]: ...
|
|
493
|
+
def is_type_of(self, some_type: type) -> _DictAssertion[_K, _V]: ...
|
|
494
|
+
def is_instance_of(self, some_class: ClassInfo) -> _DictAssertion[_K, _V]: ...
|
|
495
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _DictAssertion[_K, _V]: ...
|
|
496
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _DictAssertion[_K, _V]: ...
|
|
497
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _DictAssertion[_K, _V]: ...
|
|
498
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _DictAssertion[_K, _V]: ...
|
|
499
|
+
def is_callable(self) -> _DictAssertion[_K, _V]: ...
|
|
500
|
+
def is_not_callable(self) -> _DictAssertion[_K, _V]: ...
|
|
501
|
+
def is_iterable(self) -> _DictAssertion[_K, _V]: ...
|
|
502
|
+
def is_not_iterable(self) -> _DictAssertion[_K, _V]: ...
|
|
503
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _DictAssertion[_K, _V]: ...
|
|
504
|
+
def all_fields_satisfy(
|
|
505
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
506
|
+
) -> _DictAssertion[_K, _V]: ...
|
|
507
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _DictAssertion[_K, _V]: ...
|
|
508
|
+
def is_in(self, *items: object) -> _DictAssertion[_K, _V]: ...
|
|
509
|
+
def is_not_in(self, *items: object) -> _DictAssertion[_K, _V]: ...
|
|
510
|
+
def snapshot(
|
|
511
|
+
self,
|
|
512
|
+
id: str | None = ...,
|
|
513
|
+
path: str = ...,
|
|
514
|
+
*,
|
|
515
|
+
ignore: _KeySpecs | None = ...,
|
|
516
|
+
include: _KeySpecs | None = ...,
|
|
517
|
+
tolerance: float | None = ...,
|
|
518
|
+
rel: float | None = ...,
|
|
519
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
520
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
521
|
+
) -> _DictAssertion[_K, _V]: ...
|
|
522
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _DictAssertion[_K, _V]: ...
|
|
523
|
+
def matches_inline(
|
|
524
|
+
self,
|
|
525
|
+
expected: object = ...,
|
|
526
|
+
*,
|
|
527
|
+
ignore: _KeySpecs | None = ...,
|
|
528
|
+
include: _KeySpecs | None = ...,
|
|
529
|
+
tolerance: float | None = ...,
|
|
530
|
+
rel: float | None = ...,
|
|
531
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
532
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
533
|
+
) -> _DictAssertion[_K, _V]: ...
|
|
534
|
+
def has_json_path(self, path: str) -> _DictAssertion[_K, _V]: ...
|
|
535
|
+
def does_not_have_json_path(self, path: str) -> _DictAssertion[_K, _V]: ...
|
|
536
|
+
def matches_json_schema(self, schema: dict[str, Any]) -> _DictAssertion[_K, _V]: ...
|
|
537
|
+
def matches_json_schema_from_file(self, path: str | Path) -> _DictAssertion[_K, _V]: ...
|
|
538
|
+
def conforms_to_openapi(
|
|
539
|
+
self,
|
|
540
|
+
spec: dict[str, Any],
|
|
541
|
+
path: str,
|
|
542
|
+
method: str,
|
|
543
|
+
*,
|
|
544
|
+
status: str | int | None = ...,
|
|
545
|
+
content_type: str = ...,
|
|
546
|
+
strict_nullable: bool = ...,
|
|
547
|
+
) -> _DictAssertion[_K, _V]: ...
|
|
548
|
+
|
|
549
|
+
class _NegatedIterableAssertion(Protocol[_E]):
|
|
550
|
+
"""The negation twin of `_IterableAssertion`."""
|
|
551
|
+
|
|
552
|
+
def contains(self, *items: _E | Matcher[_E]) -> _IterableAssertion[_E]: ...
|
|
553
|
+
def does_not_contain(self, *items: _E | Matcher[_E]) -> _IterableAssertion[_E]: ...
|
|
554
|
+
def contains_only(self, *items: _E | Matcher[_E]) -> _IterableAssertion[_E]: ...
|
|
555
|
+
def contains_sequence(self, *items: _E | Matcher[_E]) -> _IterableAssertion[_E]: ...
|
|
556
|
+
def contains_exactly(self, *items: _E | Matcher[_E]) -> _IterableAssertion[_E]: ...
|
|
557
|
+
def contains_exactly_in_any_order(self, *items: _E | Matcher[_E]) -> _IterableAssertion[_E]: ...
|
|
558
|
+
def is_sorted(
|
|
559
|
+
self, key: Callable[[_E], object] = ..., reverse: bool = ..., *, allow_empty: bool = ...
|
|
560
|
+
) -> _IterableAssertion[_E]: ...
|
|
561
|
+
def starts_with(self, prefix: _E) -> _IterableAssertion[_E]: ...
|
|
562
|
+
def ends_with(self, suffix: _E) -> _IterableAssertion[_E]: ...
|
|
563
|
+
def each(
|
|
564
|
+
self, matcher: Matcher[_E] | Callable[[_E], object], *, allow_empty: bool = ...
|
|
565
|
+
) -> _IterableAssertion[_E]: ...
|
|
566
|
+
def all_satisfy(
|
|
567
|
+
self, matcher: Matcher[_E] | Callable[[_E], object], *, allow_empty: bool = ...
|
|
568
|
+
) -> _IterableAssertion[_E]: ...
|
|
569
|
+
def any_satisfy(self, matcher: Matcher[_E] | Callable[[_E], object]) -> _IterableAssertion[_E]: ...
|
|
570
|
+
def none_satisfy(self, matcher: Matcher[_E] | Callable[[_E], object]) -> _IterableAssertion[_E]: ...
|
|
571
|
+
def satisfies_exactly(self, *matchers: Matcher[_E] | Callable[[_E], object]) -> _IterableAssertion[_E]: ...
|
|
572
|
+
def satisfies_exactly_in_any_order(
|
|
573
|
+
self, *matchers: Matcher[_E] | Callable[[_E], object]
|
|
574
|
+
) -> _IterableAssertion[_E]: ...
|
|
575
|
+
def zip_satisfies(
|
|
576
|
+
self, other: Iterable[_Other], predicate: Callable[[_E, _Other], object], *, allow_empty: bool = ...
|
|
577
|
+
) -> _IterableAssertion[_E]: ...
|
|
578
|
+
def is_subset_of(self, *supersets: object, allow_empty: bool = ...) -> _IterableAssertion[_E]: ...
|
|
579
|
+
def contains_duplicates(self) -> _IterableAssertion[_E]: ...
|
|
580
|
+
def does_not_contain_duplicates(self) -> _IterableAssertion[_E]: ...
|
|
581
|
+
def contains_only_once(self, *items: object) -> _IterableAssertion[_E]: ...
|
|
582
|
+
def contains_in_order(self, *items: _E | Matcher[_E]) -> _IterableAssertion[_E]: ...
|
|
583
|
+
def has_same_size_as(self, other: Sized) -> _IterableAssertion[_E]: ...
|
|
584
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _IterableAssertion[_E]: ...
|
|
585
|
+
def has_size_less_than(self, size: SupportsIndex) -> _IterableAssertion[_E]: ...
|
|
586
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _IterableAssertion[_E]: ...
|
|
587
|
+
def is_empty(self) -> _IterableAssertion[_E]: ...
|
|
588
|
+
def is_not_empty(self) -> _IterableAssertion[_E]: ...
|
|
589
|
+
def is_equal_to(
|
|
590
|
+
self,
|
|
591
|
+
other: object,
|
|
592
|
+
*,
|
|
593
|
+
ignore: _KeySpecs | None = ...,
|
|
594
|
+
include: _KeySpecs | None = ...,
|
|
595
|
+
tolerance: float | None = ...,
|
|
596
|
+
rel: float | None = ...,
|
|
597
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
598
|
+
ignore_null: bool = ...,
|
|
599
|
+
strict_types: bool = ...,
|
|
600
|
+
) -> _IterableAssertion[_E]: ...
|
|
601
|
+
def is_not_equal_to(self, other: object) -> _IterableAssertion[_E]: ...
|
|
602
|
+
def is_same_as(self, other: object) -> _IterableAssertion[_E]: ...
|
|
603
|
+
def is_not_same_as(self, other: object) -> _IterableAssertion[_E]: ...
|
|
604
|
+
def is_true(self) -> _IterableAssertion[_E]: ...
|
|
605
|
+
def is_false(self) -> _IterableAssertion[_E]: ...
|
|
606
|
+
def is_none(self) -> _IterableAssertion[_E]: ...
|
|
607
|
+
def is_not_none(self) -> _IterableAssertion[_E]: ...
|
|
608
|
+
def is_type_of(self, some_type: type) -> _IterableAssertion[_E]: ...
|
|
609
|
+
def is_instance_of(self, some_class: ClassInfo) -> _IterableAssertion[_E]: ...
|
|
610
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _IterableAssertion[_E]: ...
|
|
611
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _IterableAssertion[_E]: ...
|
|
612
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _IterableAssertion[_E]: ...
|
|
613
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _IterableAssertion[_E]: ...
|
|
614
|
+
def is_callable(self) -> _IterableAssertion[_E]: ...
|
|
615
|
+
def is_not_callable(self) -> _IterableAssertion[_E]: ...
|
|
616
|
+
def is_iterable(self) -> _IterableAssertion[_E]: ...
|
|
617
|
+
def is_not_iterable(self) -> _IterableAssertion[_E]: ...
|
|
618
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _IterableAssertion[_E]: ...
|
|
619
|
+
def all_fields_satisfy(
|
|
620
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
621
|
+
) -> _IterableAssertion[_E]: ...
|
|
622
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _IterableAssertion[_E]: ...
|
|
623
|
+
def is_in(self, *items: object) -> _IterableAssertion[_E]: ...
|
|
624
|
+
def is_not_in(self, *items: object) -> _IterableAssertion[_E]: ...
|
|
625
|
+
def snapshot(
|
|
626
|
+
self,
|
|
627
|
+
id: str | None = ...,
|
|
628
|
+
path: str = ...,
|
|
629
|
+
*,
|
|
630
|
+
ignore: _KeySpecs | None = ...,
|
|
631
|
+
include: _KeySpecs | None = ...,
|
|
632
|
+
tolerance: float | None = ...,
|
|
633
|
+
rel: float | None = ...,
|
|
634
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
635
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
636
|
+
) -> _IterableAssertion[_E]: ...
|
|
637
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _IterableAssertion[_E]: ...
|
|
638
|
+
def matches_inline(
|
|
639
|
+
self,
|
|
640
|
+
expected: object = ...,
|
|
641
|
+
*,
|
|
642
|
+
ignore: _KeySpecs | None = ...,
|
|
643
|
+
include: _KeySpecs | None = ...,
|
|
644
|
+
tolerance: float | None = ...,
|
|
645
|
+
rel: float | None = ...,
|
|
646
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
647
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
648
|
+
) -> _IterableAssertion[_E]: ...
|
|
649
|
+
def has_json_path(self, path: str) -> _IterableAssertion[_E]: ...
|
|
650
|
+
def does_not_have_json_path(self, path: str) -> _IterableAssertion[_E]: ...
|
|
651
|
+
def matches_json_schema(self, schema: dict[str, Any]) -> _IterableAssertion[_E]: ...
|
|
652
|
+
def matches_json_schema_from_file(self, path: str | Path) -> _IterableAssertion[_E]: ...
|
|
653
|
+
def conforms_to_openapi(
|
|
654
|
+
self,
|
|
655
|
+
spec: dict[str, Any],
|
|
656
|
+
path: str,
|
|
657
|
+
method: str,
|
|
658
|
+
*,
|
|
659
|
+
status: str | int | None = ...,
|
|
660
|
+
content_type: str = ...,
|
|
661
|
+
strict_nullable: bool = ...,
|
|
662
|
+
) -> _IterableAssertion[_E]: ...
|
|
663
|
+
|
|
664
|
+
class _NegatedDateTimeAssertion(Protocol):
|
|
665
|
+
"""The negation twin of `_DateTimeAssertion`."""
|
|
666
|
+
|
|
667
|
+
def is_greater_than(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
668
|
+
def is_greater_than_or_equal_to(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
669
|
+
def is_less_than(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
670
|
+
def is_less_than_or_equal_to(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
671
|
+
def is_between(self, low: datetime.datetime, high: datetime.datetime) -> _DateTimeAssertion: ...
|
|
672
|
+
def is_not_between(self, low: datetime.datetime, high: datetime.datetime) -> _DateTimeAssertion: ...
|
|
673
|
+
def is_before(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
674
|
+
def is_after(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
675
|
+
def is_before_or_equal_to(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
676
|
+
def is_after_or_equal_to(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
677
|
+
def is_equal_to_ignoring_milliseconds(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
678
|
+
def is_equal_to_ignoring_seconds(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
679
|
+
def is_equal_to_ignoring_time(self, other: datetime.datetime) -> _DateTimeAssertion: ...
|
|
680
|
+
def is_close_to(
|
|
681
|
+
self, other: datetime.datetime, tolerance: datetime.timedelta | None = ..., *, rel: None = ...
|
|
682
|
+
) -> _DateTimeAssertion: ...
|
|
683
|
+
def is_not_close_to(
|
|
684
|
+
self, other: datetime.datetime, tolerance: datetime.timedelta | None = ..., *, rel: None = ...
|
|
685
|
+
) -> _DateTimeAssertion: ...
|
|
686
|
+
def is_equal_to(
|
|
687
|
+
self,
|
|
688
|
+
other: object,
|
|
689
|
+
*,
|
|
690
|
+
ignore: _KeySpecs | None = ...,
|
|
691
|
+
include: _KeySpecs | None = ...,
|
|
692
|
+
tolerance: float | None = ...,
|
|
693
|
+
rel: float | None = ...,
|
|
694
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
695
|
+
ignore_null: bool = ...,
|
|
696
|
+
strict_types: bool = ...,
|
|
697
|
+
) -> _DateTimeAssertion: ...
|
|
698
|
+
def is_not_equal_to(self, other: object) -> _DateTimeAssertion: ...
|
|
699
|
+
def is_same_as(self, other: object) -> _DateTimeAssertion: ...
|
|
700
|
+
def is_not_same_as(self, other: object) -> _DateTimeAssertion: ...
|
|
701
|
+
def is_true(self) -> _DateTimeAssertion: ...
|
|
702
|
+
def is_false(self) -> _DateTimeAssertion: ...
|
|
703
|
+
def is_none(self) -> _DateTimeAssertion: ...
|
|
704
|
+
def is_not_none(self) -> _DateTimeAssertion: ...
|
|
705
|
+
def is_type_of(self, some_type: type) -> _DateTimeAssertion: ...
|
|
706
|
+
def is_instance_of(self, some_class: ClassInfo) -> _DateTimeAssertion: ...
|
|
707
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _DateTimeAssertion: ...
|
|
708
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _DateTimeAssertion: ...
|
|
709
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _DateTimeAssertion: ...
|
|
710
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _DateTimeAssertion: ...
|
|
711
|
+
def is_callable(self) -> _DateTimeAssertion: ...
|
|
712
|
+
def is_not_callable(self) -> _DateTimeAssertion: ...
|
|
713
|
+
def is_iterable(self) -> _DateTimeAssertion: ...
|
|
714
|
+
def is_not_iterable(self) -> _DateTimeAssertion: ...
|
|
715
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _DateTimeAssertion: ...
|
|
716
|
+
def all_fields_satisfy(
|
|
717
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
718
|
+
) -> _DateTimeAssertion: ...
|
|
719
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _DateTimeAssertion: ...
|
|
720
|
+
def is_in(self, *items: object) -> _DateTimeAssertion: ...
|
|
721
|
+
def is_not_in(self, *items: object) -> _DateTimeAssertion: ...
|
|
722
|
+
def snapshot(
|
|
723
|
+
self,
|
|
724
|
+
id: str | None = ...,
|
|
725
|
+
path: str = ...,
|
|
726
|
+
*,
|
|
727
|
+
ignore: _KeySpecs | None = ...,
|
|
728
|
+
include: _KeySpecs | None = ...,
|
|
729
|
+
tolerance: float | None = ...,
|
|
730
|
+
rel: float | None = ...,
|
|
731
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
732
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
733
|
+
) -> _DateTimeAssertion: ...
|
|
734
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _DateTimeAssertion: ...
|
|
735
|
+
def matches_inline(
|
|
736
|
+
self,
|
|
737
|
+
expected: object = ...,
|
|
738
|
+
*,
|
|
739
|
+
ignore: _KeySpecs | None = ...,
|
|
740
|
+
include: _KeySpecs | None = ...,
|
|
741
|
+
tolerance: float | None = ...,
|
|
742
|
+
rel: float | None = ...,
|
|
743
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
744
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
745
|
+
) -> _DateTimeAssertion: ...
|
|
746
|
+
|
|
747
|
+
class _NegatedDateAssertion(Protocol):
|
|
748
|
+
"""The negation twin of `_DateAssertion`."""
|
|
749
|
+
|
|
750
|
+
def is_greater_than(self, other: datetime.date) -> _DateAssertion: ...
|
|
751
|
+
def is_greater_than_or_equal_to(self, other: datetime.date) -> _DateAssertion: ...
|
|
752
|
+
def is_less_than(self, other: datetime.date) -> _DateAssertion: ...
|
|
753
|
+
def is_less_than_or_equal_to(self, other: datetime.date) -> _DateAssertion: ...
|
|
754
|
+
def is_between(self, low: datetime.date, high: datetime.date) -> _DateAssertion: ...
|
|
755
|
+
def is_not_between(self, low: datetime.date, high: datetime.date) -> _DateAssertion: ...
|
|
756
|
+
def is_equal_to(
|
|
757
|
+
self,
|
|
758
|
+
other: object,
|
|
759
|
+
*,
|
|
760
|
+
ignore: _KeySpecs | None = ...,
|
|
761
|
+
include: _KeySpecs | None = ...,
|
|
762
|
+
tolerance: float | None = ...,
|
|
763
|
+
rel: float | None = ...,
|
|
764
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
765
|
+
ignore_null: bool = ...,
|
|
766
|
+
strict_types: bool = ...,
|
|
767
|
+
) -> _DateAssertion: ...
|
|
768
|
+
def is_not_equal_to(self, other: object) -> _DateAssertion: ...
|
|
769
|
+
def is_same_as(self, other: object) -> _DateAssertion: ...
|
|
770
|
+
def is_not_same_as(self, other: object) -> _DateAssertion: ...
|
|
771
|
+
def is_true(self) -> _DateAssertion: ...
|
|
772
|
+
def is_false(self) -> _DateAssertion: ...
|
|
773
|
+
def is_none(self) -> _DateAssertion: ...
|
|
774
|
+
def is_not_none(self) -> _DateAssertion: ...
|
|
775
|
+
def is_type_of(self, some_type: type) -> _DateAssertion: ...
|
|
776
|
+
def is_instance_of(self, some_class: ClassInfo) -> _DateAssertion: ...
|
|
777
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _DateAssertion: ...
|
|
778
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _DateAssertion: ...
|
|
779
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _DateAssertion: ...
|
|
780
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _DateAssertion: ...
|
|
781
|
+
def is_callable(self) -> _DateAssertion: ...
|
|
782
|
+
def is_not_callable(self) -> _DateAssertion: ...
|
|
783
|
+
def is_iterable(self) -> _DateAssertion: ...
|
|
784
|
+
def is_not_iterable(self) -> _DateAssertion: ...
|
|
785
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _DateAssertion: ...
|
|
786
|
+
def all_fields_satisfy(
|
|
787
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
788
|
+
) -> _DateAssertion: ...
|
|
789
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _DateAssertion: ...
|
|
790
|
+
def is_in(self, *items: object) -> _DateAssertion: ...
|
|
791
|
+
def is_not_in(self, *items: object) -> _DateAssertion: ...
|
|
792
|
+
def snapshot(
|
|
793
|
+
self,
|
|
794
|
+
id: str | None = ...,
|
|
795
|
+
path: str = ...,
|
|
796
|
+
*,
|
|
797
|
+
ignore: _KeySpecs | None = ...,
|
|
798
|
+
include: _KeySpecs | None = ...,
|
|
799
|
+
tolerance: float | None = ...,
|
|
800
|
+
rel: float | None = ...,
|
|
801
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
802
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
803
|
+
) -> _DateAssertion: ...
|
|
804
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _DateAssertion: ...
|
|
805
|
+
def matches_inline(
|
|
806
|
+
self,
|
|
807
|
+
expected: object = ...,
|
|
808
|
+
*,
|
|
809
|
+
ignore: _KeySpecs | None = ...,
|
|
810
|
+
include: _KeySpecs | None = ...,
|
|
811
|
+
tolerance: float | None = ...,
|
|
812
|
+
rel: float | None = ...,
|
|
813
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
814
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
815
|
+
) -> _DateAssertion: ...
|
|
816
|
+
|
|
817
|
+
class _NegatedPathAssertion(Protocol):
|
|
818
|
+
"""The negation twin of `_PathAssertion`."""
|
|
819
|
+
|
|
820
|
+
def exists(self) -> _PathAssertion: ...
|
|
821
|
+
def does_not_exist(self) -> _PathAssertion: ...
|
|
822
|
+
def is_file(self) -> _PathAssertion: ...
|
|
823
|
+
def is_directory(self) -> _PathAssertion: ...
|
|
824
|
+
def is_named(self, filename: str) -> _PathAssertion: ...
|
|
825
|
+
def is_child_of(self, parent: object) -> _PathAssertion: ...
|
|
826
|
+
def is_readable(self) -> _PathAssertion: ...
|
|
827
|
+
def is_writable(self) -> _PathAssertion: ...
|
|
828
|
+
def is_executable(self) -> _PathAssertion: ...
|
|
829
|
+
def is_equal_to(
|
|
830
|
+
self,
|
|
831
|
+
other: object,
|
|
832
|
+
*,
|
|
833
|
+
ignore: _KeySpecs | None = ...,
|
|
834
|
+
include: _KeySpecs | None = ...,
|
|
835
|
+
tolerance: float | None = ...,
|
|
836
|
+
rel: float | None = ...,
|
|
837
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
838
|
+
ignore_null: bool = ...,
|
|
839
|
+
strict_types: bool = ...,
|
|
840
|
+
) -> _PathAssertion: ...
|
|
841
|
+
def is_not_equal_to(self, other: object) -> _PathAssertion: ...
|
|
842
|
+
def is_same_as(self, other: object) -> _PathAssertion: ...
|
|
843
|
+
def is_not_same_as(self, other: object) -> _PathAssertion: ...
|
|
844
|
+
def is_true(self) -> _PathAssertion: ...
|
|
845
|
+
def is_false(self) -> _PathAssertion: ...
|
|
846
|
+
def is_none(self) -> _PathAssertion: ...
|
|
847
|
+
def is_not_none(self) -> _PathAssertion: ...
|
|
848
|
+
def is_type_of(self, some_type: type) -> _PathAssertion: ...
|
|
849
|
+
def is_instance_of(self, some_class: ClassInfo) -> _PathAssertion: ...
|
|
850
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _PathAssertion: ...
|
|
851
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _PathAssertion: ...
|
|
852
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _PathAssertion: ...
|
|
853
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _PathAssertion: ...
|
|
854
|
+
def is_callable(self) -> _PathAssertion: ...
|
|
855
|
+
def is_not_callable(self) -> _PathAssertion: ...
|
|
856
|
+
def is_iterable(self) -> _PathAssertion: ...
|
|
857
|
+
def is_not_iterable(self) -> _PathAssertion: ...
|
|
858
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _PathAssertion: ...
|
|
859
|
+
def all_fields_satisfy(
|
|
860
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
861
|
+
) -> _PathAssertion: ...
|
|
862
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _PathAssertion: ...
|
|
863
|
+
def is_in(self, *items: object) -> _PathAssertion: ...
|
|
864
|
+
def is_not_in(self, *items: object) -> _PathAssertion: ...
|
|
865
|
+
def snapshot(
|
|
866
|
+
self,
|
|
867
|
+
id: str | None = ...,
|
|
868
|
+
path: str = ...,
|
|
869
|
+
*,
|
|
870
|
+
ignore: _KeySpecs | None = ...,
|
|
871
|
+
include: _KeySpecs | None = ...,
|
|
872
|
+
tolerance: float | None = ...,
|
|
873
|
+
rel: float | None = ...,
|
|
874
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
875
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
876
|
+
) -> _PathAssertion: ...
|
|
877
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _PathAssertion: ...
|
|
878
|
+
def matches_inline(
|
|
879
|
+
self,
|
|
880
|
+
expected: object = ...,
|
|
881
|
+
*,
|
|
882
|
+
ignore: _KeySpecs | None = ...,
|
|
883
|
+
include: _KeySpecs | None = ...,
|
|
884
|
+
tolerance: float | None = ...,
|
|
885
|
+
rel: float | None = ...,
|
|
886
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
887
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
888
|
+
) -> _PathAssertion: ...
|
|
889
|
+
|
|
890
|
+
class _NegatedBytesAssertion(Protocol[_B_co]):
|
|
891
|
+
"""The negation twin of `_BytesAssertion`."""
|
|
892
|
+
|
|
893
|
+
def contains(self, *items: object) -> _BytesAssertion[_B_co]: ...
|
|
894
|
+
def does_not_contain(self, *items: object) -> _BytesAssertion[_B_co]: ...
|
|
895
|
+
def is_sorted(
|
|
896
|
+
self, key: Callable[[int], object] = ..., reverse: bool = ..., *, allow_empty: bool = ...
|
|
897
|
+
) -> _BytesAssertion[_B_co]: ...
|
|
898
|
+
def starts_with(self, prefix: bytes | bytearray) -> _BytesAssertion[_B_co]: ...
|
|
899
|
+
def ends_with(self, suffix: bytes | bytearray) -> _BytesAssertion[_B_co]: ...
|
|
900
|
+
def is_valid_utf8(self) -> _BytesAssertion[_B_co]: ...
|
|
901
|
+
def is_valid_encoding(self, encoding: str) -> _BytesAssertion[_B_co]: ...
|
|
902
|
+
def starts_with_bytes(self, prefix: bytes | bytearray) -> _BytesAssertion[_B_co]: ...
|
|
903
|
+
def contains_bytes(self, sub: bytes | bytearray) -> _BytesAssertion[_B_co]: ...
|
|
904
|
+
def has_byte_at(self, index: SupportsIndex, expected: SupportsIndex) -> _BytesAssertion[_B_co]: ...
|
|
905
|
+
def is_hex_equal_to(self, expected_hex: str) -> _BytesAssertion[_B_co]: ...
|
|
906
|
+
def is_greater_than(self, other: bytes | bytearray) -> _BytesAssertion[_B_co]: ...
|
|
907
|
+
def is_greater_than_or_equal_to(self, other: bytes | bytearray) -> _BytesAssertion[_B_co]: ...
|
|
908
|
+
def is_less_than(self, other: bytes | bytearray) -> _BytesAssertion[_B_co]: ...
|
|
909
|
+
def is_less_than_or_equal_to(self, other: bytes | bytearray) -> _BytesAssertion[_B_co]: ...
|
|
910
|
+
def is_subset_of(self, *supersets: object, allow_empty: bool = ...) -> _BytesAssertion[_B_co]: ...
|
|
911
|
+
def has_same_size_as(self, other: Sized) -> _BytesAssertion[_B_co]: ...
|
|
912
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _BytesAssertion[_B_co]: ...
|
|
913
|
+
def has_size_less_than(self, size: SupportsIndex) -> _BytesAssertion[_B_co]: ...
|
|
914
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _BytesAssertion[_B_co]: ...
|
|
915
|
+
def is_empty(self) -> _BytesAssertion[_B_co]: ...
|
|
916
|
+
def is_not_empty(self) -> _BytesAssertion[_B_co]: ...
|
|
917
|
+
def is_equal_to(
|
|
918
|
+
self,
|
|
919
|
+
other: object,
|
|
920
|
+
*,
|
|
921
|
+
ignore: _KeySpecs | None = ...,
|
|
922
|
+
include: _KeySpecs | None = ...,
|
|
923
|
+
tolerance: float | None = ...,
|
|
924
|
+
rel: float | None = ...,
|
|
925
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
926
|
+
ignore_null: bool = ...,
|
|
927
|
+
strict_types: bool = ...,
|
|
928
|
+
) -> _BytesAssertion[_B_co]: ...
|
|
929
|
+
def is_not_equal_to(self, other: object) -> _BytesAssertion[_B_co]: ...
|
|
930
|
+
def is_same_as(self, other: object) -> _BytesAssertion[_B_co]: ...
|
|
931
|
+
def is_not_same_as(self, other: object) -> _BytesAssertion[_B_co]: ...
|
|
932
|
+
def is_true(self) -> _BytesAssertion[_B_co]: ...
|
|
933
|
+
def is_false(self) -> _BytesAssertion[_B_co]: ...
|
|
934
|
+
def is_none(self) -> _BytesAssertion[_B_co]: ...
|
|
935
|
+
def is_not_none(self) -> _BytesAssertion[_B_co]: ...
|
|
936
|
+
def is_type_of(self, some_type: type) -> _BytesAssertion[_B_co]: ...
|
|
937
|
+
def is_instance_of(self, some_class: ClassInfo) -> _BytesAssertion[_B_co]: ...
|
|
938
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _BytesAssertion[_B_co]: ...
|
|
939
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _BytesAssertion[_B_co]: ...
|
|
940
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _BytesAssertion[_B_co]: ...
|
|
941
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _BytesAssertion[_B_co]: ...
|
|
942
|
+
def is_callable(self) -> _BytesAssertion[_B_co]: ...
|
|
943
|
+
def is_not_callable(self) -> _BytesAssertion[_B_co]: ...
|
|
944
|
+
def is_iterable(self) -> _BytesAssertion[_B_co]: ...
|
|
945
|
+
def is_not_iterable(self) -> _BytesAssertion[_B_co]: ...
|
|
946
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _BytesAssertion[_B_co]: ...
|
|
947
|
+
def all_fields_satisfy(
|
|
948
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
949
|
+
) -> _BytesAssertion[_B_co]: ...
|
|
950
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _BytesAssertion[_B_co]: ...
|
|
951
|
+
def is_in(self, *items: object) -> _BytesAssertion[_B_co]: ...
|
|
952
|
+
def is_not_in(self, *items: object) -> _BytesAssertion[_B_co]: ...
|
|
953
|
+
def snapshot(
|
|
954
|
+
self,
|
|
955
|
+
id: str | None = ...,
|
|
956
|
+
path: str = ...,
|
|
957
|
+
*,
|
|
958
|
+
ignore: _KeySpecs | None = ...,
|
|
959
|
+
include: _KeySpecs | None = ...,
|
|
960
|
+
tolerance: float | None = ...,
|
|
961
|
+
rel: float | None = ...,
|
|
962
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
963
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
964
|
+
) -> _BytesAssertion[_B_co]: ...
|
|
965
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _BytesAssertion[_B_co]: ...
|
|
966
|
+
def matches_inline(
|
|
967
|
+
self,
|
|
968
|
+
expected: object = ...,
|
|
969
|
+
*,
|
|
970
|
+
ignore: _KeySpecs | None = ...,
|
|
971
|
+
include: _KeySpecs | None = ...,
|
|
972
|
+
tolerance: float | None = ...,
|
|
973
|
+
rel: float | None = ...,
|
|
974
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
975
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
976
|
+
) -> _BytesAssertion[_B_co]: ...
|
|
977
|
+
|
|
978
|
+
class _NegatedFrameAssertion(Protocol[_FrameT_co]):
|
|
979
|
+
"""The negation twin of `_FrameAssertion`."""
|
|
980
|
+
|
|
981
|
+
def is_frame_equal(self, expected: object, **options: Any) -> _FrameAssertion[_FrameT_co]: ...
|
|
982
|
+
def is_array_equal(self, expected: object, **options: Any) -> _FrameAssertion[_FrameT_co]: ...
|
|
983
|
+
def is_array_close_to(
|
|
984
|
+
self, expected: object, *, rtol: float = ..., atol: float = ..., equal_nan: bool = ..., **options: Any
|
|
985
|
+
) -> _FrameAssertion[_FrameT_co]: ...
|
|
986
|
+
def contains(self, *items: object) -> _FrameAssertion[_FrameT_co]: ...
|
|
987
|
+
def does_not_contain(self, *items: object) -> _FrameAssertion[_FrameT_co]: ...
|
|
988
|
+
def contains_only(self, *items: object) -> _FrameAssertion[_FrameT_co]: ...
|
|
989
|
+
def is_equal_to(
|
|
990
|
+
self,
|
|
991
|
+
other: object,
|
|
992
|
+
*,
|
|
993
|
+
ignore: _KeySpecs | None = ...,
|
|
994
|
+
include: _KeySpecs | None = ...,
|
|
995
|
+
tolerance: float | None = ...,
|
|
996
|
+
rel: float | None = ...,
|
|
997
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
998
|
+
ignore_null: bool = ...,
|
|
999
|
+
strict_types: bool = ...,
|
|
1000
|
+
) -> _FrameAssertion[_FrameT_co]: ...
|
|
1001
|
+
def is_not_equal_to(self, other: object) -> _FrameAssertion[_FrameT_co]: ...
|
|
1002
|
+
def is_same_as(self, other: object) -> _FrameAssertion[_FrameT_co]: ...
|
|
1003
|
+
def is_not_same_as(self, other: object) -> _FrameAssertion[_FrameT_co]: ...
|
|
1004
|
+
def is_true(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1005
|
+
def is_false(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1006
|
+
def is_none(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1007
|
+
def is_not_none(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1008
|
+
def is_type_of(self, some_type: type) -> _FrameAssertion[_FrameT_co]: ...
|
|
1009
|
+
def is_instance_of(self, some_class: ClassInfo) -> _FrameAssertion[_FrameT_co]: ...
|
|
1010
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _FrameAssertion[_FrameT_co]: ...
|
|
1011
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _FrameAssertion[_FrameT_co]: ...
|
|
1012
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _FrameAssertion[_FrameT_co]: ...
|
|
1013
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _FrameAssertion[_FrameT_co]: ...
|
|
1014
|
+
def is_callable(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1015
|
+
def is_not_callable(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1016
|
+
def is_iterable(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1017
|
+
def is_not_iterable(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1018
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _FrameAssertion[_FrameT_co]: ...
|
|
1019
|
+
def all_fields_satisfy(
|
|
1020
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1021
|
+
) -> _FrameAssertion[_FrameT_co]: ...
|
|
1022
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _FrameAssertion[_FrameT_co]: ...
|
|
1023
|
+
def is_in(self, *items: object) -> _FrameAssertion[_FrameT_co]: ...
|
|
1024
|
+
def is_not_in(self, *items: object) -> _FrameAssertion[_FrameT_co]: ...
|
|
1025
|
+
def snapshot(
|
|
1026
|
+
self,
|
|
1027
|
+
id: str | None = ...,
|
|
1028
|
+
path: str = ...,
|
|
1029
|
+
*,
|
|
1030
|
+
ignore: _KeySpecs | None = ...,
|
|
1031
|
+
include: _KeySpecs | None = ...,
|
|
1032
|
+
tolerance: float | None = ...,
|
|
1033
|
+
rel: float | None = ...,
|
|
1034
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1035
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1036
|
+
) -> _FrameAssertion[_FrameT_co]: ...
|
|
1037
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _FrameAssertion[_FrameT_co]: ...
|
|
1038
|
+
def matches_inline(
|
|
1039
|
+
self,
|
|
1040
|
+
expected: object = ...,
|
|
1041
|
+
*,
|
|
1042
|
+
ignore: _KeySpecs | None = ...,
|
|
1043
|
+
include: _KeySpecs | None = ...,
|
|
1044
|
+
tolerance: float | None = ...,
|
|
1045
|
+
rel: float | None = ...,
|
|
1046
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1047
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1048
|
+
) -> _FrameAssertion[_FrameT_co]: ...
|
|
1049
|
+
def has_same_size_as(self, other: Sized) -> _FrameAssertion[_FrameT_co]: ...
|
|
1050
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _FrameAssertion[_FrameT_co]: ...
|
|
1051
|
+
def has_size_less_than(self, size: SupportsIndex) -> _FrameAssertion[_FrameT_co]: ...
|
|
1052
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _FrameAssertion[_FrameT_co]: ...
|
|
1053
|
+
def is_empty(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1054
|
+
def is_not_empty(self) -> _FrameAssertion[_FrameT_co]: ...
|
|
1055
|
+
def is_subset_of(self, *supersets: object, allow_empty: bool = ...) -> _FrameAssertion[_FrameT_co]: ...
|
|
1056
|
+
def each(
|
|
1057
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1058
|
+
) -> _FrameAssertion[_FrameT_co]: ...
|
|
1059
|
+
def all_satisfy(
|
|
1060
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1061
|
+
) -> _FrameAssertion[_FrameT_co]: ...
|
|
1062
|
+
|
|
1063
|
+
class _NegatedArrayAssertion(Protocol[_ArrayT_co]):
|
|
1064
|
+
"""The negation twin of `_ArrayAssertion`."""
|
|
1065
|
+
|
|
1066
|
+
def is_array_equal(self, expected: object, **options: Any) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1067
|
+
def is_array_close_to(
|
|
1068
|
+
self, expected: object, *, rtol: float = ..., atol: float = ..., equal_nan: bool = ..., **options: Any
|
|
1069
|
+
) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1070
|
+
def contains(self, *items: object) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1071
|
+
def does_not_contain(self, *items: object) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1072
|
+
def contains_only(self, *items: object) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1073
|
+
def is_equal_to(
|
|
1074
|
+
self,
|
|
1075
|
+
other: object,
|
|
1076
|
+
*,
|
|
1077
|
+
ignore: _KeySpecs | None = ...,
|
|
1078
|
+
include: _KeySpecs | None = ...,
|
|
1079
|
+
tolerance: float | None = ...,
|
|
1080
|
+
rel: float | None = ...,
|
|
1081
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1082
|
+
ignore_null: bool = ...,
|
|
1083
|
+
strict_types: bool = ...,
|
|
1084
|
+
) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1085
|
+
def is_not_equal_to(self, other: object) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1086
|
+
def is_same_as(self, other: object) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1087
|
+
def is_not_same_as(self, other: object) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1088
|
+
def is_true(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1089
|
+
def is_false(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1090
|
+
def is_none(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1091
|
+
def is_not_none(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1092
|
+
def is_type_of(self, some_type: type) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1093
|
+
def is_instance_of(self, some_class: ClassInfo) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1094
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1095
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1096
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1097
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1098
|
+
def is_callable(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1099
|
+
def is_not_callable(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1100
|
+
def is_iterable(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1101
|
+
def is_not_iterable(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1102
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1103
|
+
def all_fields_satisfy(
|
|
1104
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1105
|
+
) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1106
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1107
|
+
def is_in(self, *items: object) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1108
|
+
def is_not_in(self, *items: object) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1109
|
+
def snapshot(
|
|
1110
|
+
self,
|
|
1111
|
+
id: str | None = ...,
|
|
1112
|
+
path: str = ...,
|
|
1113
|
+
*,
|
|
1114
|
+
ignore: _KeySpecs | None = ...,
|
|
1115
|
+
include: _KeySpecs | None = ...,
|
|
1116
|
+
tolerance: float | None = ...,
|
|
1117
|
+
rel: float | None = ...,
|
|
1118
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1119
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1120
|
+
) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1121
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1122
|
+
def matches_inline(
|
|
1123
|
+
self,
|
|
1124
|
+
expected: object = ...,
|
|
1125
|
+
*,
|
|
1126
|
+
ignore: _KeySpecs | None = ...,
|
|
1127
|
+
include: _KeySpecs | None = ...,
|
|
1128
|
+
tolerance: float | None = ...,
|
|
1129
|
+
rel: float | None = ...,
|
|
1130
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1131
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1132
|
+
) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1133
|
+
def has_same_size_as(self, other: Sized) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1134
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1135
|
+
def has_size_less_than(self, size: SupportsIndex) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1136
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1137
|
+
def is_empty(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1138
|
+
def is_not_empty(self) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1139
|
+
def is_subset_of(self, *supersets: object, allow_empty: bool = ...) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1140
|
+
def each(
|
|
1141
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1142
|
+
) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1143
|
+
def all_satisfy(
|
|
1144
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1145
|
+
) -> _ArrayAssertion[_ArrayT_co]: ...
|
|
1146
|
+
|
|
1147
|
+
class _NegatedCallableAssertion(Protocol[_P_co]):
|
|
1148
|
+
"""The negation twin of `_CallableAssertion`."""
|
|
1149
|
+
|
|
1150
|
+
def is_equal_to(
|
|
1151
|
+
self,
|
|
1152
|
+
other: object,
|
|
1153
|
+
*,
|
|
1154
|
+
ignore: _KeySpecs | None = ...,
|
|
1155
|
+
include: _KeySpecs | None = ...,
|
|
1156
|
+
tolerance: float | None = ...,
|
|
1157
|
+
rel: float | None = ...,
|
|
1158
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1159
|
+
ignore_null: bool = ...,
|
|
1160
|
+
strict_types: bool = ...,
|
|
1161
|
+
) -> _CallableAssertion[_P_co]: ...
|
|
1162
|
+
def is_not_equal_to(self, other: object) -> _CallableAssertion[_P_co]: ...
|
|
1163
|
+
def is_same_as(self, other: object) -> _CallableAssertion[_P_co]: ...
|
|
1164
|
+
def is_not_same_as(self, other: object) -> _CallableAssertion[_P_co]: ...
|
|
1165
|
+
def is_true(self) -> _CallableAssertion[_P_co]: ...
|
|
1166
|
+
def is_false(self) -> _CallableAssertion[_P_co]: ...
|
|
1167
|
+
def is_none(self) -> _CallableAssertion[_P_co]: ...
|
|
1168
|
+
def is_not_none(self) -> _CallableAssertion[_P_co]: ...
|
|
1169
|
+
def is_type_of(self, some_type: type) -> _CallableAssertion[_P_co]: ...
|
|
1170
|
+
def is_instance_of(self, some_class: ClassInfo) -> _CallableAssertion[_P_co]: ...
|
|
1171
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _CallableAssertion[_P_co]: ...
|
|
1172
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _CallableAssertion[_P_co]: ...
|
|
1173
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _CallableAssertion[_P_co]: ...
|
|
1174
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _CallableAssertion[_P_co]: ...
|
|
1175
|
+
def is_callable(self) -> _CallableAssertion[_P_co]: ...
|
|
1176
|
+
def is_not_callable(self) -> _CallableAssertion[_P_co]: ...
|
|
1177
|
+
def is_iterable(self) -> _CallableAssertion[_P_co]: ...
|
|
1178
|
+
def is_not_iterable(self) -> _CallableAssertion[_P_co]: ...
|
|
1179
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _CallableAssertion[_P_co]: ...
|
|
1180
|
+
def all_fields_satisfy(
|
|
1181
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1182
|
+
) -> _CallableAssertion[_P_co]: ...
|
|
1183
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _CallableAssertion[_P_co]: ...
|
|
1184
|
+
def is_in(self, *items: object) -> _CallableAssertion[_P_co]: ...
|
|
1185
|
+
def is_not_in(self, *items: object) -> _CallableAssertion[_P_co]: ...
|
|
1186
|
+
def snapshot(
|
|
1187
|
+
self,
|
|
1188
|
+
id: str | None = ...,
|
|
1189
|
+
path: str = ...,
|
|
1190
|
+
*,
|
|
1191
|
+
ignore: _KeySpecs | None = ...,
|
|
1192
|
+
include: _KeySpecs | None = ...,
|
|
1193
|
+
tolerance: float | None = ...,
|
|
1194
|
+
rel: float | None = ...,
|
|
1195
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1196
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1197
|
+
) -> _CallableAssertion[_P_co]: ...
|
|
1198
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _CallableAssertion[_P_co]: ...
|
|
1199
|
+
def matches_inline(
|
|
1200
|
+
self,
|
|
1201
|
+
expected: object = ...,
|
|
1202
|
+
*,
|
|
1203
|
+
ignore: _KeySpecs | None = ...,
|
|
1204
|
+
include: _KeySpecs | None = ...,
|
|
1205
|
+
tolerance: float | None = ...,
|
|
1206
|
+
rel: float | None = ...,
|
|
1207
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1208
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1209
|
+
) -> _CallableAssertion[_P_co]: ...
|
|
1210
|
+
|
|
1211
|
+
class _NegatedObjectAssertion(Protocol[_T_co]):
|
|
1212
|
+
"""The negation twin of `_ObjectAssertion`."""
|
|
1213
|
+
|
|
1214
|
+
def matches_structure(self, spec: dict[Any, Any]) -> _ObjectAssertion[_T_co]: ...
|
|
1215
|
+
def is_greater_than(self, other: Any) -> _ObjectAssertion[_T_co]: ...
|
|
1216
|
+
def is_greater_than_or_equal_to(self, other: Any) -> _ObjectAssertion[_T_co]: ...
|
|
1217
|
+
def is_less_than(self, other: Any) -> _ObjectAssertion[_T_co]: ...
|
|
1218
|
+
def is_less_than_or_equal_to(self, other: Any) -> _ObjectAssertion[_T_co]: ...
|
|
1219
|
+
def is_between(self, low: Any, high: Any) -> _ObjectAssertion[_T_co]: ...
|
|
1220
|
+
def is_not_between(self, low: Any, high: Any) -> _ObjectAssertion[_T_co]: ...
|
|
1221
|
+
def is_zero(self: _NegatedObjectAssertion[SupportsFloat | SupportsIndex]) -> _ObjectAssertion[_T_co]: ...
|
|
1222
|
+
def is_not_zero(self: _NegatedObjectAssertion[SupportsFloat | SupportsIndex]) -> _ObjectAssertion[_T_co]: ...
|
|
1223
|
+
def is_close_to(
|
|
1224
|
+
self: _NegatedObjectAssertion[SupportsFloat | SupportsIndex],
|
|
1225
|
+
other: SupportsFloat | SupportsIndex,
|
|
1226
|
+
tolerance: SupportsFloat | SupportsIndex | None = ...,
|
|
1227
|
+
*,
|
|
1228
|
+
rel: SupportsFloat | SupportsIndex | None = ...,
|
|
1229
|
+
) -> _ObjectAssertion[_T_co]: ...
|
|
1230
|
+
def is_not_close_to(
|
|
1231
|
+
self: _NegatedObjectAssertion[SupportsFloat | SupportsIndex],
|
|
1232
|
+
other: SupportsFloat | SupportsIndex,
|
|
1233
|
+
tolerance: SupportsFloat | SupportsIndex | None = ...,
|
|
1234
|
+
*,
|
|
1235
|
+
rel: SupportsFloat | SupportsIndex | None = ...,
|
|
1236
|
+
) -> _ObjectAssertion[_T_co]: ...
|
|
1237
|
+
def is_not_none(self) -> _ObjectAssertion[_T_co]: ...
|
|
1238
|
+
@overload
|
|
1239
|
+
def is_instance_of(self, some_class: type[str]) -> _ObjectAssertion[_T_co]: ...
|
|
1240
|
+
@overload
|
|
1241
|
+
def is_instance_of(self, some_class: type[bool]) -> _ObjectAssertion[_T_co]: ...
|
|
1242
|
+
@overload
|
|
1243
|
+
def is_instance_of(self, some_class: type[int]) -> _ObjectAssertion[_T_co]: ...
|
|
1244
|
+
@overload
|
|
1245
|
+
def is_instance_of(self, some_class: type[float]) -> _ObjectAssertion[_T_co]: ...
|
|
1246
|
+
@overload
|
|
1247
|
+
def is_instance_of(self, some_class: type[complex]) -> _ObjectAssertion[_T_co]: ...
|
|
1248
|
+
@overload
|
|
1249
|
+
def is_instance_of(self, some_class: type[dict[_K, _V]]) -> _ObjectAssertion[_T_co]: ...
|
|
1250
|
+
@overload
|
|
1251
|
+
def is_instance_of(self, some_class: type[list[_E] | tuple[_E, ...]]) -> _ObjectAssertion[_T_co]: ...
|
|
1252
|
+
@overload
|
|
1253
|
+
def is_instance_of(self, some_class: type[set[_E] | frozenset[_E]]) -> _ObjectAssertion[_T_co]: ...
|
|
1254
|
+
@overload
|
|
1255
|
+
def is_instance_of(self, some_class: type[datetime.datetime]) -> _ObjectAssertion[_T_co]: ...
|
|
1256
|
+
@overload
|
|
1257
|
+
def is_instance_of(self, some_class: type[datetime.date]) -> _ObjectAssertion[_T_co]: ...
|
|
1258
|
+
@overload
|
|
1259
|
+
def is_instance_of(self, some_class: type[Path]) -> _ObjectAssertion[_T_co]: ...
|
|
1260
|
+
@overload
|
|
1261
|
+
def is_instance_of(self, some_class: type[bytes]) -> _ObjectAssertion[_T_co]: ...
|
|
1262
|
+
@overload
|
|
1263
|
+
def is_instance_of(self, some_class: type[bytearray]) -> _ObjectAssertion[_T_co]: ...
|
|
1264
|
+
@overload
|
|
1265
|
+
def is_instance_of(self, some_class: tuple[type[_U], type[_U2]]) -> _ObjectAssertion[_T_co]: ...
|
|
1266
|
+
@overload
|
|
1267
|
+
def is_instance_of(self, some_class: tuple[type[_U], type[_U2], type[_U3]]) -> _ObjectAssertion[_T_co]: ...
|
|
1268
|
+
@overload
|
|
1269
|
+
def is_instance_of(self, some_class: type[_U]) -> _ObjectAssertion[_T_co]: ...
|
|
1270
|
+
@overload
|
|
1271
|
+
def is_instance_of(self, some_class: ClassInfo) -> _ObjectAssertion[_T_co]: ...
|
|
1272
|
+
@overload
|
|
1273
|
+
def is_instance_of_any(self, first: type[_U], second: type[_U2], /) -> _ObjectAssertion[_T_co]: ...
|
|
1274
|
+
@overload
|
|
1275
|
+
def is_instance_of_any(
|
|
1276
|
+
self, first: type[_U], second: type[_U2], third: type[_U3], /
|
|
1277
|
+
) -> _ObjectAssertion[_T_co]: ...
|
|
1278
|
+
@overload
|
|
1279
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _ObjectAssertion[_T_co]: ...
|
|
1280
|
+
def is_equal_to(
|
|
1281
|
+
self,
|
|
1282
|
+
other: object,
|
|
1283
|
+
*,
|
|
1284
|
+
ignore: _KeySpecs | None = ...,
|
|
1285
|
+
include: _KeySpecs | None = ...,
|
|
1286
|
+
tolerance: float | None = ...,
|
|
1287
|
+
rel: float | None = ...,
|
|
1288
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1289
|
+
ignore_null: bool = ...,
|
|
1290
|
+
strict_types: bool = ...,
|
|
1291
|
+
) -> _ObjectAssertion[_T_co]: ...
|
|
1292
|
+
def is_not_equal_to(self, other: object) -> _ObjectAssertion[_T_co]: ...
|
|
1293
|
+
def is_same_as(self, other: object) -> _ObjectAssertion[_T_co]: ...
|
|
1294
|
+
def is_not_same_as(self, other: object) -> _ObjectAssertion[_T_co]: ...
|
|
1295
|
+
def is_true(self) -> _ObjectAssertion[_T_co]: ...
|
|
1296
|
+
def is_false(self) -> _ObjectAssertion[_T_co]: ...
|
|
1297
|
+
def is_none(self) -> _ObjectAssertion[_T_co]: ...
|
|
1298
|
+
def is_type_of(self, some_type: type) -> _ObjectAssertion[_T_co]: ...
|
|
1299
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _ObjectAssertion[_T_co]: ...
|
|
1300
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _ObjectAssertion[_T_co]: ...
|
|
1301
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _ObjectAssertion[_T_co]: ...
|
|
1302
|
+
def is_callable(self) -> _ObjectAssertion[_T_co]: ...
|
|
1303
|
+
def is_not_callable(self) -> _ObjectAssertion[_T_co]: ...
|
|
1304
|
+
def is_iterable(self) -> _ObjectAssertion[_T_co]: ...
|
|
1305
|
+
def is_not_iterable(self) -> _ObjectAssertion[_T_co]: ...
|
|
1306
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _ObjectAssertion[_T_co]: ...
|
|
1307
|
+
def all_fields_satisfy(
|
|
1308
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1309
|
+
) -> _ObjectAssertion[_T_co]: ...
|
|
1310
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _ObjectAssertion[_T_co]: ...
|
|
1311
|
+
def is_in(self, *items: object) -> _ObjectAssertion[_T_co]: ...
|
|
1312
|
+
def is_not_in(self, *items: object) -> _ObjectAssertion[_T_co]: ...
|
|
1313
|
+
def snapshot(
|
|
1314
|
+
self,
|
|
1315
|
+
id: str | None = ...,
|
|
1316
|
+
path: str = ...,
|
|
1317
|
+
*,
|
|
1318
|
+
ignore: _KeySpecs | None = ...,
|
|
1319
|
+
include: _KeySpecs | None = ...,
|
|
1320
|
+
tolerance: float | None = ...,
|
|
1321
|
+
rel: float | None = ...,
|
|
1322
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1323
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1324
|
+
) -> _ObjectAssertion[_T_co]: ...
|
|
1325
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _ObjectAssertion[_T_co]: ...
|
|
1326
|
+
def matches_inline(
|
|
1327
|
+
self,
|
|
1328
|
+
expected: object = ...,
|
|
1329
|
+
*,
|
|
1330
|
+
ignore: _KeySpecs | None = ...,
|
|
1331
|
+
include: _KeySpecs | None = ...,
|
|
1332
|
+
tolerance: float | None = ...,
|
|
1333
|
+
rel: float | None = ...,
|
|
1334
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1335
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1336
|
+
) -> _ObjectAssertion[_T_co]: ...
|
|
1337
|
+
|
|
1338
|
+
class _NegatedExpectedRaiseAssertion(Protocol[_P_co, _Exc]):
|
|
1339
|
+
"""The negation twin of `_ExpectedRaiseAssertion`."""
|
|
1340
|
+
|
|
1341
|
+
def when_called_with(
|
|
1342
|
+
self, *some_args: object, **some_kwargs: object
|
|
1343
|
+
) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1344
|
+
def is_equal_to(
|
|
1345
|
+
self,
|
|
1346
|
+
other: object,
|
|
1347
|
+
*,
|
|
1348
|
+
ignore: _KeySpecs | None = ...,
|
|
1349
|
+
include: _KeySpecs | None = ...,
|
|
1350
|
+
tolerance: float | None = ...,
|
|
1351
|
+
rel: float | None = ...,
|
|
1352
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1353
|
+
ignore_null: bool = ...,
|
|
1354
|
+
strict_types: bool = ...,
|
|
1355
|
+
) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1356
|
+
def is_not_equal_to(self, other: object) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1357
|
+
def is_same_as(self, other: object) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1358
|
+
def is_not_same_as(self, other: object) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1359
|
+
def is_true(self) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1360
|
+
def is_false(self) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1361
|
+
def is_none(self) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1362
|
+
def is_not_none(self) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1363
|
+
def is_type_of(self, some_type: type) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1364
|
+
def is_instance_of(self, some_class: ClassInfo) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1365
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1366
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1367
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1368
|
+
def is_length_between(
|
|
1369
|
+
self, low: SupportsIndex, high: SupportsIndex
|
|
1370
|
+
) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1371
|
+
def is_callable(self) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1372
|
+
def is_not_callable(self) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1373
|
+
def is_iterable(self) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1374
|
+
def is_not_iterable(self) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1375
|
+
def satisfies(
|
|
1376
|
+
self, matcher: Matcher[Any] | Callable[[Any], object]
|
|
1377
|
+
) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1378
|
+
def all_fields_satisfy(
|
|
1379
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1380
|
+
) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1381
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1382
|
+
def is_in(self, *items: object) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1383
|
+
def is_not_in(self, *items: object) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1384
|
+
def snapshot(
|
|
1385
|
+
self,
|
|
1386
|
+
id: str | None = ...,
|
|
1387
|
+
path: str = ...,
|
|
1388
|
+
*,
|
|
1389
|
+
ignore: _KeySpecs | None = ...,
|
|
1390
|
+
include: _KeySpecs | None = ...,
|
|
1391
|
+
tolerance: float | None = ...,
|
|
1392
|
+
rel: float | None = ...,
|
|
1393
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1394
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1395
|
+
) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1396
|
+
def matches_contract_snapshot(
|
|
1397
|
+
self, id: str | None = ..., path: str = ...
|
|
1398
|
+
) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1399
|
+
def matches_inline(
|
|
1400
|
+
self,
|
|
1401
|
+
expected: object = ...,
|
|
1402
|
+
*,
|
|
1403
|
+
ignore: _KeySpecs | None = ...,
|
|
1404
|
+
include: _KeySpecs | None = ...,
|
|
1405
|
+
tolerance: float | None = ...,
|
|
1406
|
+
rel: float | None = ...,
|
|
1407
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1408
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1409
|
+
) -> _ExpectedRaiseAssertion[_P_co, _Exc]: ...
|
|
1410
|
+
|
|
1411
|
+
class _NegatedExpectedCompletionAssertion(Protocol[_P_co]):
|
|
1412
|
+
"""The negation twin of `_ExpectedCompletionAssertion`."""
|
|
1413
|
+
|
|
1414
|
+
def when_called_with(
|
|
1415
|
+
self, *some_args: object, **some_kwargs: object
|
|
1416
|
+
) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1417
|
+
def is_equal_to(
|
|
1418
|
+
self,
|
|
1419
|
+
other: object,
|
|
1420
|
+
*,
|
|
1421
|
+
ignore: _KeySpecs | None = ...,
|
|
1422
|
+
include: _KeySpecs | None = ...,
|
|
1423
|
+
tolerance: float | None = ...,
|
|
1424
|
+
rel: float | None = ...,
|
|
1425
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1426
|
+
ignore_null: bool = ...,
|
|
1427
|
+
strict_types: bool = ...,
|
|
1428
|
+
) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1429
|
+
def is_not_equal_to(self, other: object) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1430
|
+
def is_same_as(self, other: object) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1431
|
+
def is_not_same_as(self, other: object) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1432
|
+
def is_true(self) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1433
|
+
def is_false(self) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1434
|
+
def is_none(self) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1435
|
+
def is_not_none(self) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1436
|
+
def is_type_of(self, some_type: type) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1437
|
+
def is_instance_of(self, some_class: ClassInfo) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1438
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1439
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1440
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1441
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1442
|
+
def is_callable(self) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1443
|
+
def is_not_callable(self) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1444
|
+
def is_iterable(self) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1445
|
+
def is_not_iterable(self) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1446
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1447
|
+
def all_fields_satisfy(
|
|
1448
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1449
|
+
) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1450
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1451
|
+
def is_in(self, *items: object) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1452
|
+
def is_not_in(self, *items: object) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1453
|
+
def snapshot(
|
|
1454
|
+
self,
|
|
1455
|
+
id: str | None = ...,
|
|
1456
|
+
path: str = ...,
|
|
1457
|
+
*,
|
|
1458
|
+
ignore: _KeySpecs | None = ...,
|
|
1459
|
+
include: _KeySpecs | None = ...,
|
|
1460
|
+
tolerance: float | None = ...,
|
|
1461
|
+
rel: float | None = ...,
|
|
1462
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1463
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1464
|
+
) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1465
|
+
def matches_contract_snapshot(
|
|
1466
|
+
self, id: str | None = ..., path: str = ...
|
|
1467
|
+
) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1468
|
+
def matches_inline(
|
|
1469
|
+
self,
|
|
1470
|
+
expected: object = ...,
|
|
1471
|
+
*,
|
|
1472
|
+
ignore: _KeySpecs | None = ...,
|
|
1473
|
+
include: _KeySpecs | None = ...,
|
|
1474
|
+
tolerance: float | None = ...,
|
|
1475
|
+
rel: float | None = ...,
|
|
1476
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1477
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1478
|
+
) -> _ExpectedCompletionAssertion[_P_co]: ...
|
|
1479
|
+
|
|
1480
|
+
class _NegatedExpectedWarningAssertion(Protocol[_P_co]):
|
|
1481
|
+
"""The negation twin of `_ExpectedWarningAssertion`."""
|
|
1482
|
+
|
|
1483
|
+
def when_called_with(self, *some_args: object, **some_kwargs: object) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1484
|
+
def is_equal_to(
|
|
1485
|
+
self,
|
|
1486
|
+
other: object,
|
|
1487
|
+
*,
|
|
1488
|
+
ignore: _KeySpecs | None = ...,
|
|
1489
|
+
include: _KeySpecs | None = ...,
|
|
1490
|
+
tolerance: float | None = ...,
|
|
1491
|
+
rel: float | None = ...,
|
|
1492
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1493
|
+
ignore_null: bool = ...,
|
|
1494
|
+
strict_types: bool = ...,
|
|
1495
|
+
) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1496
|
+
def is_not_equal_to(self, other: object) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1497
|
+
def is_same_as(self, other: object) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1498
|
+
def is_not_same_as(self, other: object) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1499
|
+
def is_true(self) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1500
|
+
def is_false(self) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1501
|
+
def is_none(self) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1502
|
+
def is_not_none(self) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1503
|
+
def is_type_of(self, some_type: type) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1504
|
+
def is_instance_of(self, some_class: ClassInfo) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1505
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1506
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1507
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1508
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1509
|
+
def is_callable(self) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1510
|
+
def is_not_callable(self) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1511
|
+
def is_iterable(self) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1512
|
+
def is_not_iterable(self) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1513
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1514
|
+
def all_fields_satisfy(
|
|
1515
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1516
|
+
) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1517
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1518
|
+
def is_in(self, *items: object) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1519
|
+
def is_not_in(self, *items: object) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1520
|
+
def snapshot(
|
|
1521
|
+
self,
|
|
1522
|
+
id: str | None = ...,
|
|
1523
|
+
path: str = ...,
|
|
1524
|
+
*,
|
|
1525
|
+
ignore: _KeySpecs | None = ...,
|
|
1526
|
+
include: _KeySpecs | None = ...,
|
|
1527
|
+
tolerance: float | None = ...,
|
|
1528
|
+
rel: float | None = ...,
|
|
1529
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1530
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1531
|
+
) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1532
|
+
def matches_contract_snapshot(
|
|
1533
|
+
self, id: str | None = ..., path: str = ...
|
|
1534
|
+
) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1535
|
+
def matches_inline(
|
|
1536
|
+
self,
|
|
1537
|
+
expected: object = ...,
|
|
1538
|
+
*,
|
|
1539
|
+
ignore: _KeySpecs | None = ...,
|
|
1540
|
+
include: _KeySpecs | None = ...,
|
|
1541
|
+
tolerance: float | None = ...,
|
|
1542
|
+
rel: float | None = ...,
|
|
1543
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1544
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1545
|
+
) -> _ExpectedWarningAssertion[_P_co]: ...
|
|
1546
|
+
|
|
1547
|
+
class _NegatedWarnedAssertion(Protocol[_P_co]):
|
|
1548
|
+
"""The negation twin of `_WarnedAssertion`."""
|
|
1549
|
+
|
|
1550
|
+
def satisfies(self, matcher: Matcher[str] | Callable[[str], object]) -> _WarnedAssertion[_P_co]: ...
|
|
1551
|
+
def contains(self, *items: str | Matcher[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1552
|
+
def is_equal_to_ignoring_case(self, other: str) -> _WarnedAssertion[_P_co]: ...
|
|
1553
|
+
def is_equal_to_ignoring_whitespace(self, other: str) -> _WarnedAssertion[_P_co]: ...
|
|
1554
|
+
def contains_ignoring_case(self, *items: str) -> _WarnedAssertion[_P_co]: ...
|
|
1555
|
+
def starts_with(self, prefix: str) -> _WarnedAssertion[_P_co]: ...
|
|
1556
|
+
def starts_with_ignoring_case(self, prefix: str) -> _WarnedAssertion[_P_co]: ...
|
|
1557
|
+
def ends_with(self, suffix: str) -> _WarnedAssertion[_P_co]: ...
|
|
1558
|
+
def ends_with_ignoring_case(self, suffix: str) -> _WarnedAssertion[_P_co]: ...
|
|
1559
|
+
def matches(self, pattern: str | re.Pattern[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1560
|
+
def does_not_match(self, pattern: str | re.Pattern[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1561
|
+
def is_alpha(self) -> _WarnedAssertion[_P_co]: ...
|
|
1562
|
+
def is_digit(self) -> _WarnedAssertion[_P_co]: ...
|
|
1563
|
+
def is_lower(self) -> _WarnedAssertion[_P_co]: ...
|
|
1564
|
+
def is_upper(self) -> _WarnedAssertion[_P_co]: ...
|
|
1565
|
+
def is_alphanumeric(self) -> _WarnedAssertion[_P_co]: ...
|
|
1566
|
+
def is_whitespace(self) -> _WarnedAssertion[_P_co]: ...
|
|
1567
|
+
def contains_any_of(self, *items: str) -> _WarnedAssertion[_P_co]: ...
|
|
1568
|
+
def contains_none_of(self, *items: str) -> _WarnedAssertion[_P_co]: ...
|
|
1569
|
+
def is_unicode(self) -> _WarnedAssertion[_P_co]: ...
|
|
1570
|
+
def is_greater_than(self, other: str) -> _WarnedAssertion[_P_co]: ...
|
|
1571
|
+
def is_greater_than_or_equal_to(self, other: str) -> _WarnedAssertion[_P_co]: ...
|
|
1572
|
+
def is_less_than(self, other: str) -> _WarnedAssertion[_P_co]: ...
|
|
1573
|
+
def is_less_than_or_equal_to(self, other: str) -> _WarnedAssertion[_P_co]: ...
|
|
1574
|
+
def does_not_contain(self, *items: str | Matcher[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1575
|
+
def contains_only(self, *items: str | Matcher[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1576
|
+
def contains_sequence(self, *items: str | Matcher[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1577
|
+
def contains_exactly(self, *items: str | Matcher[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1578
|
+
def contains_exactly_in_any_order(self, *items: str | Matcher[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1579
|
+
def is_sorted(
|
|
1580
|
+
self, key: Callable[[str], object] = ..., reverse: bool = ..., *, allow_empty: bool = ...
|
|
1581
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1582
|
+
def each(
|
|
1583
|
+
self, matcher: Matcher[str] | Callable[[str], object], *, allow_empty: bool = ...
|
|
1584
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1585
|
+
def all_satisfy(
|
|
1586
|
+
self, matcher: Matcher[str] | Callable[[str], object], *, allow_empty: bool = ...
|
|
1587
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1588
|
+
def any_satisfy(self, matcher: Matcher[str] | Callable[[str], object]) -> _WarnedAssertion[_P_co]: ...
|
|
1589
|
+
def none_satisfy(self, matcher: Matcher[str] | Callable[[str], object]) -> _WarnedAssertion[_P_co]: ...
|
|
1590
|
+
def satisfies_exactly(self, *matchers: Matcher[str] | Callable[[str], object]) -> _WarnedAssertion[_P_co]: ...
|
|
1591
|
+
def satisfies_exactly_in_any_order(
|
|
1592
|
+
self, *matchers: Matcher[str] | Callable[[str], object]
|
|
1593
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1594
|
+
def zip_satisfies(
|
|
1595
|
+
self, other: Iterable[_Other], predicate: Callable[[str, _Other], object], *, allow_empty: bool = ...
|
|
1596
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1597
|
+
def extracting_group(
|
|
1598
|
+
self, pattern: str | re.Pattern[str], group: int | str = ...
|
|
1599
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1600
|
+
def matches_with_groups(self, pattern: str | re.Pattern[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1601
|
+
def is_subset_of(self, *supersets: object, allow_empty: bool = ...) -> _WarnedAssertion[_P_co]: ...
|
|
1602
|
+
def contains_duplicates(self) -> _WarnedAssertion[_P_co]: ...
|
|
1603
|
+
def does_not_contain_duplicates(self) -> _WarnedAssertion[_P_co]: ...
|
|
1604
|
+
def contains_only_once(self, *items: object) -> _WarnedAssertion[_P_co]: ...
|
|
1605
|
+
def contains_in_order(self, *items: str | Matcher[str]) -> _WarnedAssertion[_P_co]: ...
|
|
1606
|
+
def has_same_size_as(self, other: Sized) -> _WarnedAssertion[_P_co]: ...
|
|
1607
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _WarnedAssertion[_P_co]: ...
|
|
1608
|
+
def has_size_less_than(self, size: SupportsIndex) -> _WarnedAssertion[_P_co]: ...
|
|
1609
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _WarnedAssertion[_P_co]: ...
|
|
1610
|
+
def is_empty(self) -> _WarnedAssertion[_P_co]: ...
|
|
1611
|
+
def is_not_empty(self) -> _WarnedAssertion[_P_co]: ...
|
|
1612
|
+
def is_equal_to(
|
|
1613
|
+
self,
|
|
1614
|
+
other: object,
|
|
1615
|
+
*,
|
|
1616
|
+
ignore: _KeySpecs | None = ...,
|
|
1617
|
+
include: _KeySpecs | None = ...,
|
|
1618
|
+
tolerance: float | None = ...,
|
|
1619
|
+
rel: float | None = ...,
|
|
1620
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1621
|
+
ignore_null: bool = ...,
|
|
1622
|
+
strict_types: bool = ...,
|
|
1623
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1624
|
+
def is_not_equal_to(self, other: object) -> _WarnedAssertion[_P_co]: ...
|
|
1625
|
+
def is_same_as(self, other: object) -> _WarnedAssertion[_P_co]: ...
|
|
1626
|
+
def is_not_same_as(self, other: object) -> _WarnedAssertion[_P_co]: ...
|
|
1627
|
+
def is_true(self) -> _WarnedAssertion[_P_co]: ...
|
|
1628
|
+
def is_false(self) -> _WarnedAssertion[_P_co]: ...
|
|
1629
|
+
def is_none(self) -> _WarnedAssertion[_P_co]: ...
|
|
1630
|
+
def is_not_none(self) -> _WarnedAssertion[_P_co]: ...
|
|
1631
|
+
def is_type_of(self, some_type: type) -> _WarnedAssertion[_P_co]: ...
|
|
1632
|
+
def is_instance_of(self, some_class: ClassInfo) -> _WarnedAssertion[_P_co]: ...
|
|
1633
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _WarnedAssertion[_P_co]: ...
|
|
1634
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _WarnedAssertion[_P_co]: ...
|
|
1635
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _WarnedAssertion[_P_co]: ...
|
|
1636
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _WarnedAssertion[_P_co]: ...
|
|
1637
|
+
def is_callable(self) -> _WarnedAssertion[_P_co]: ...
|
|
1638
|
+
def is_not_callable(self) -> _WarnedAssertion[_P_co]: ...
|
|
1639
|
+
def is_iterable(self) -> _WarnedAssertion[_P_co]: ...
|
|
1640
|
+
def is_not_iterable(self) -> _WarnedAssertion[_P_co]: ...
|
|
1641
|
+
def all_fields_satisfy(
|
|
1642
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1643
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1644
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _WarnedAssertion[_P_co]: ...
|
|
1645
|
+
def is_in(self, *items: object) -> _WarnedAssertion[_P_co]: ...
|
|
1646
|
+
def is_not_in(self, *items: object) -> _WarnedAssertion[_P_co]: ...
|
|
1647
|
+
def snapshot(
|
|
1648
|
+
self,
|
|
1649
|
+
id: str | None = ...,
|
|
1650
|
+
path: str = ...,
|
|
1651
|
+
*,
|
|
1652
|
+
ignore: _KeySpecs | None = ...,
|
|
1653
|
+
include: _KeySpecs | None = ...,
|
|
1654
|
+
tolerance: float | None = ...,
|
|
1655
|
+
rel: float | None = ...,
|
|
1656
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1657
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1658
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1659
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _WarnedAssertion[_P_co]: ...
|
|
1660
|
+
def matches_inline(
|
|
1661
|
+
self,
|
|
1662
|
+
expected: object = ...,
|
|
1663
|
+
*,
|
|
1664
|
+
ignore: _KeySpecs | None = ...,
|
|
1665
|
+
include: _KeySpecs | None = ...,
|
|
1666
|
+
tolerance: float | None = ...,
|
|
1667
|
+
rel: float | None = ...,
|
|
1668
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1669
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1670
|
+
) -> _WarnedAssertion[_P_co]: ...
|
|
1671
|
+
|
|
1672
|
+
class _NegatedListAssertion(Protocol[_E]):
|
|
1673
|
+
"""The negation twin of `_ListAssertion`."""
|
|
1674
|
+
|
|
1675
|
+
def contains(self, *items: _E | Matcher[_E]) -> _ListAssertion[_E]: ...
|
|
1676
|
+
def does_not_contain(self, *items: _E | Matcher[_E]) -> _ListAssertion[_E]: ...
|
|
1677
|
+
def contains_only(self, *items: _E | Matcher[_E]) -> _ListAssertion[_E]: ...
|
|
1678
|
+
def contains_sequence(self, *items: _E | Matcher[_E]) -> _ListAssertion[_E]: ...
|
|
1679
|
+
def contains_exactly(self, *items: _E | Matcher[_E]) -> _ListAssertion[_E]: ...
|
|
1680
|
+
def contains_exactly_in_any_order(self, *items: _E | Matcher[_E]) -> _ListAssertion[_E]: ...
|
|
1681
|
+
def is_sorted(
|
|
1682
|
+
self, key: Callable[[_E], object] = ..., reverse: bool = ..., *, allow_empty: bool = ...
|
|
1683
|
+
) -> _ListAssertion[_E]: ...
|
|
1684
|
+
def starts_with(self, prefix: _E) -> _ListAssertion[_E]: ...
|
|
1685
|
+
def ends_with(self, suffix: _E) -> _ListAssertion[_E]: ...
|
|
1686
|
+
def each(
|
|
1687
|
+
self, matcher: Matcher[_E] | Callable[[_E], object], *, allow_empty: bool = ...
|
|
1688
|
+
) -> _ListAssertion[_E]: ...
|
|
1689
|
+
def all_satisfy(
|
|
1690
|
+
self, matcher: Matcher[_E] | Callable[[_E], object], *, allow_empty: bool = ...
|
|
1691
|
+
) -> _ListAssertion[_E]: ...
|
|
1692
|
+
def any_satisfy(self, matcher: Matcher[_E] | Callable[[_E], object]) -> _ListAssertion[_E]: ...
|
|
1693
|
+
def none_satisfy(self, matcher: Matcher[_E] | Callable[[_E], object]) -> _ListAssertion[_E]: ...
|
|
1694
|
+
def satisfies_exactly(self, *matchers: Matcher[_E] | Callable[[_E], object]) -> _ListAssertion[_E]: ...
|
|
1695
|
+
def satisfies_exactly_in_any_order(
|
|
1696
|
+
self, *matchers: Matcher[_E] | Callable[[_E], object]
|
|
1697
|
+
) -> _ListAssertion[_E]: ...
|
|
1698
|
+
def zip_satisfies(
|
|
1699
|
+
self, other: Iterable[_Other], predicate: Callable[[_E, _Other], object], *, allow_empty: bool = ...
|
|
1700
|
+
) -> _ListAssertion[_E]: ...
|
|
1701
|
+
def is_subset_of(self, *supersets: object, allow_empty: bool = ...) -> _ListAssertion[_E]: ...
|
|
1702
|
+
def contains_duplicates(self) -> _ListAssertion[_E]: ...
|
|
1703
|
+
def does_not_contain_duplicates(self) -> _ListAssertion[_E]: ...
|
|
1704
|
+
def contains_only_once(self, *items: object) -> _ListAssertion[_E]: ...
|
|
1705
|
+
def contains_in_order(self, *items: _E | Matcher[_E]) -> _ListAssertion[_E]: ...
|
|
1706
|
+
def has_same_size_as(self, other: Sized) -> _ListAssertion[_E]: ...
|
|
1707
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _ListAssertion[_E]: ...
|
|
1708
|
+
def has_size_less_than(self, size: SupportsIndex) -> _ListAssertion[_E]: ...
|
|
1709
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _ListAssertion[_E]: ...
|
|
1710
|
+
def is_empty(self) -> _ListAssertion[_E]: ...
|
|
1711
|
+
def is_not_empty(self) -> _ListAssertion[_E]: ...
|
|
1712
|
+
def is_equal_to(
|
|
1713
|
+
self,
|
|
1714
|
+
other: object,
|
|
1715
|
+
*,
|
|
1716
|
+
ignore: _KeySpecs | None = ...,
|
|
1717
|
+
include: _KeySpecs | None = ...,
|
|
1718
|
+
tolerance: float | None = ...,
|
|
1719
|
+
rel: float | None = ...,
|
|
1720
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1721
|
+
ignore_null: bool = ...,
|
|
1722
|
+
strict_types: bool = ...,
|
|
1723
|
+
) -> _ListAssertion[_E]: ...
|
|
1724
|
+
def is_not_equal_to(self, other: object) -> _ListAssertion[_E]: ...
|
|
1725
|
+
def is_same_as(self, other: object) -> _ListAssertion[_E]: ...
|
|
1726
|
+
def is_not_same_as(self, other: object) -> _ListAssertion[_E]: ...
|
|
1727
|
+
def is_true(self) -> _ListAssertion[_E]: ...
|
|
1728
|
+
def is_false(self) -> _ListAssertion[_E]: ...
|
|
1729
|
+
def is_none(self) -> _ListAssertion[_E]: ...
|
|
1730
|
+
def is_not_none(self) -> _ListAssertion[_E]: ...
|
|
1731
|
+
def is_type_of(self, some_type: type) -> _ListAssertion[_E]: ...
|
|
1732
|
+
def is_instance_of(self, some_class: ClassInfo) -> _ListAssertion[_E]: ...
|
|
1733
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _ListAssertion[_E]: ...
|
|
1734
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _ListAssertion[_E]: ...
|
|
1735
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _ListAssertion[_E]: ...
|
|
1736
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _ListAssertion[_E]: ...
|
|
1737
|
+
def is_callable(self) -> _ListAssertion[_E]: ...
|
|
1738
|
+
def is_not_callable(self) -> _ListAssertion[_E]: ...
|
|
1739
|
+
def is_iterable(self) -> _ListAssertion[_E]: ...
|
|
1740
|
+
def is_not_iterable(self) -> _ListAssertion[_E]: ...
|
|
1741
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _ListAssertion[_E]: ...
|
|
1742
|
+
def all_fields_satisfy(
|
|
1743
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1744
|
+
) -> _ListAssertion[_E]: ...
|
|
1745
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _ListAssertion[_E]: ...
|
|
1746
|
+
def is_in(self, *items: object) -> _ListAssertion[_E]: ...
|
|
1747
|
+
def is_not_in(self, *items: object) -> _ListAssertion[_E]: ...
|
|
1748
|
+
def snapshot(
|
|
1749
|
+
self,
|
|
1750
|
+
id: str | None = ...,
|
|
1751
|
+
path: str = ...,
|
|
1752
|
+
*,
|
|
1753
|
+
ignore: _KeySpecs | None = ...,
|
|
1754
|
+
include: _KeySpecs | None = ...,
|
|
1755
|
+
tolerance: float | None = ...,
|
|
1756
|
+
rel: float | None = ...,
|
|
1757
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1758
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1759
|
+
) -> _ListAssertion[_E]: ...
|
|
1760
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _ListAssertion[_E]: ...
|
|
1761
|
+
def matches_inline(
|
|
1762
|
+
self,
|
|
1763
|
+
expected: object = ...,
|
|
1764
|
+
*,
|
|
1765
|
+
ignore: _KeySpecs | None = ...,
|
|
1766
|
+
include: _KeySpecs | None = ...,
|
|
1767
|
+
tolerance: float | None = ...,
|
|
1768
|
+
rel: float | None = ...,
|
|
1769
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1770
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1771
|
+
) -> _ListAssertion[_E]: ...
|
|
1772
|
+
def has_json_path(self, path: str) -> _ListAssertion[_E]: ...
|
|
1773
|
+
def does_not_have_json_path(self, path: str) -> _ListAssertion[_E]: ...
|
|
1774
|
+
def matches_json_schema(self, schema: dict[str, Any]) -> _ListAssertion[_E]: ...
|
|
1775
|
+
def matches_json_schema_from_file(self, path: str | Path) -> _ListAssertion[_E]: ...
|
|
1776
|
+
def conforms_to_openapi(
|
|
1777
|
+
self,
|
|
1778
|
+
spec: dict[str, Any],
|
|
1779
|
+
path: str,
|
|
1780
|
+
method: str,
|
|
1781
|
+
*,
|
|
1782
|
+
status: str | int | None = ...,
|
|
1783
|
+
content_type: str = ...,
|
|
1784
|
+
strict_nullable: bool = ...,
|
|
1785
|
+
) -> _ListAssertion[_E]: ...
|
|
1786
|
+
|
|
1787
|
+
class _NegatedTextAssertion(Protocol):
|
|
1788
|
+
"""The negation twin of `_TextAssertion`."""
|
|
1789
|
+
|
|
1790
|
+
def satisfies(self, matcher: Matcher[str] | Callable[[str], object]) -> _TextAssertion: ...
|
|
1791
|
+
def contains(self, *items: str | Matcher[str]) -> _TextAssertion: ...
|
|
1792
|
+
def is_equal_to_ignoring_case(self, other: str) -> _TextAssertion: ...
|
|
1793
|
+
def is_equal_to_ignoring_whitespace(self, other: str) -> _TextAssertion: ...
|
|
1794
|
+
def contains_ignoring_case(self, *items: str) -> _TextAssertion: ...
|
|
1795
|
+
def starts_with(self, prefix: str) -> _TextAssertion: ...
|
|
1796
|
+
def starts_with_ignoring_case(self, prefix: str) -> _TextAssertion: ...
|
|
1797
|
+
def ends_with(self, suffix: str) -> _TextAssertion: ...
|
|
1798
|
+
def ends_with_ignoring_case(self, suffix: str) -> _TextAssertion: ...
|
|
1799
|
+
def matches(self, pattern: str | re.Pattern[str]) -> _TextAssertion: ...
|
|
1800
|
+
def does_not_match(self, pattern: str | re.Pattern[str]) -> _TextAssertion: ...
|
|
1801
|
+
def is_alpha(self) -> _TextAssertion: ...
|
|
1802
|
+
def is_digit(self) -> _TextAssertion: ...
|
|
1803
|
+
def is_lower(self) -> _TextAssertion: ...
|
|
1804
|
+
def is_upper(self) -> _TextAssertion: ...
|
|
1805
|
+
def is_alphanumeric(self) -> _TextAssertion: ...
|
|
1806
|
+
def is_whitespace(self) -> _TextAssertion: ...
|
|
1807
|
+
def contains_any_of(self, *items: str) -> _TextAssertion: ...
|
|
1808
|
+
def contains_none_of(self, *items: str) -> _TextAssertion: ...
|
|
1809
|
+
def is_unicode(self) -> _TextAssertion: ...
|
|
1810
|
+
def is_greater_than(self, other: str) -> _TextAssertion: ...
|
|
1811
|
+
def is_greater_than_or_equal_to(self, other: str) -> _TextAssertion: ...
|
|
1812
|
+
def is_less_than(self, other: str) -> _TextAssertion: ...
|
|
1813
|
+
def is_less_than_or_equal_to(self, other: str) -> _TextAssertion: ...
|
|
1814
|
+
def does_not_contain(self, *items: str | Matcher[str]) -> _TextAssertion: ...
|
|
1815
|
+
def contains_only(self, *items: str | Matcher[str]) -> _TextAssertion: ...
|
|
1816
|
+
def contains_sequence(self, *items: str | Matcher[str]) -> _TextAssertion: ...
|
|
1817
|
+
def contains_exactly(self, *items: str | Matcher[str]) -> _TextAssertion: ...
|
|
1818
|
+
def contains_exactly_in_any_order(self, *items: str | Matcher[str]) -> _TextAssertion: ...
|
|
1819
|
+
def is_sorted(
|
|
1820
|
+
self, key: Callable[[str], object] = ..., reverse: bool = ..., *, allow_empty: bool = ...
|
|
1821
|
+
) -> _TextAssertion: ...
|
|
1822
|
+
def each(
|
|
1823
|
+
self, matcher: Matcher[str] | Callable[[str], object], *, allow_empty: bool = ...
|
|
1824
|
+
) -> _TextAssertion: ...
|
|
1825
|
+
def all_satisfy(
|
|
1826
|
+
self, matcher: Matcher[str] | Callable[[str], object], *, allow_empty: bool = ...
|
|
1827
|
+
) -> _TextAssertion: ...
|
|
1828
|
+
def any_satisfy(self, matcher: Matcher[str] | Callable[[str], object]) -> _TextAssertion: ...
|
|
1829
|
+
def none_satisfy(self, matcher: Matcher[str] | Callable[[str], object]) -> _TextAssertion: ...
|
|
1830
|
+
def satisfies_exactly(self, *matchers: Matcher[str] | Callable[[str], object]) -> _TextAssertion: ...
|
|
1831
|
+
def satisfies_exactly_in_any_order(
|
|
1832
|
+
self, *matchers: Matcher[str] | Callable[[str], object]
|
|
1833
|
+
) -> _TextAssertion: ...
|
|
1834
|
+
def zip_satisfies(
|
|
1835
|
+
self, other: Iterable[_Other], predicate: Callable[[str, _Other], object], *, allow_empty: bool = ...
|
|
1836
|
+
) -> _TextAssertion: ...
|
|
1837
|
+
def extracting_group(self, pattern: str | re.Pattern[str], group: int | str = ...) -> _TextAssertion: ...
|
|
1838
|
+
def matches_with_groups(self, pattern: str | re.Pattern[str]) -> _TextAssertion: ...
|
|
1839
|
+
def is_subset_of(self, *supersets: object, allow_empty: bool = ...) -> _TextAssertion: ...
|
|
1840
|
+
def contains_duplicates(self) -> _TextAssertion: ...
|
|
1841
|
+
def does_not_contain_duplicates(self) -> _TextAssertion: ...
|
|
1842
|
+
def contains_only_once(self, *items: object) -> _TextAssertion: ...
|
|
1843
|
+
def contains_in_order(self, *items: str | Matcher[str]) -> _TextAssertion: ...
|
|
1844
|
+
def has_same_size_as(self, other: Sized) -> _TextAssertion: ...
|
|
1845
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _TextAssertion: ...
|
|
1846
|
+
def has_size_less_than(self, size: SupportsIndex) -> _TextAssertion: ...
|
|
1847
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _TextAssertion: ...
|
|
1848
|
+
def is_empty(self) -> _TextAssertion: ...
|
|
1849
|
+
def is_not_empty(self) -> _TextAssertion: ...
|
|
1850
|
+
def is_equal_to(
|
|
1851
|
+
self,
|
|
1852
|
+
other: object,
|
|
1853
|
+
*,
|
|
1854
|
+
ignore: _KeySpecs | None = ...,
|
|
1855
|
+
include: _KeySpecs | None = ...,
|
|
1856
|
+
tolerance: float | None = ...,
|
|
1857
|
+
rel: float | None = ...,
|
|
1858
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1859
|
+
ignore_null: bool = ...,
|
|
1860
|
+
strict_types: bool = ...,
|
|
1861
|
+
) -> _TextAssertion: ...
|
|
1862
|
+
def is_not_equal_to(self, other: object) -> _TextAssertion: ...
|
|
1863
|
+
def is_same_as(self, other: object) -> _TextAssertion: ...
|
|
1864
|
+
def is_not_same_as(self, other: object) -> _TextAssertion: ...
|
|
1865
|
+
def is_true(self) -> _TextAssertion: ...
|
|
1866
|
+
def is_false(self) -> _TextAssertion: ...
|
|
1867
|
+
def is_none(self) -> _TextAssertion: ...
|
|
1868
|
+
def is_not_none(self) -> _TextAssertion: ...
|
|
1869
|
+
def is_type_of(self, some_type: type) -> _TextAssertion: ...
|
|
1870
|
+
def is_instance_of(self, some_class: ClassInfo) -> _TextAssertion: ...
|
|
1871
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _TextAssertion: ...
|
|
1872
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _TextAssertion: ...
|
|
1873
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _TextAssertion: ...
|
|
1874
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _TextAssertion: ...
|
|
1875
|
+
def is_callable(self) -> _TextAssertion: ...
|
|
1876
|
+
def is_not_callable(self) -> _TextAssertion: ...
|
|
1877
|
+
def is_iterable(self) -> _TextAssertion: ...
|
|
1878
|
+
def is_not_iterable(self) -> _TextAssertion: ...
|
|
1879
|
+
def all_fields_satisfy(
|
|
1880
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1881
|
+
) -> _TextAssertion: ...
|
|
1882
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _TextAssertion: ...
|
|
1883
|
+
def is_in(self, *items: object) -> _TextAssertion: ...
|
|
1884
|
+
def is_not_in(self, *items: object) -> _TextAssertion: ...
|
|
1885
|
+
def snapshot(
|
|
1886
|
+
self,
|
|
1887
|
+
id: str | None = ...,
|
|
1888
|
+
path: str = ...,
|
|
1889
|
+
*,
|
|
1890
|
+
ignore: _KeySpecs | None = ...,
|
|
1891
|
+
include: _KeySpecs | None = ...,
|
|
1892
|
+
tolerance: float | None = ...,
|
|
1893
|
+
rel: float | None = ...,
|
|
1894
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1895
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1896
|
+
) -> _TextAssertion: ...
|
|
1897
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _TextAssertion: ...
|
|
1898
|
+
def matches_inline(
|
|
1899
|
+
self,
|
|
1900
|
+
expected: object = ...,
|
|
1901
|
+
*,
|
|
1902
|
+
ignore: _KeySpecs | None = ...,
|
|
1903
|
+
include: _KeySpecs | None = ...,
|
|
1904
|
+
tolerance: float | None = ...,
|
|
1905
|
+
rel: float | None = ...,
|
|
1906
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1907
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1908
|
+
) -> _TextAssertion: ...
|
|
1909
|
+
|
|
1910
|
+
class _NegatedCoreAssertion(Protocol):
|
|
1911
|
+
"""The negation twin of `_CoreAssertion`."""
|
|
1912
|
+
|
|
1913
|
+
def is_equal_to(
|
|
1914
|
+
self,
|
|
1915
|
+
other: object,
|
|
1916
|
+
*,
|
|
1917
|
+
ignore: _KeySpecs | None = ...,
|
|
1918
|
+
include: _KeySpecs | None = ...,
|
|
1919
|
+
tolerance: float | None = ...,
|
|
1920
|
+
rel: float | None = ...,
|
|
1921
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1922
|
+
ignore_null: bool = ...,
|
|
1923
|
+
strict_types: bool = ...,
|
|
1924
|
+
) -> _CoreAssertion: ...
|
|
1925
|
+
def is_not_equal_to(self, other: object) -> _CoreAssertion: ...
|
|
1926
|
+
def is_same_as(self, other: object) -> _CoreAssertion: ...
|
|
1927
|
+
def is_not_same_as(self, other: object) -> _CoreAssertion: ...
|
|
1928
|
+
def is_true(self) -> _CoreAssertion: ...
|
|
1929
|
+
def is_false(self) -> _CoreAssertion: ...
|
|
1930
|
+
def is_none(self) -> _CoreAssertion: ...
|
|
1931
|
+
def is_not_none(self) -> _CoreAssertion: ...
|
|
1932
|
+
def is_type_of(self, some_type: type) -> _CoreAssertion: ...
|
|
1933
|
+
def is_instance_of(self, some_class: ClassInfo) -> _CoreAssertion: ...
|
|
1934
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _CoreAssertion: ...
|
|
1935
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _CoreAssertion: ...
|
|
1936
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _CoreAssertion: ...
|
|
1937
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _CoreAssertion: ...
|
|
1938
|
+
def is_callable(self) -> _CoreAssertion: ...
|
|
1939
|
+
def is_not_callable(self) -> _CoreAssertion: ...
|
|
1940
|
+
def is_iterable(self) -> _CoreAssertion: ...
|
|
1941
|
+
def is_not_iterable(self) -> _CoreAssertion: ...
|
|
1942
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _CoreAssertion: ...
|
|
1943
|
+
def all_fields_satisfy(
|
|
1944
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
1945
|
+
) -> _CoreAssertion: ...
|
|
1946
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _CoreAssertion: ...
|
|
1947
|
+
def is_in(self, *items: object) -> _CoreAssertion: ...
|
|
1948
|
+
def is_not_in(self, *items: object) -> _CoreAssertion: ...
|
|
1949
|
+
def snapshot(
|
|
1950
|
+
self,
|
|
1951
|
+
id: str | None = ...,
|
|
1952
|
+
path: str = ...,
|
|
1953
|
+
*,
|
|
1954
|
+
ignore: _KeySpecs | None = ...,
|
|
1955
|
+
include: _KeySpecs | None = ...,
|
|
1956
|
+
tolerance: float | None = ...,
|
|
1957
|
+
rel: float | None = ...,
|
|
1958
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1959
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1960
|
+
) -> _CoreAssertion: ...
|
|
1961
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _CoreAssertion: ...
|
|
1962
|
+
def matches_inline(
|
|
1963
|
+
self,
|
|
1964
|
+
expected: object = ...,
|
|
1965
|
+
*,
|
|
1966
|
+
ignore: _KeySpecs | None = ...,
|
|
1967
|
+
include: _KeySpecs | None = ...,
|
|
1968
|
+
tolerance: float | None = ...,
|
|
1969
|
+
rel: float | None = ...,
|
|
1970
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1971
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
1972
|
+
) -> _CoreAssertion: ...
|
|
1973
|
+
|
|
1974
|
+
class _NegatedCompletedAssertion(Protocol[_P_co]):
|
|
1975
|
+
"""The negation twin of `_CompletedAssertion`."""
|
|
1976
|
+
|
|
1977
|
+
def is_equal_to(
|
|
1978
|
+
self,
|
|
1979
|
+
other: object,
|
|
1980
|
+
*,
|
|
1981
|
+
ignore: _KeySpecs | None = ...,
|
|
1982
|
+
include: _KeySpecs | None = ...,
|
|
1983
|
+
tolerance: float | None = ...,
|
|
1984
|
+
rel: float | None = ...,
|
|
1985
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
1986
|
+
ignore_null: bool = ...,
|
|
1987
|
+
strict_types: bool = ...,
|
|
1988
|
+
) -> _CompletedAssertion[_P_co]: ...
|
|
1989
|
+
def is_not_equal_to(self, other: object) -> _CompletedAssertion[_P_co]: ...
|
|
1990
|
+
def is_same_as(self, other: object) -> _CompletedAssertion[_P_co]: ...
|
|
1991
|
+
def is_not_same_as(self, other: object) -> _CompletedAssertion[_P_co]: ...
|
|
1992
|
+
def is_true(self) -> _CompletedAssertion[_P_co]: ...
|
|
1993
|
+
def is_false(self) -> _CompletedAssertion[_P_co]: ...
|
|
1994
|
+
def is_none(self) -> _CompletedAssertion[_P_co]: ...
|
|
1995
|
+
def is_not_none(self) -> _CompletedAssertion[_P_co]: ...
|
|
1996
|
+
def is_type_of(self, some_type: type) -> _CompletedAssertion[_P_co]: ...
|
|
1997
|
+
def is_instance_of(self, some_class: ClassInfo) -> _CompletedAssertion[_P_co]: ...
|
|
1998
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _CompletedAssertion[_P_co]: ...
|
|
1999
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _CompletedAssertion[_P_co]: ...
|
|
2000
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _CompletedAssertion[_P_co]: ...
|
|
2001
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _CompletedAssertion[_P_co]: ...
|
|
2002
|
+
def is_callable(self) -> _CompletedAssertion[_P_co]: ...
|
|
2003
|
+
def is_not_callable(self) -> _CompletedAssertion[_P_co]: ...
|
|
2004
|
+
def is_iterable(self) -> _CompletedAssertion[_P_co]: ...
|
|
2005
|
+
def is_not_iterable(self) -> _CompletedAssertion[_P_co]: ...
|
|
2006
|
+
def satisfies(self, matcher: Matcher[Any] | Callable[[Any], object]) -> _CompletedAssertion[_P_co]: ...
|
|
2007
|
+
def all_fields_satisfy(
|
|
2008
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
2009
|
+
) -> _CompletedAssertion[_P_co]: ...
|
|
2010
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _CompletedAssertion[_P_co]: ...
|
|
2011
|
+
def is_in(self, *items: object) -> _CompletedAssertion[_P_co]: ...
|
|
2012
|
+
def is_not_in(self, *items: object) -> _CompletedAssertion[_P_co]: ...
|
|
2013
|
+
def snapshot(
|
|
2014
|
+
self,
|
|
2015
|
+
id: str | None = ...,
|
|
2016
|
+
path: str = ...,
|
|
2017
|
+
*,
|
|
2018
|
+
ignore: _KeySpecs | None = ...,
|
|
2019
|
+
include: _KeySpecs | None = ...,
|
|
2020
|
+
tolerance: float | None = ...,
|
|
2021
|
+
rel: float | None = ...,
|
|
2022
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
2023
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
2024
|
+
) -> _CompletedAssertion[_P_co]: ...
|
|
2025
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _CompletedAssertion[_P_co]: ...
|
|
2026
|
+
def matches_inline(
|
|
2027
|
+
self,
|
|
2028
|
+
expected: object = ...,
|
|
2029
|
+
*,
|
|
2030
|
+
ignore: _KeySpecs | None = ...,
|
|
2031
|
+
include: _KeySpecs | None = ...,
|
|
2032
|
+
tolerance: float | None = ...,
|
|
2033
|
+
rel: float | None = ...,
|
|
2034
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
2035
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
2036
|
+
) -> _CompletedAssertion[_P_co]: ...
|
|
2037
|
+
|
|
2038
|
+
class _NegatedInvokedAssertion(Protocol[_Exc]):
|
|
2039
|
+
"""The negation twin of `_InvokedAssertion`."""
|
|
2040
|
+
|
|
2041
|
+
@overload
|
|
2042
|
+
def caused_by(self, ex: type[_Landed]) -> _InvokedAssertion[_Exc]: ...
|
|
2043
|
+
@overload
|
|
2044
|
+
def caused_by(self, ex: ClassInfo) -> _InvokedAssertion[_Exc]: ...
|
|
2045
|
+
@overload
|
|
2046
|
+
def error_of(self, ex: type[_Landed]) -> _InvokedAssertion[_Exc]: ...
|
|
2047
|
+
@overload
|
|
2048
|
+
def error_of(self, ex: type) -> _InvokedAssertion[_Exc]: ...
|
|
2049
|
+
def does_not_contain_error(self, *ex_types: type | ExceptionInfo) -> _InvokedAssertion[_Exc]: ...
|
|
2050
|
+
@overload
|
|
2051
|
+
def has_root_cause(self, ex: type[_Landed]) -> _InvokedAssertion[_Exc]: ...
|
|
2052
|
+
@overload
|
|
2053
|
+
def has_root_cause(self, ex: ClassInfo) -> _InvokedAssertion[_Exc]: ...
|
|
2054
|
+
def contains_error(self, *ex_types: type | ExceptionInfo) -> _InvokedAssertion[_Exc]: ...
|
|
2055
|
+
def matches_error_tree(self, *expected: type | list[Any]) -> _InvokedAssertion[_Exc]: ...
|
|
2056
|
+
def satisfies(self, matcher: Matcher[str] | Callable[[str], object]) -> _InvokedAssertion[_Exc]: ...
|
|
2057
|
+
def contains(self, *items: str | Matcher[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2058
|
+
def is_equal_to_ignoring_case(self, other: str) -> _InvokedAssertion[_Exc]: ...
|
|
2059
|
+
def is_equal_to_ignoring_whitespace(self, other: str) -> _InvokedAssertion[_Exc]: ...
|
|
2060
|
+
def contains_ignoring_case(self, *items: str) -> _InvokedAssertion[_Exc]: ...
|
|
2061
|
+
def starts_with(self, prefix: str) -> _InvokedAssertion[_Exc]: ...
|
|
2062
|
+
def starts_with_ignoring_case(self, prefix: str) -> _InvokedAssertion[_Exc]: ...
|
|
2063
|
+
def ends_with(self, suffix: str) -> _InvokedAssertion[_Exc]: ...
|
|
2064
|
+
def ends_with_ignoring_case(self, suffix: str) -> _InvokedAssertion[_Exc]: ...
|
|
2065
|
+
def matches(self, pattern: str | re.Pattern[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2066
|
+
def does_not_match(self, pattern: str | re.Pattern[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2067
|
+
def is_alpha(self) -> _InvokedAssertion[_Exc]: ...
|
|
2068
|
+
def is_digit(self) -> _InvokedAssertion[_Exc]: ...
|
|
2069
|
+
def is_lower(self) -> _InvokedAssertion[_Exc]: ...
|
|
2070
|
+
def is_upper(self) -> _InvokedAssertion[_Exc]: ...
|
|
2071
|
+
def is_alphanumeric(self) -> _InvokedAssertion[_Exc]: ...
|
|
2072
|
+
def is_whitespace(self) -> _InvokedAssertion[_Exc]: ...
|
|
2073
|
+
def contains_any_of(self, *items: str) -> _InvokedAssertion[_Exc]: ...
|
|
2074
|
+
def contains_none_of(self, *items: str) -> _InvokedAssertion[_Exc]: ...
|
|
2075
|
+
def is_unicode(self) -> _InvokedAssertion[_Exc]: ...
|
|
2076
|
+
def is_greater_than(self, other: str) -> _InvokedAssertion[_Exc]: ...
|
|
2077
|
+
def is_greater_than_or_equal_to(self, other: str) -> _InvokedAssertion[_Exc]: ...
|
|
2078
|
+
def is_less_than(self, other: str) -> _InvokedAssertion[_Exc]: ...
|
|
2079
|
+
def is_less_than_or_equal_to(self, other: str) -> _InvokedAssertion[_Exc]: ...
|
|
2080
|
+
def does_not_contain(self, *items: str | Matcher[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2081
|
+
def contains_only(self, *items: str | Matcher[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2082
|
+
def contains_sequence(self, *items: str | Matcher[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2083
|
+
def contains_exactly(self, *items: str | Matcher[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2084
|
+
def contains_exactly_in_any_order(self, *items: str | Matcher[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2085
|
+
def is_sorted(
|
|
2086
|
+
self, key: Callable[[str], object] = ..., reverse: bool = ..., *, allow_empty: bool = ...
|
|
2087
|
+
) -> _InvokedAssertion[_Exc]: ...
|
|
2088
|
+
def each(
|
|
2089
|
+
self, matcher: Matcher[str] | Callable[[str], object], *, allow_empty: bool = ...
|
|
2090
|
+
) -> _InvokedAssertion[_Exc]: ...
|
|
2091
|
+
def all_satisfy(
|
|
2092
|
+
self, matcher: Matcher[str] | Callable[[str], object], *, allow_empty: bool = ...
|
|
2093
|
+
) -> _InvokedAssertion[_Exc]: ...
|
|
2094
|
+
def any_satisfy(self, matcher: Matcher[str] | Callable[[str], object]) -> _InvokedAssertion[_Exc]: ...
|
|
2095
|
+
def none_satisfy(self, matcher: Matcher[str] | Callable[[str], object]) -> _InvokedAssertion[_Exc]: ...
|
|
2096
|
+
def satisfies_exactly(self, *matchers: Matcher[str] | Callable[[str], object]) -> _InvokedAssertion[_Exc]: ...
|
|
2097
|
+
def satisfies_exactly_in_any_order(
|
|
2098
|
+
self, *matchers: Matcher[str] | Callable[[str], object]
|
|
2099
|
+
) -> _InvokedAssertion[_Exc]: ...
|
|
2100
|
+
def zip_satisfies(
|
|
2101
|
+
self, other: Iterable[_Other], predicate: Callable[[str, _Other], object], *, allow_empty: bool = ...
|
|
2102
|
+
) -> _InvokedAssertion[_Exc]: ...
|
|
2103
|
+
def extracting_group(
|
|
2104
|
+
self, pattern: str | re.Pattern[str], group: int | str = ...
|
|
2105
|
+
) -> _InvokedAssertion[_Exc]: ...
|
|
2106
|
+
def matches_with_groups(self, pattern: str | re.Pattern[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2107
|
+
def is_subset_of(self, *supersets: object, allow_empty: bool = ...) -> _InvokedAssertion[_Exc]: ...
|
|
2108
|
+
def contains_duplicates(self) -> _InvokedAssertion[_Exc]: ...
|
|
2109
|
+
def does_not_contain_duplicates(self) -> _InvokedAssertion[_Exc]: ...
|
|
2110
|
+
def contains_only_once(self, *items: object) -> _InvokedAssertion[_Exc]: ...
|
|
2111
|
+
def contains_in_order(self, *items: str | Matcher[str]) -> _InvokedAssertion[_Exc]: ...
|
|
2112
|
+
def has_same_size_as(self, other: Sized) -> _InvokedAssertion[_Exc]: ...
|
|
2113
|
+
def has_size_greater_than(self, size: SupportsIndex) -> _InvokedAssertion[_Exc]: ...
|
|
2114
|
+
def has_size_less_than(self, size: SupportsIndex) -> _InvokedAssertion[_Exc]: ...
|
|
2115
|
+
def has_size_between(self, low: SupportsIndex, high: SupportsIndex) -> _InvokedAssertion[_Exc]: ...
|
|
2116
|
+
def is_empty(self) -> _InvokedAssertion[_Exc]: ...
|
|
2117
|
+
def is_not_empty(self) -> _InvokedAssertion[_Exc]: ...
|
|
2118
|
+
def is_equal_to(
|
|
2119
|
+
self,
|
|
2120
|
+
other: object,
|
|
2121
|
+
*,
|
|
2122
|
+
ignore: _KeySpecs | None = ...,
|
|
2123
|
+
include: _KeySpecs | None = ...,
|
|
2124
|
+
tolerance: float | None = ...,
|
|
2125
|
+
rel: float | None = ...,
|
|
2126
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
2127
|
+
ignore_null: bool = ...,
|
|
2128
|
+
strict_types: bool = ...,
|
|
2129
|
+
) -> _InvokedAssertion[_Exc]: ...
|
|
2130
|
+
def is_not_equal_to(self, other: object) -> _InvokedAssertion[_Exc]: ...
|
|
2131
|
+
def is_same_as(self, other: object) -> _InvokedAssertion[_Exc]: ...
|
|
2132
|
+
def is_not_same_as(self, other: object) -> _InvokedAssertion[_Exc]: ...
|
|
2133
|
+
def is_true(self) -> _InvokedAssertion[_Exc]: ...
|
|
2134
|
+
def is_false(self) -> _InvokedAssertion[_Exc]: ...
|
|
2135
|
+
def is_none(self) -> _InvokedAssertion[_Exc]: ...
|
|
2136
|
+
def is_not_none(self) -> _InvokedAssertion[_Exc]: ...
|
|
2137
|
+
def is_type_of(self, some_type: type) -> _InvokedAssertion[_Exc]: ...
|
|
2138
|
+
def is_instance_of(self, some_class: ClassInfo) -> _InvokedAssertion[_Exc]: ...
|
|
2139
|
+
def is_instance_of_any(self, *some_classes: ClassInfo) -> _InvokedAssertion[_Exc]: ...
|
|
2140
|
+
def is_subclass_of(self, some_class: ClassInfo) -> _InvokedAssertion[_Exc]: ...
|
|
2141
|
+
def is_length(self, length: SupportsIndex | Matcher[int]) -> _InvokedAssertion[_Exc]: ...
|
|
2142
|
+
def is_length_between(self, low: SupportsIndex, high: SupportsIndex) -> _InvokedAssertion[_Exc]: ...
|
|
2143
|
+
def is_callable(self) -> _InvokedAssertion[_Exc]: ...
|
|
2144
|
+
def is_not_callable(self) -> _InvokedAssertion[_Exc]: ...
|
|
2145
|
+
def is_iterable(self) -> _InvokedAssertion[_Exc]: ...
|
|
2146
|
+
def is_not_iterable(self) -> _InvokedAssertion[_Exc]: ...
|
|
2147
|
+
def all_fields_satisfy(
|
|
2148
|
+
self, matcher: Matcher[Any] | Callable[[Any], object], *, allow_empty: bool = ...
|
|
2149
|
+
) -> _InvokedAssertion[_Exc]: ...
|
|
2150
|
+
def has_no_none_fields(self, *, allow_empty: bool = ...) -> _InvokedAssertion[_Exc]: ...
|
|
2151
|
+
def is_in(self, *items: object) -> _InvokedAssertion[_Exc]: ...
|
|
2152
|
+
def is_not_in(self, *items: object) -> _InvokedAssertion[_Exc]: ...
|
|
2153
|
+
def snapshot(
|
|
2154
|
+
self,
|
|
2155
|
+
id: str | None = ...,
|
|
2156
|
+
path: str = ...,
|
|
2157
|
+
*,
|
|
2158
|
+
ignore: _KeySpecs | None = ...,
|
|
2159
|
+
include: _KeySpecs | None = ...,
|
|
2160
|
+
tolerance: float | None = ...,
|
|
2161
|
+
rel: float | None = ...,
|
|
2162
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
2163
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
2164
|
+
) -> _InvokedAssertion[_Exc]: ...
|
|
2165
|
+
def matches_contract_snapshot(self, id: str | None = ..., path: str = ...) -> _InvokedAssertion[_Exc]: ...
|
|
2166
|
+
def matches_inline(
|
|
2167
|
+
self,
|
|
2168
|
+
expected: object = ...,
|
|
2169
|
+
*,
|
|
2170
|
+
ignore: _KeySpecs | None = ...,
|
|
2171
|
+
include: _KeySpecs | None = ...,
|
|
2172
|
+
tolerance: float | None = ...,
|
|
2173
|
+
rel: float | None = ...,
|
|
2174
|
+
comparators: dict[Any, Callable[[Any, Any], Any]] | None = ...,
|
|
2175
|
+
placeholders: Mapping[Any, Matcher[Any] | Callable[[Any], object]] | None = ...,
|
|
2176
|
+
) -> _InvokedAssertion[_Exc]: ...
|