New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filters on API operations #1256
base: master
Are you sure you want to change the base?
Conversation
dddfd03
to
58497bc
Compare
Codecov Report
@@ Coverage Diff @@
## master #1256 +/- ##
==========================================
- Coverage 99.41% 99.15% -0.27%
==========================================
Files 82 83 +1
Lines 6152 6250 +98
Branches 1016 1043 +27
==========================================
+ Hits 6116 6197 +81
- Misses 18 30 +12
- Partials 18 23 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
58497bc
to
8c6ed21
Compare
return self._filter_by(Exclude(predicate)) | ||
|
||
def _filter_by(self, *predicates: BaseFilter) -> S: | ||
filters = self.filters + list(predicates) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe have a way to combine filters via OR
74318c6
to
15af684
Compare
fa9a3b3
to
a2956e3
Compare
a2956e3
to
8542727
Compare
Resolves #703
Resolves #819
Resolves #1006
TODO:
parametrize
include
in testsinclude
/exclude
jq
-like filter ---include-by="x-foo == 42"
, where the expression is of form "JSONPath Operator Value"--include-method
,--exclude-method
, etc.exclude
include
/exclude
for GraphQL schemaspath
insteadendpoint
?In Schemathesis 4.0 it will be nice to remove those arguments & attributes