pytest-mock-server
pytest-mock-server copied to clipboard
404 on URL with parameters
In case I am mocking/testing URL with some parameter, server always response with 404:
@pytest.mark.server(url='/api/v2/products/?limit=2, response={}, method=‘GET’)
def test_url(monkeypatch) -> None:
….
I am using monkeypatch to mock environmental variables. Hope it doesn’t interfere with pytest-mock-server.
Is there a way howto passURL parameter to the Flask route?
Thanks for your help.
Lumir