How to keep hierarchy when parametrizing test cases with Schemathesis/Hypothesis? #3099
Unanswered
ericrommel
asked this question in
Questions & Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Everyone,
I'm trying to accomplish at least the following structure after running my pytest using Schemathesis (Hypothesis):
However, what I'm having is:
In
S2
, only the last endpoint handled by Schemathesis will be "stored". How can I have all endpoints for each type (regular and admin) under their particular base function?I'm using the following code:
From the image below, you can see it better. See that there are only two test cases under
test_full_schema
(the Python file name), which I know are from my two pytest functions (test_regular_endpoints
andtest_admin_endpoints
). In the right sidebar, you can see each case generated by Schemathesis/Hypothesis for the particular endpoint (Admin > GET /metrics
andRegular GET /enum/{enum_id}
). I was expecting, from the code shared, 4 endpoints for each pytest function.I'm not sure if I was clear, but if not, please don't hesitate to ask, and I'll be more than happy to follow up with you.
Beta Was this translation helpful? Give feedback.
All reactions