Questions tagged [schemathesis]

3 questions
3
votes
1 answer

In OpenAPI 3.0, how do I create a link from a list of entities to a single entity?

In most OpenAPI 3.0 documentation (like the official one), links are introduced with a combination of a POST endpoint to create an entity returning an ID linking to a GET endpoint to fetch that entity by that same returned ID: POST /users ->…
Nikolai Prokoschenko
  • 8,465
  • 11
  • 58
  • 97
0
votes
0 answers

Custom serializer is not seen by Schemathesis

I am working with Schemathesis and pytest. I came across with a problem of serializing 'application/xml' content-type as Schemathesis can't do it out of the box. However, it allows to create a custom serializer to process any content type according…
0
votes
1 answer

How to add random integer for each case in Schemathesis?

I'm trying to test an API endpoint with random input for mid and cids (code below). However, whenever I run the test it says missing required positional arguments. Can anyone please help? @schema.parametrize() @schema.given(mid=st.integers(),…
user14862491
  • 1
  • 1
  • 3