[BUG] as_strategy on schema doubles url
devkral opened this issue · comments
The new as_strategy method on BaseSchema does not work as expected:
graphql_schema = ....from_asgi("/graphql/")
class Test(TestCase):
def test(self, dcase):
response = dcase.call_asgi()
response.json()
I get tons of errors because the url becomes suddenly "/graphql/graphql/" which doesn't exist. There is somewhere a bug
Thanks for reporting! I saw this problem when worked on recent PRs, and fixed the case I had, but apparently, there are some more. I'll fix it soon
try using my PR, maybe it helps you catching the invalid answers.
Currently even broken or responses with errors are accepted
This is fixed in 3.24.3
thanks again, now it works without problems (call_asgi with custom checks)