In de unit tests this doesn't work: client.product_projections.query(limit=1)
Then this error is raised: marshmallow.exceptions.ValidationError: {'limit': ['Not a valid integer.']}
That is caused by using abstract.AbstractQuerySchema().load(request.qs) which is used in "testing/product_types.py#46".
That qs property on the RequestMock request object converts a querystring ?limit=1 to a multivalue dict: {'limit': [1]}, instead of a normal integer {'limit': 1}.
In de unit tests this doesn't work:
client.product_projections.query(limit=1)
Then this error is raised: marshmallow.exceptions.ValidationError: {'limit': ['Not a valid integer.']}
That is caused by using
abstract.AbstractQuerySchema().load(request.qs)
which is used in "testing/product_types.py#46". That qs property on the RequestMock request object converts a querystring ?limit=1 to a multivalue dict:{'limit': [1]}
, instead of a normal integer{'limit': 1}
.