canaille-globuzma/tests/test_bad_flows.py

13 lines
394 B
Python
Raw Normal View History

2020-10-26 18:15:53 +00:00
def test_incomplete_requests(testclient, slapd_connection, logged_user, client):
testclient.get(
2021-09-28 07:30:41 +00:00
"/oauth/authorize", params=dict(response_type="code",), status=400,
2020-10-26 18:15:53 +00:00
)
def test_bad_client(testclient, slapd_connection, logged_user, client):
testclient.get(
"/oauth/authorize",
2021-09-28 07:30:41 +00:00
params=dict(response_type="code", clienrt_id="nope",),
2020-10-26 18:15:53 +00:00
status=400,
)